You will learn how to publish new pages after following the instructions on this page.
Add your first page
Create a folder called docploy/docs/
in your root directory.
Add a new file, docploy/docs/index.md
, with the following content:
---title: My first documentdescription: Read my wonderful text---# IntroductionI am here to introduce my first document to you.
The docploy/docs/index.md
document is served as the main documentation page.
Use git
to commit your changes into a new branch, then push the branch to trigger a workflow to publish your new docuemntation.
git checkout -b first_pagegit add .git commit -m "Publish my first page"git push origin first_page
After pushing the new branch, go to your GitHub repository's Actions
page to see that the workflow was successful.
Visit the baseUrl
defined in .github/workflows/main.yml
file to see your new page.
Add more pages
Add another file, docploy/docs/top-level/another-page.md
, with the following content:
---title: Another Pagedescription: Learn about another topic---# Always be learningRemember to stay curious.
You will see the sidebar render the following:
Top LevelAnother Page
This example shows how to add new pages under different sidebar sections. The .../top-level/...
directory is formatted as Top Level
in the sidebar, and all .md
pages within that directory are placed within the same section.