Typical Tasks in Markdown
The following tasks need to be performed regularly:
- adding a new project
- removing a project
- updating the submodules
Create documentation for a new project
Prerequisites:
- you have cloned the project to your machine
Steps:
-
create a mkdocs.yml file in the root folder
-
add basic content for a raw project (take another project as an example). Avoid themes configuration.
Add a new project to doc
Prerequisites:
- you have cloned pwrp/doc to your machine
Steps:
-
open VSC on the pwrp/doc repo
-
sync
-
execute
git submodule add -b $branch$ https://github.com/pwrp/$project$.git projects/$folder$/$project$where you replace \(project\) and \(folder\) -
execute
git submodule update --init -
commit and sync the master project (pwrp/doc)
-
on GitHub, make sure the GitHub Actions build successfully
-
on https://doc.pwrp.pro, check that the new content is appearing in the right place
Checklist:
- The content of the new project appears on https://doc.pwrp.pro
Remove a project
Prerequisities:
- the project has been added as a submodule to pwrp/doc
Steps:
-
open VSC on the pwrp/doc repo
-
sync
-
execute
git rm projects/$folder$/$project$, replacing$folder$and$project$ -
commit and sync the master project (pwrp/doc)
-
on GitHub, make sure the GitHub Actions build successfully
-
on https://doc.pwrp.pro, check that the content is gone
Checklist:
- The content of the project doesn't appear on https://doc.pwrp.pro anymore
- The submodule has been removed from pwrp/doc
Update Submodule
NOTES: for this to work, you need
- call the
git submodule addwith the-b mainor-b masterflag. This will tell git which branch we track in the submodule. - to have called
git submodule update --initfirst