Contribute to Documentation
Making contributions to MarkBind is not limited to code. You can also contribute to our documentation by fixing typos, improving the clarity of our explanations, or adding new content.
Assuming that you have completed the Explore MarkBind as a user task, you should have a working local MarkBind setup.
To review the documentation and make changes to it locally, you can:
docs
by running cd docs
.markbind serve -d
.You may want to check if there are any open issues tagged with the a-Documentation
label. These issues are usually related to documentation and may be a good place to start contributing for real!
Checkpoint
Ensure that you can serve the MarkBind documentation site in development mode. You should be able to browse the site at http://localhost:8080.
In the following steps, we will be fixing a hypothetical typo. You do not need to commit the changes or raise a PR, but understand the context and follow the steps to get a feel for the process.
Let's suppose we want to change the use of "Pop-Up" in our user guide to "Popup" (i.e. remove the hyphen).
These are the typical motivations for making documentation changes:
Before making any changes, go through the following steps:
If the issue has been triaged and is ready to be worked on, we can proceed to make the changes. Since this is a trivial (and assuming correct) change, we will not be raising an issue and will proceed to make the changes directly.
docs/userGuide/components/popups.md
file.Pop-Up
/pop-up
with Popup
/popup
in the file.docs/_markbind/layouts/userGuide.md
to modify the site navigation item under Using Components
from Pop-Ups
to Popups
.Pop-Up
/pop-up
in the docs
directory to ensure that there are no other occurrences of the word. Else, replace them as well.Checkpoint
Check that the following are true:
Using Components
in the user guide is now Popups
Pop-Up
/pop-up
has been replaced with Popup
/popup
in the rendered page.Once you have made the changes, commit them and push them to your forked repository.
Now, you can make a pull request targeting the master
branch of the MarkBind repository.
Since this is a hypothetical change, you do not need to raise a PR. You can refer to PR #1924 for an example.
Checkpoint
For actual documentation changes, check that the following are true:
In this task, you have learned how to make documentation changes to MarkBind!
While documentation changes are not as exciting as code changes, they are still important. In particular, our documentation is generated by MarkBind itself, utilizing the same features that we are documenting. This means that our documentation is a great place to discover and analyze how MarkBind is used!
Here are some additional tasks for you to try out:
a-Documentation
label
When you are ready, move on to learn how to squash some bugs!