Skip to content

Commit

Permalink
feat: improve
Browse files Browse the repository at this point in the history
  • Loading branch information
lcxfs1991 committed Feb 22, 2024
1 parent d6e3949 commit 4f82f64
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 17 deletions.
51 changes: 34 additions & 17 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

const config: Config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
title: '印记中文博客',
tagline: '印记中文博客-前端;后台;客户端;AI;',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
url: 'https://docschina.org/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
baseUrl: '/blog/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand All @@ -25,8 +25,8 @@ const config: Config = {
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
defaultLocale: 'zh',
locales: ['zh'],
},

presets: [
Expand Down Expand Up @@ -58,21 +58,26 @@ const config: Config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
title: '博客',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
alt: 'Yinji Logo',
src: 'img/yinji-horizontal.png',
},
items: [
// {
// type: 'docSidebar',
// sidebarId: 'tutorialSidebar',
// position: 'left',
// label: 'Tutorial',
// },
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
href: 'https://docschina.org/',
label: '印记中文官网',
position: 'left',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{to: '/blog/content/', label: 'heyli专栏', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/lcxfs1991/blog',
label: 'GitHub',
position: 'right',
},
Expand All @@ -82,11 +87,23 @@ const config: Config = {
style: 'dark',
links: [
{
title: 'Docs',
title: '技术文档',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
label: 'React',
href: 'https://react.docschina.org',
},
{
label: 'Webpack',
href: 'https://webpack.docschina.org',
},
{
label: 'Rollup',
href: 'https://rollup.docschina.org/',
},
{
label: 'Babel',
href: 'https://babel.docschina.org',
},
],
},
Expand Down
Binary file added static/img/yinji-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/yinji-horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4f82f64

Please sign in to comment.