Refactor documentation structure and remove unused components #121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant enhancements to the PlayCanvas documentation system, including support for dynamic metadata generation, improved component imports, and a new metadata structure for organizing examples and documentation. Below are the most important changes grouped by theme:
Dynamic Metadata and Page Rendering:
[[...mdxPath]]/page.tsx, enabling metadata to be fetched and parsed for example pages using.meta.jsonfiles. This also includes rendering examples with thePlaygroundcomponent for interactive code previews. (packages/docs/app/[[...mdxPath]]/page.tsxR1-R63)Component Import Adjustments:
layout.tsxandclient-mdx-components.jsto use the@docs-componentsalias instead of relative paths, improving consistency and maintainability. [1] [2]Metadata Structure for Examples and Documentation:
_meta.tsxfile for organizing example pages with titles, links, and categories, providing a structured way to manage examples in the documentation._meta.tsxfile for thedocssection to define metadata for core documentation topics such as installation, guide, and API.Repository Link Update:
docsRepositoryBaseURL inlayout.tsxto remove the trailing slash, ensuring proper linking to the GitHub repository.