Separate Blog and Tech sections
Deploy Docusaurus Site / deploy (push) Successful in 26s

This commit is contained in:
2026-02-19 04:31:43 +00:00
parent 516972ab1a
commit bfc04ddfa4
8 changed files with 91 additions and 20 deletions
+20 -4
View File
@@ -22,15 +22,27 @@ const config: Config = {
locales: ['ja'],
},
plugins: [
// Tech(技術記事)用のドキュメント
[
'@docusaurus/plugin-content-docs',
{
id: 'tech',
path: 'docs-tech',
routeBasePath: 'tech',
sidebarPath: './sidebars-tech.ts',
},
],
],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
path: 'docs',
routeBasePath: '/blog',
breadcrumbs: true,
sidebarCollapsed: false,
sidebarPath: './sidebars.ts',
},
blog: false,
theme: {
@@ -53,6 +65,11 @@ const config: Config = {
label: 'Blog',
position: 'left',
},
{
to: '/tech',
label: 'Tech',
position: 'left',
},
{
to: '/works',
label: 'Works',
@@ -69,7 +86,6 @@ const config: Config = {
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'json', 'yaml', 'python'],
},
// 目次の設定
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 4,