Unverified Commit 04b8a70e authored by Hong Minhee's avatar Hong Minhee
Browse files

Add References section to documentation navigation

Organize API documentation links for all Fedify packages into a dedicated
References section in the documentation navigation, replacing the single
API reference link.

[ci skip]
parent 67cd278a
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -76,11 +76,23 @@ const MANUAL = {
    { text: "Testing", link: "/manual/test.md" },
    { text: "Logging", link: "/manual/log.md" },
    { text: "OpenTelemetry", link: "/manual/opentelemetry.md" },
    { text: "Deployment", link: "/manual/deploy.md" }
    { text: "Deployment", link: "/manual/deploy.md" },
  ],
  activeMatch: "/manual",
};

const REFERENCES = {
  text: "References",
  items: [
    { text: "@fedify/fedify", link: "https://jsr.io/@fedify/fedify/doc" },
    { text: "@fedify/amqp", link: "https://jsr.io/@fedify/amqp/doc" },
    { text: "@fedify/express", link: "https://jsr.io/@fedify/express/doc" },
    { text: "@fedify/h3", link: "https://jsr.io/@fedify/h3/doc" },
    { text: "@fedify/postgres", link: "https://jsr.io/@fedify/postgres/doc" },
    { text: "@fedify/redis", link: "https://jsr.io/@fedify/redis/doc" },
  ],
};

export default withMermaid(defineConfig({
  title: "Fedify",
  description: "Fedify docs",
@@ -92,7 +104,7 @@ export default withMermaid(defineConfig({
      { text: "CLI", link: "/cli.md" },
      TUTORIAL,
      MANUAL,
      { text: "API reference", link: "https://jsr.io/@fedify/fedify" },
      REFERENCES,
      ...extraNav,
    ],

@@ -106,6 +118,7 @@ export default withMermaid(defineConfig({
      },
      TUTORIAL,
      MANUAL,
      REFERENCES,
      {
        text: "Examples",
        link: "https://github.com/fedify-dev/fedify/tree/main/examples",