Standard for hierarchical sitemaps #183772
Replies: 2 comments 2 replies
-
Why isn't there a standard?The standard Because the official XML protocol doesn't support nesting, developers use three "de facto" standards to handle hierarchical site structures. 1. The "Documentation Standard" (YAML/JSON)If you look under the hood of sites like Just the Docs, Docusaurus, or MkDocs, they don't use XML for hierarchy. They use a YAML configuration file.
sidebar:
- Getting Started:
- Installation: "/docs/install"
- Basic Setup: "/docs/setup"
- Advanced Features:
- Custom Hooks: "/docs/hooks"2. The "SEO Standard" (JSON-LD Breadcrumbs)Google doesn't usually want to read a separate "tree" file; they prefer to see the hierarchy directly on the individual pages.
3. The "Old School" Standard (OPML)If you specifically need an XML-based format designed for outlines, OPML (Outline Processor Markup Language) is the answer.
Comparison: Which format should you choose?
The bottom line: If you are building a site and want a machine-readable sidebar, avoid the standard Sitemaps XML. Instead, create a |
Beta Was this translation helpful? Give feedback.
-
|
Congrats on creating your organization! 🎉 Add repositories – start with small projects or templates. Invite collaborators – teammates or friends can help you contribute. Push commits regularly – keep your repos active. Promote your org – share it on social media or developer communities. Contribute to open-source – your org can fork popular repos and submit PRs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Are there any standards for creating machine readable sitemaps with a hierarchical structure similar to the outline on the left sidebar on sites like https://just-the-docs.com/? The Sitemaps XML format doesn't currently support this.
https://software.codidact.com/posts/295262
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions