Contribute to Anbox Cloud documentation¶
Although Anbox Cloud is a closed-source product, its documentation is open to contributions and is available at the Anbox Cloud documentation repository. If something is inaccurate, unclear or missing, we welcome your feedback and fixes.
Ways to contribute¶
Propose a fix by opening a pull request in the documentation repository.
Report a documentation issue, such as a broken link or a command that no longer works, on GitHub.
Report an Anbox Cloud product bug on Launchpad. Include the steps to reproduce it and any relevant command output.
Ask a question or discuss an improvement in the public Matrix channel or the Anbox Cloud forum.
How the docs are built¶
Anbox Cloud documentation is built with Sphinx using Canonical’s Sphinx Stack. It is hosted on Read the Docs.
We write the source files in Markdown with MyST extensions. For syntax help and guidelines, see the MyST syntax guide in the Sphinx Stack documentation.
We use the Diátaxis framework to organize the documentation into tutorials, how-to guides, reference and explanation. Follow the Anbox Cloud Documentation Style Guide for Anbox Cloud conventions on terminology, formatting and cross-references.
Contribute a change¶
Before you start¶
Contributing to our documentation is straightforward. We only require that all contributors sign the Canonical contributor license agreement.
Set up your working copy¶
To submit a change, you need a GitHub account and a git environment.
If you’re new to Git, see the Canonical Open Documentation Academy’s getting started guide.
Fork the documentation repository, clone your fork and create a branch for your change.
Edit the source¶
For a small fix, you can open a pull request directly. If you’re planning a larger change, such as rewriting a guide or updating several pages, consider opening a GitHub issue first to discuss the scope with the maintainers.
Edit the relevant Markdown files in your branch. If you move or rename a page, add an entry in redirects.txt using the format "old.md" "new.md". Both paths are relative to the repository root.
Preview your changes locally¶
Run the following command from the repository root.
make run
The first run creates a Python virtual environment and installs the build dependencies. Open the page you changed in the local preview (http://127.0.0.1:8000) and check any headings, links, code blocks, tabs or admonitions you edited. The site rebuilds when you save changes.
Run documentation checks locally¶
Before pushing your changes, run the following checks from the repository root.
make spellingchecks spelling.make linkcheckchecks links.make lint-mdchecks Markdown formatting.make wokechecks inclusive language.
For optional local checks, use make vale for style and make pa11y for accessibility.
Submit and preview your pull request¶
Commit your changes and push your branch to your fork. Then open a pull request targeting main in the Anbox Cloud documentation repository. Describe what changed and link to the issue if there is one.
GitHub Actions automatically checks spelling, links and inclusive language on your pull request. If a check fails, open its details to see what needs fixing.
Before your pull request can be merged, all required checks must pass and a maintainer must approve it.
Get help¶
If you’re unsure about a convention or a check, you can still submit your changes. Ask in your pull request or in the public Matrix channel, and we can help during review.