Squidoc

テーマ

このページでは テーマ に焦点を当て、Squidoc プロジェクト内でどのように機能するかを説明します。

設定する内容

ここでは レイアウト、ナビゲーション、フッター、スロット、見た目の設定を差し替えます。

公開前に確認すること

テーマは安定した docspage レイアウトをサポートする必要があります。

関連ページ

設定 · プラグイン · デプロイ

export default defineConfig({
  theme: "@squidoc/theme-basic",
});
export default defineConfig({
  theme: {
    name: "@squidoc/theme-basic",
    options: {
      headerLinks: [{ title: "GitHub", href: "https://github.com/Squidoc/Squidoc" }],
      footer: {
        text: "Built with Squidoc.",
        links: [
          { title: "GitHub", href: "https://github.com/Squidoc/Squidoc" },
          { title: "Configuration", path: "/docs/configuration" },
        ],
      },
    },
  },
});
npx squidoc add theme @acme/squidoc-theme
npm install @acme/squidoc-theme
export default defineConfig({
  theme: "@acme/squidoc-theme",
});
primaryColor: "#4a54df";
headerLinks: [
  { title: "GitHub", href: "https://github.com/Squidoc/Squidoc" },
  { title: "Deployment", path: "/docs/deployment" },
];
footer: {
  text: "Built with Squidoc.",
  links: [
    { title: "GitHub", href: "https://github.com/Squidoc/Squidoc" },
    { title: "Plugins", path: "/docs/plugins" },
  ],
};