You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When introducing links to other documentation pages, include the version, e.g. /docs/hotchocolate/v12/some-page.
Creating a new documentation page
Locate the directory of the product version you want to add a documentation entry for, e.g. src/docs/hotchocolate/v12.
Create a new Markdown file in one of the appropriate categories (or create a new one).
Open the src/docs/docs.json file and locate the array item where the value of the path property matches the product.
Inside of the version array, find the item where the value of the path property matches the version.
Locate (or create) the correct category object in the items property and add a new object to its items property:
{
"path": "your_markdown_filename_without_the_extensions",
"title": "The title of your document"
},
Finish the Markdown file.
Creating a new documentation version
Create a new directory for the new version inside of the product directory, e.g. src/docs/hotchocolate/v13.
Copy the contents of the previous version directory into the newly created version.
Open just the new version directory in a separate VS Code instance.
Search for /docs/hotchocolate/v12/ and replace it with /docs/hotchocolate/v13/. (hotchocolate being the product, v12 the previous version and v13 the new version)
Open the src/docs/docs.json file and locate the array item where the value of the path property matches the product.
Inside of the version array, copy and paste the object where the value of the path property matches the previous version.
In the duplicated object, update both the path and title property to the new version.