Documentation¶
This guide provides information necessary to contribute to this documentation. If you’re contributing for the first time, you might find the Canonical Open Documentation Academy has helpful resources to get you started.
Report an issue¶
To report a mistake on any page, or highlight some missing documentation, file an issue in our issues list on GitHub.
You can do this using the Give feedback button on any page, which will open a new issue.
Make sure to provide enough information in the issue for us to understand what is needed.
Contribute on GitHub¶
If you are familiar with a Git development workflow, fork the
[Steam snap repository](https://github.com/canonical/steam snap)
and contribute your change as a
pull request.
Directory structure¶
All the documentation files are located in the docs/ directory. The docs/
directory contains sub-directories according to the type of content.
All content is written and split according to the principles of Diátaxis. It is then organized for our readers according to who is using it, and how.
Build the documentation locally¶
Follow these steps to build the documentation on your local machine.
Prerequisites¶
Git
The
maketoolNote
The
makecommand is compatible with Unix systems. On Windows, install Ubuntu with WSL.
Procedure¶
Fork the Steam snap repository. Visit Fork a repository for instructions.
Clone the repository to your machine:
git clone git@github.com:<your_user_name>/steam-snap.git
Create a new branch:
git checkout -b <your_branch_name>
Change to the
docs/directory and make your contribution:cd docs
Build a live preview of the documentation from within the
docs/directory:make run
You can find all the HTML files in the
.build/directory.make runuses the Sphinxautobuildmodule, so that any edits you make (and save) as you work are applied, and the built HTML files refresh immediately.Review your contribution in a web browser by navigating to
127.0.0.1:8000.Push your contribution to GitHub and create a pull request against the original repository.
Documentation format¶
The Steam on Ubuntu documentation is built with Sphinx using a combination of the MyST flavor of the Markdown.
Testing the documentation¶
Test your changes before submitting a pull request. Run the following commands from within the docs/ directory to test the documentation locally:
command |
use |
|---|---|
|
Check for spelling errors |
|
Check for broken links |
|
Check for non-inclusive language |
|
Check for accessibility issues |