This commit is contained in:
+18
-28
@@ -3,21 +3,17 @@ import type {Config} from '@docusaurus/types';
|
||||
import type * as Preset from '@docusaurus/preset-classic';
|
||||
|
||||
const config: Config = {
|
||||
title: 'swallow tech notes',
|
||||
tagline: 'AI・インフラ・開発の技術メモ',
|
||||
title: '雑記 by swallow',
|
||||
tagline: '技術・思考・作ったもの',
|
||||
favicon: 'img/favicon.ico',
|
||||
|
||||
future: {
|
||||
v4: true,
|
||||
},
|
||||
|
||||
// TODO: 本番URLに変更
|
||||
url: 'https://docs.techswan.online',
|
||||
baseUrl: '/',
|
||||
|
||||
organizationName: 'koide',
|
||||
projectName: 'note-articles',
|
||||
|
||||
onBrokenLinks: 'warn',
|
||||
onBrokenMarkdownLinks: 'warn',
|
||||
|
||||
@@ -32,10 +28,11 @@ const config: Config = {
|
||||
{
|
||||
docs: {
|
||||
sidebarPath: './sidebars.ts',
|
||||
routeBasePath: '/', // docsをルートに
|
||||
editUrl: 'https://gitea.swallow.wjg.jp/koide/note-articles/src/branch/main/',
|
||||
routeBasePath: '/blog',
|
||||
breadcrumbs: true,
|
||||
sidebarCollapsed: false,
|
||||
},
|
||||
blog: false, // ブログは無効化
|
||||
blog: false,
|
||||
theme: {
|
||||
customCss: './src/css/custom.css',
|
||||
},
|
||||
@@ -49,41 +46,34 @@ const config: Config = {
|
||||
respectPrefersColorScheme: true,
|
||||
},
|
||||
navbar: {
|
||||
title: 'swallow tech notes',
|
||||
title: '雑記 by swallow',
|
||||
items: [
|
||||
{
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'docsSidebar',
|
||||
to: '/blog',
|
||||
label: 'Blog',
|
||||
position: 'left',
|
||||
label: '記事一覧',
|
||||
},
|
||||
{
|
||||
href: 'https://gitea.swallow.wjg.jp/koide/note-articles',
|
||||
label: 'Gitea',
|
||||
position: 'right',
|
||||
to: '/works',
|
||||
label: 'Works',
|
||||
position: 'left',
|
||||
},
|
||||
],
|
||||
},
|
||||
footer: {
|
||||
style: 'dark',
|
||||
links: [
|
||||
{
|
||||
title: 'Links',
|
||||
items: [
|
||||
{
|
||||
label: 'Gitea',
|
||||
href: 'https://gitea.swallow.wjg.jp/koide/note-articles',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
copyright: `© ${new Date().getFullYear()} swallow. Built with Docusaurus.`,
|
||||
copyright: `© ${new Date().getFullYear()} swallow`,
|
||||
},
|
||||
prism: {
|
||||
theme: prismThemes.github,
|
||||
darkTheme: prismThemes.dracula,
|
||||
additionalLanguages: ['bash', 'json', 'yaml', 'python'],
|
||||
},
|
||||
// 目次の設定
|
||||
tableOfContents: {
|
||||
minHeadingLevel: 2,
|
||||
maxHeadingLevel: 4,
|
||||
},
|
||||
} satisfies Preset.ThemeConfig,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user