バージョン管理
Squidoc は、プラグイン、テーマ、SEO 向けの既定設定を備えた静的ファーストのドキュメント基盤です。Markdown を書き、docs.config.ts で設定し、高速な静的サイトとして公開できます。
プロジェクト構成
記事は docs/、任意の Astro ページは pages/、サイト情報・ナビゲーション・プラグイン・テーマは docs.config.ts で管理します。
拡張
プラグインは検索、SEO、コードブロック、バージョン管理、国際化、生成ファイルを追加します。テーマはレイアウト、ナビゲーション、スロットを制御します。
確認
公開前に npm run check、npm run build、npm run preview を実行します。
Versioning
このページは英語版ドキュメントに対応しており、サポートされるすべての言語で現在のバージョンのカバレッジをそろえます。
参考例
npx squidoc add plugin @squidoc/plugin-versions
export default defineConfig({
plugins: [
"@squidoc/plugin-seo",
"@squidoc/plugin-codeblocks",
"@squidoc/plugin-article-tree",
{
name: "@squidoc/plugin-versions",
options: {
current: {
name: "1.0",
label: "1.0",
},
versions: [
{
name: "0.9",
label: "0.9",
},
],
},
},
],
});
docs/
index.md
configuration.md
plugin-authoring.md
docs/
versions/
0.9/
index.md
configuration.md
plugin-authoring.md
{
name: "@squidoc/plugin-versions",
options: {
current: { name: "2.0", label: "2.0" },
versions: [
{
name: "1.0",
label: "1.0",
docsPrefix: "archive/v1",
routePrefix: "/v1",
},
],
},
}
{
name: "@squidoc/plugin-versions",
options: {
current: {
name: "next",
label: "Next",
routePrefix: "/next",
hidden: true,
},
versions: [
{
name: "0.1",
label: "0.1",
routePrefix: "/",
current: true,
},
],
},
}
[
{
"name": "1.0",
"label": "1.0",
"routePrefix": "/docs",
"current": true,
"routes": ["/docs", "/docs/configuration"]
},
{
"name": "0.9",
"label": "0.9",
"routePrefix": "/docs/versions/0.9",
"current": false,
"routes": ["/docs/versions/0.9", "/docs/versions/0.9/configuration"]
}
]
{
squidocVersion: "0.9",
squidocVersionLabel: "0.9",
squidocVersionRoutePrefix: "/docs/versions/0.9",
squidocVersionCurrent: false,
}