Skip to content

Commit

Permalink
docs: fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Jun 6, 2024
1 parent 9f43067 commit a68e010
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docusaurus.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
const { themes: prismThemes } = require('prism-react-renderer');
const pkg = require('./package.json');

const title = pkg.name.slice(4);

/** @type {import('@docusaurus/types').Config} */
const config = {
title: pkg.name,
title,
tagline: pkg.description,
favicon: 'img/favicon-128.png',

Expand All @@ -22,7 +24,7 @@ const config = {
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'dalisoft', // Usually your GitHub org/user name.
projectName: pkg.name, // Usually your repo name.
projectName: title, // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand Down Expand Up @@ -80,7 +82,7 @@ const config = {
},
{
name: 'og:site_name',
content: pkg.name
content: title
},
{
name: 'og:description',
Expand All @@ -94,7 +96,7 @@ const config = {
// Replace with your project's social card
image: 'img/release-me.png',
navbar: {
title: pkg.name,
title,
logo: {
alt: 'release-me. Logo by https://uxwing.com',
src: 'img/logo.svg'
Expand Down

0 comments on commit a68e010

Please sign in to comment.