2015-09-22 06:31:53 -04:00
---
layout: doc
title: Documentation Guidelines
2015-10-28 18:14:40 -04:00
permalink: /doc/doc-guidelines/
2015-09-22 06:31:53 -04:00
redirect_from:
2015-10-28 18:14:40 -04:00
- /en/doc/doc-guidelines/
- /wiki/DocStyle/
- /doc/DocStyle/
2015-09-22 06:31:53 -04:00
---
2016-02-20 17:07:39 -05:00
Documentation Guidelines
========================
2015-09-22 06:31:53 -04:00
All Qubes OS documentation pages are stored as plain text files in the
dedicated [qubes-doc] repository. By cloning and regularly pulling from
this repo, users can maintain their own up-to-date offline copy of all Qubes
2016-03-14 09:47:07 -04:00
documentation rather than relying solely on the Web.
2016-02-02 18:09:21 -05:00
2017-04-01 11:53:06 -04:00
The documentation is a community effort. Volunteers work hard trying to
2016-03-14 09:47:07 -04:00
keep everything accurate and comprehensive. If you notice a problem with the
documentation or some way it can be improved, please [report] it! Better
2017-04-01 11:53:06 -04:00
yet, you can [edit the documentation][contribute] yourself, both to add or improve existing content.
2015-09-22 06:31:53 -04:00
2016-03-14 09:47:07 -04:00
How to Report Issues
2015-09-22 06:31:53 -04:00
--------------------
2017-04-01 11:53:06 -04:00
To report an issue, please create one in [qubes-issues], but before you do,
please make sure it does **not** already exist. Documentation-related
2016-03-14 09:47:07 -04:00
issues will be assigned the `doc` label. Issues which have been created in
[qubes-issues] are significantly more likely to be addressed than those sent in
emails to the mailing lists or to individuals.
2016-02-02 18:09:21 -05:00
2016-03-14 09:47:07 -04:00
How to Contribute
-----------------
2016-02-02 18:09:21 -05:00
Editing the documentation is easy, so if you spot any errors, please help us
2016-03-14 09:47:07 -04:00
fix them! (As mentioned above, the documentation maintainers are just volunteers
who have day jobs of their own, so we rely heavily on the community to improve
the documentation.) Since Qubes is a security-oriented project, every
documentation change will be reviewed before it's published to the web. This
allows us to maintain quality control and protect our users.
As mentioned above, we keep all the documentation in a dedicated [Git
2018-01-01 15:55:25 -05:00
repository][qubes-doc] hosted on [GitHub]. Thanks to GitHub's interface, you can
2016-03-14 09:47:07 -04:00
edit the documentation even if you don't know Git at all! The only thing you
need is a GitHub account, which is free.
(Note: If you're already familiar with GitHub or wish to work from the command
line, you can skip the rest of this section. All you need to do to contribute is
to [fork and clone][gh-fork] the [qubes-doc] repo, make your changes, then
[submit a pull request][gh-pull].)
2016-02-02 18:09:21 -05:00
Ok, let's start. Every documentation page has an "Edit this page" button. It may
be on the right side (in the desktop layout):
2016-01-29 07:40:00 -05:00
![edit-button-desktop ](/attachment/wiki/doc-edit/03-button2.png )
2016-02-02 18:09:21 -05:00
Or at the bottom (in the mobile layout):
2016-01-29 07:40:00 -05:00
![edit-button-mobile ](/attachment/wiki/doc-edit/02-button1.png )
2016-02-02 18:09:21 -05:00
When you click on it, you'll be prompted for your GitHub username and password
(if you aren't already logged in). You can also create an account from here.
2016-01-29 07:40:00 -05:00
![github-sign-in ](/attachment/wiki/doc-edit/04-sign-in.png )
2016-02-02 18:09:21 -05:00
If this is your first contribution to the documentation, you need to "fork" the
repository (make your own copy). It's easy --- just click the big green button
on the next page. This step is only needed the first time you make a
contribution.
2016-01-29 07:40:00 -05:00
![fork ](/attachment/wiki/doc-edit/05-fork.png )
2016-02-02 18:09:21 -05:00
Now you can make your modifications. You can also preview the changes to see how
they'll be formatted by clicking the "Preview changes" tab.
2016-01-29 07:40:00 -05:00
![edit ](/attachment/wiki/doc-edit/06-edit.png )
2017-04-01 11:53:06 -04:00
Once you're finished, describe your changes at the bottom and click "Propose file
2016-02-02 18:09:21 -05:00
change".
2016-01-29 07:40:00 -05:00
![commit ](/attachment/wiki/doc-edit/07-commit-msg.png )
2016-02-02 18:09:21 -05:00
After that, you'll see exactly what modifications you've made. At this stage,
2016-01-29 07:40:00 -05:00
those changes are still in your own copy of the documentation ("fork"). If
2016-02-02 18:09:21 -05:00
everything looks good, send those changes to us by pressing the "Create pull
request" button.
2016-01-29 07:40:00 -05:00
![pull-request ](/attachment/wiki/doc-edit/08-review-changes.png )
2016-02-02 18:09:21 -05:00
You will be able to adjust the pull request message and title there. In most
cases, the defaults are ok, so you can just confirm by pressing the "Create pull
request" button again.
2016-01-29 07:40:00 -05:00
![pull-request-confirm ](/attachment/wiki/doc-edit/09-create-pull-request.png )
2016-02-02 18:09:21 -05:00
That's all! We will review your changes. If everything looks good, we'll pull
them into the official documentation. Otherwise, we may have some questions for
you, which we'll post in a comment on your pull request. (GitHub will
automatically notify you if we do.) If, for some reason, we can't accept your
pull request, we'll post a comment explaining why we can't.
2016-01-29 07:40:00 -05:00
![done ](/attachment/wiki/doc-edit/10-done.png )
2015-09-22 06:31:53 -04:00
2016-02-02 18:09:21 -05:00
2018-01-06 16:18:45 -05:00
Version-specific Documentation
------------------------------
We maintain only one set of documentation for Qubes OS.
We do not maintain a different set of documentation for each version of Qubes.
Our single set of Qubes OS documentation is updated on a continual, rolling basis.
Our first priority is to document all **current, stable releases** of Qubes.
Our second priority is to document the next, upcoming release (if any) that is currently in the beta or release candidate stage.
In cases where a documentation page covers functionality that differs considerably between Qubes OS versions, the page should be subdivided into clearly-labeled sections that cover the different functionality in different versions.
2017-01-23 07:29:55 -05:00
Contribution Suggestions
------------------------
* If you find any inaccuracies in the documentation, please correct them!
2017-04-01 11:53:06 -04:00
* If you find an inaccuracy but don't know how to correct it, you can still help
2017-01-23 07:29:55 -05:00
by documenting the inaccuracy. For example, if you have *thoroughly* tested
a set of steps in the documentation and know *for certain* that they no
2017-04-01 11:53:06 -04:00
longer work on a certain version of Qubes (maybe because the steps are
2017-01-23 07:29:55 -05:00
out-of-date), then please add a note to the documentation indicating this.
You may also wish to provide a link to a relevant thread on the [mailing
lists].
* Where appropriate, specify the version of the software to which your
contribution applies. For example, if you're contributing a set of
instructions for doing something in dom0, specify the version(s) of Qubes OS
with which you know these instructions to work. This allows future readers to
more easily estimate the accuracy and applicability of information.
2016-03-14 09:47:07 -04:00
Style Guidelines
----------------
* Familiarize yourself with the terms defined in the [glossary]. Use these
terms consistently and accurately throughout your writing.
Markdown Conventions
--------------------
2018-02-03 16:08:05 -05:00
All the documentation is written in Markdown for maximum accessibility.
When making contributions, please try to observe the following style conventions:
2016-03-14 09:47:07 -04:00
* Use spaces instead of tabs.
2018-02-03 16:08:05 -05:00
* In order to enable offline browsing, use relative paths (e.g., `/doc/doc-guidelines/` instead of `https://www.qubes-os.org/doc/doc-guidelines/` , except when the source text will be reproduced outside of the Qubes website repo.
Examples of exceptions:
* [QSBs] (intended to be read as plain text)
* [News] posts (plain text is reproduced on the [mailing lists])
* URLs that appear inside code blocks (e.g., in comments and document templates)
* Files like `README.md` and `CONTRIBUTING.md`
* Insert a newline at the end of each sentence, except when the text will be reproduced outside of the Qubes website repo (see previous item for examples).
* Rationale: This practice is most appropriate for source that consists primarily of natural language text.
It results in the most useful diffs and facilitates translation into other languages while mostly preserving source readability.
* If appropriate, make numerals in numbered lists match between Markdown source and HTML output.
* Rationale: In the event that a user is required to read the Markdown source directly, this will make it easier to follow, e.g., numbered steps in a set of instructions.
2016-03-14 09:47:07 -04:00
* Use hanging indentations
where appropriate.
2018-02-03 16:08:05 -05:00
* Use underline headings (`=====` and `-----` ) if possible.
If this is not possible, use Atx-style headings on both the left and right sides (`### H3 ###`).
2016-03-14 09:47:07 -04:00
* Use `[reference-style][ref]` links.
`[ref]: https://daringfireball.net/projects/markdown/syntax#link`
([This][md] is a great source for learning about Markdown.)
Git Conventions
---------------
2016-12-11 04:35:12 -05:00
Please try to write good commit messages, according to the
[instructions in our coding style guidelines][git-commit].
2016-03-14 09:47:07 -04:00
2015-09-22 06:31:53 -04:00
[qubes-doc]: https://github.com/QubesOS/qubes-doc
2016-03-22 18:40:50 -04:00
[glossary]: /doc/glossary/
2016-03-14 09:47:07 -04:00
[report]: #how -to-report-issues
[contribute]: #how -to-contribute
[qubes-issues]: https://github.com/QubesOS/qubes-issues/issues
2015-09-22 06:31:53 -04:00
[gh-fork]: https://guides.github.com/activities/forking/
[gh-pull]: https://help.github.com/articles/using-pull-requests/
2016-03-14 09:47:07 -04:00
[GitHub]: https://github.com/
2017-01-23 07:29:55 -05:00
[mailing lists]: /mailing-lists/
2018-02-03 16:08:05 -05:00
[QSBs]: /security/bulletins/
[News]: /news/
2016-03-14 09:47:07 -04:00
[md]: https://daringfireball.net/projects/markdown/
2016-12-11 04:35:12 -05:00
[git-commit]: /doc/coding-style/#commit-message-guidelines
2018-02-03 16:08:05 -05:00