How to contribute to the documentation
Setting up git and GitHub
The documentation is maintained separately from the other parts of the HXWD website. Instead of your HXWD account, you will need a GitHub account to contribute to the HXWD Documentation. If you are comfortable working with git and GitHub, you can skip ahead to Contributing to the HXWD Docs. If you’ve created a new GitHub account and want to know what to do next, you can choose one of the following ways to contribute changes:
- GitHub UI - This is the easiest way to contribute small changes described in Simple changes.
- GitHub Desktop - A desktop app for managing interaction with GitHub.
- GitHub CLI - A command-line wrapper for interacting with GitHub.
git
- You can usegit
from the command line to interact with GitHub. The examples in this document assume you are using this method. Thegit
cheat sheet and Using Git guide are useful resources for beginners and advanced users.
Contributing to the HXWD Docs
Simple changes
If you want to make a small change like fixing a typo, the GitHub UI is the easiest way to get started. If you’ve found a typo on the page The results of a full text search, for example, you can propose a fix as follows:
- Sign in to GitHub
- Navigate to https://github.com/tls-kr/tls-kr.github.io
- Find the source file, in this case
en/manual/search-results.md
- Click the edit (pencil) button
From there, the GitHub UI will walk you through the rest by creating a fork and a branch to commit your changes to. After you have made changes to your branch, open a pull request with your changes to be incorporated.
A pull request represents the work you want to be reviewed, approved, and merged into the main
branch of the HXWD repository.
See the Creating a pull request for more details on creating and handling pull requests successfully.
If you’re not certain of the changes that you want to make, get in touch with us by reporting the problem here!
NOTE
You can click the 🌟Edit This Page link at the top of an HXWD page to jump directly to the page source on GitHub.
A pull request represents the work you want to be reviewed, approved, and merged into the main
branch of the HXWD repository.
See the Creating a pull request for more details on creating and handling pull requests successfully.
More elaborate changes
If you would like to more thoroughly contribute, the recommended way is as follows:
- Fork the repository at HXWD Docs using the “Fork” button in the upper left area of the page to your own GitHub account.
- Clone the forked repository to your own computer or device where you would like to do the editing.
- Use the application Obsidian to open the folder
hxwd-docs/content
as a “Vault”. - You have now the complete copy of the documentation on your own computer, ready to be edited and improved to your hearts content.
- (Optional, but also highly recommended) - you can preview how your changes would look on the published site locally on your computer. To do this, you need at least Node v20 and
npm
v9.3.1. In most cases, using a tool callednvm
is the best way to install these, here is a step by step tutorial that works on many platforms.-
With
npm
in place, you can simply runnpx quartz build --serve
in the folder
hxwd-docs
and you can then access the local website here -
An additional advantage of this method is that you can easily sync your changes back to the GitHub repository with
npx quartz sync
once you are satisfied with your changes.
-
- If you do not install
npx
, you will not be able to locally preview your changes, and you will have to manually push then back to your GitHub repository. - Once you are satisfied with the changes, you can open a pull request (PR) and the maintainers will add your contributions to the published version.