Skip to content

docs(platform): add API Reference landing page (fix /api/ 404)#140

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
docs/api-reference-landing-page
Jul 14, 2026
Merged

docs(platform): add API Reference landing page (fix /api/ 404)#140
ArnobKumarSaha merged 1 commit into
masterfrom
docs/api-reference-landing-page

Conversation

@tamalsaha

Copy link
Copy Markdown
Member

Problem

On the live site, the API Reference top-level nav item links to /docs/platform/<version>/api/, which returns 404 — the section does not open correctly (reported for v2026.7.10/welcome/).

Cause

This site does not render the Hugo section kind: _index.md files only contribute menu nodes, and each top-level section's landing page is served by a README.md with an explicit url: (the same pattern as guides/ and selfhost-setup/, and the fix in #137). The API Reference section shipped with only _index.md, so nothing was generated at /api/.

Fix

  • Add docs/platform/api/README.md as the section landing page — url: pinned to the section root, parent: api, weight: -1, aliases — mirroring guides/README.md and selfhost-setup/README.md. Its group table links to a leaf page per group (group roots aren't rendered either).
  • Reduce docs/platform/api/_index.md to a bare menu node, matching the other sections.

Verification

  • Built the exact CI liche fork (with -s) → local link check passes (README.md is excluded via -i '^README\.md$', and _index.md no longer carries links).
  • Local Hugo 0.128.2 build passes and generates the README landing page (alias processed).

Top-level sections on this site render their landing page from a README.md
with an explicit url: (the section kind itself is not rendered), the same
pattern used by guides/ and selfhost-setup/. The API Reference section only
had _index.md, so /docs/platform/<ver>/api/ returned 404 and the section did
not open from the nav.

- Add docs/platform/api/README.md as the section landing page (url pinned to
  the section root, parent: api, weight: -1), linking to a leaf page per group
  since group roots are not rendered.
- Reduce docs/platform/api/_index.md to a bare menu node, matching
  guides/_index.md and selfhost-setup/_index.md.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 0637799):

https://kubedb-v2-hugo--pr140-docs-api-reference-l-tc97no2m.web.app

(expires Tue, 21 Jul 2026 06:35:31 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0f29ae8ae0bd54a99bf2b223b6833be47acd5943

@ArnobKumarSaha
ArnobKumarSaha merged commit 5c3892b into master Jul 14, 2026
6 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the docs/api-reference-landing-page branch July 14, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants