@@ -9,6 +9,7 @@ import compress from "astro-compress";
99import metaTags from "astro-meta-tags" ;
1010import { defineConfig } from "astro/config" ;
1111import rehypeExternalLinks from "rehype-external-links" ;
12+ import { remarkSandpack } from "remark-sandpack" ;
1213// @ts -ignore
1314import wikiLinkPlugin from "remark-wiki-link-plus" ;
1415import starlightScrollToTop from "starlight-scroll-to-top" ;
@@ -75,19 +76,23 @@ export default defineConfig({
7576 label : "執筆者向け" ,
7677 autogenerate : { directory : "for-writers/" } ,
7778 } ,
78- ] ,
79- } ,
80- {
81- label : "C言語" ,
82- link : "/textbook/c-lang/beginner/setup" ,
83- icon : "document" ,
84- items : [
8579 {
86- label : "基礎コース " ,
87- autogenerate : { directory : "textbook/c-lang/beginner " } ,
80+ label : "環境構築ガイド集 " ,
81+ autogenerate : { directory : "setups/ " } ,
8882 } ,
8983 ] ,
9084 } ,
85+ // {
86+ // label: "C言語",
87+ // link: "/textbook/c-lang/beginner/setup",
88+ // icon: "document",
89+ // items: [
90+ // {
91+ // label: "基礎コース",
92+ // autogenerate: { directory: "textbook/c-lang/beginner" },
93+ // },
94+ // ],
95+ // },
9196 {
9297 label : "Web" ,
9398 link : "/textbook/web/for-classes" ,
@@ -129,6 +134,7 @@ export default defineConfig({
129134 remarkPlugins : [
130135 [ remarkMermaid , { themes : [ "dark" , "neutral" ] } ] ,
131136 [ wikiLinkPlugin , { markdownFolder : "src/content/docs" } ] ,
137+ remarkSandpack ,
132138 ] ,
133139 rehypePlugins : [
134140 [
0 commit comments