diff --git a/docs/dgx-spark-dual/index.md b/docs-tech/dgx-spark-dual/index.md similarity index 99% rename from docs/dgx-spark-dual/index.md rename to docs-tech/dgx-spark-dual/index.md index bfe8985..a22c040 100644 --- a/docs/dgx-spark-dual/index.md +++ b/docs-tech/dgx-spark-dual/index.md @@ -437,7 +437,7 @@ vllm serve --tensor-parallel-size 2 --max-model-len 4096 - [NVIDIA DGX Spark Playbooks](https://build.nvidia.com/spark/) - [vLLM ドキュメント](https://docs.vllm.ai/) -- [DGX SparkでMiniMax-M2.5を動かす](/blog/dgx-spark-minimax/) +- [DGX SparkでMiniMax-M2.5を動かす](/tech/dgx-spark-minimax/) --- diff --git a/docs/dgx-spark-minimax/index.md b/docs-tech/dgx-spark-minimax/index.md similarity index 100% rename from docs/dgx-spark-minimax/index.md rename to docs-tech/dgx-spark-minimax/index.md diff --git a/docs-tech/index.md b/docs-tech/index.md new file mode 100644 index 0000000..28b6b4a --- /dev/null +++ b/docs-tech/index.md @@ -0,0 +1,14 @@ +--- +sidebar_position: 1 +title: Tech +slug: / +--- + +# 💻 Tech + +技術記事・ハウツー・検証レポートなど。 + +## DGX Spark + +- [デュアル構成ガイド](/tech/dgx-spark-dual) - 2台接続で256GB環境を構築 +- [MiniMax-M2.5-REAP-172Bを動かす](/tech/dgx-spark-minimax) - 172Bモデルを動かす diff --git a/docs/index.md b/docs/index.md index 0ebc36c..cf8dda4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,9 +6,6 @@ slug: / # 📝 Blog -技術記事や思ったことなど。 +日常の思考、情報収集、気になったことなど。 -## DGX Spark - -- [DGX Spark デュアル構成ガイド](/blog/dgx-spark-dual) - 2台接続で256GB環境を構築 -- [DGX SparkでMiniMax-M2.5-REAP-172Bを動かす](/blog/dgx-spark-minimax) - 172Bモデルを動かす +*coming soon...* diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 1c8976a..608c4ea 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -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, diff --git a/sidebars-tech.ts b/sidebars-tech.ts new file mode 100644 index 0000000..63b5922 --- /dev/null +++ b/sidebars-tech.ts @@ -0,0 +1,12 @@ +import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; + +const sidebars: SidebarsConfig = { + techSidebar: [ + { + type: 'autogenerated', + dirName: '.', + }, + ], +}; + +export default sidebars; diff --git a/src/pages/index.module.css b/src/pages/index.module.css index 57ea47e..5fd6502 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -36,9 +36,13 @@ .sectionTitle { font-size: 1.5rem; - margin-bottom: 1.5rem; - padding-bottom: 0.5rem; - border-bottom: 1px solid var(--ifm-color-emphasis-200); + margin-bottom: 0.25rem; +} + +.sectionDesc { + font-size: 0.9rem; + color: var(--ifm-color-emphasis-600); + margin-bottom: 1rem; } /* Posts */ @@ -87,6 +91,16 @@ border-radius: 4px; } +/* Coming Soon */ +.comingSoon { + padding: 2rem; + text-align: center; + color: var(--ifm-color-emphasis-500); + background: var(--ifm-background-surface-color); + border: 1px dashed var(--ifm-color-emphasis-300); + border-radius: 8px; +} + /* Works */ .works { display: grid; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 57236b8..cf50e67 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -16,25 +16,26 @@ function HomepageHeader() { ); } -function RecentPosts() { +function RecentTech() { const posts = [ { title: 'DGX Spark デュアル構成ガイド', date: '2026-02-19', tag: 'DGX Spark', - url: '/blog/dgx-spark-dual', + url: '/tech/dgx-spark-dual', }, { title: 'DGX SparkでMiniMax-M2.5-REAP-172Bを動かす', date: '2026-02-18', tag: 'DGX Spark', - url: '/blog/dgx-spark-minimax', + url: '/tech/dgx-spark-minimax', }, ]; return (
-

📝 最近書いたもの

+

💻 Tech

+

技術記事・検証レポート

{posts.map((post, idx) => ( @@ -46,8 +47,23 @@ function RecentPosts() { ))}
+ + すべて見る → + +
+ ); +} + +function RecentBlog() { + return ( +
+

📝 Blog

+

日常の思考・情報収集

+
+

coming soon...

+
- すべての記事を見る → + すべて見る →
); @@ -64,7 +80,8 @@ function Works() { return (
-

🛠 作ったもの

+

🛠 Works

+

作ったもの

{works.map((work, idx) => (
- + +