Working on the Netkit-JH Docs Site
#
This SiteThis docs website is built using the Docusaurus project. This means all the hard work is done for us, so we can just focus on writing good docs :)
The site is currently hosted on GitHub Pages, at https://netkit-jh.github.io.
Adding a docs page or blog page is very easy - they are just written in markdown - see the docusaurus reference for supported markdown features.
#
Errors / Broken Links on this WebsiteIf you find errors in terms of incorrect information in docs, or links that no longer point to the right place you can email me or open an issue on the Github Issue Tracker.
Alternatively if you are able to fix the issue yourself, we encourage you to do so and open a pull request!
#
Setting up a Dev Environmentnote
To run a development version of the site, first fork the repository, clone your fork and install necessary packages:
Then run with:
#
Make Some Changes!!Look at the guides for adding docs and creating a blog post!
#
Merge Your ContributionsWhen you've made some changes and want them to be added to the production site, first make sure your repository is up to date with the original:
You can now commit your changes and push them to your fork:
Now open your fork in GitHub @ https://github.com/YOUR_USERNAME/netkit-jh.github.io/pulls
From here you can click on new pull request. Then make sure the left side shows base repository as netkit-jh/netkit-jh.github.io
and the right side shows the head repository as YOUR_USERNAME/netkit-jh.github.io
.
Give the pull request a suitable title and description of what changes were made. These will then be reviewed before hopefully being merged in!
#
Publishingcaution
This is only possible if you have direct access to the repo as a contributor. If you are contributing through a pull request you will need a maintainer to publish the site after your pull request has been merged.
To deploy the latest version of the site make sure the branch 'main' has the latest changes and is ready to be published, then run (replace <GIT_USER> with your GitHub username):
It might be useful to add this as a function or alias in your shell's config file (e.g. ~/.bashrc or ~/.zshrc) :
Reminder
If a new version of Netkit-JH has just been released, remember to freeze the documentation! To do this run:
where VERSION is the release, e.g. 1.0.0