Update doc-guidelines
This commit is contained in:
parent
3aeccb1d5a
commit
b912a1aa8b
|
@ -15,31 +15,31 @@ All Qubes OS documentation pages are stored as plain text files in the
|
||||||
dedicated [qubes-doc] repository. By cloning and regularly pulling from
|
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
|
this repo, users can maintain their own up-to-date offline copy of all Qubes
|
||||||
documentation rather than relying solely on the Web. Contributions to the
|
documentation rather than relying solely on the Web. Contributions to the
|
||||||
documentation (both new content and edits of existing content) are welcome. To
|
documentation (both new content and edits of existing content) are welcome!
|
||||||
contribute, please [fork and clone][gh-fork] this repo, make your changes,
|
|
||||||
|
To contribute, please [fork and clone][gh-fork] this repo, make your changes,
|
||||||
then either [submit a pull request][gh-pull] or [send a patch][patch] to the
|
then either [submit a pull request][gh-pull] or [send a patch][patch] to the
|
||||||
`qubes-devel` [mailing list][lists]. If you have a GitHub account (free), you
|
`qubes-devel` [mailing list][lists]. If you have a GitHub account (free), you
|
||||||
can simply browse the [qubes-doc] repository and edit the files there. The
|
can simply browse the [qubes-doc] repository and edit the files there. The
|
||||||
GitHub interface will automatically guide you through the
|
GitHub interface will automatically guide you through the
|
||||||
[fork and pull request creation process][gh-fork].
|
[fork and pull request creation process][gh-fork]. (We provide a detailed
|
||||||
|
walkthrough of this process below.)
|
||||||
|
|
||||||
|
|
||||||
Markdown Conventions
|
Markdown Conventions
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
All the documentation is written in Markdown for maximum accessibility. When
|
All the documentation is written in Markdown for maximum accessibility. When
|
||||||
making contributions, please observe the following style conventions:
|
making contributions, please try to observe the following style conventions,
|
||||||
|
where appropriate:
|
||||||
|
|
||||||
* Use spaces instead of tabs.
|
* Use spaces instead of tabs.
|
||||||
* Hard wrap Markdown lines at 80 characters.
|
* Hard wrap Markdown lines at 80 characters.
|
||||||
* Hard wrap Git commit message lines at 72 characters.
|
|
||||||
* This leaves exactly four spaces on each side of the commit message when
|
|
||||||
viewed in the default `git log` format.)
|
|
||||||
* If appropriate, make numerals in numbered lists match between Markdown
|
* If appropriate, make numerals in numbered lists match between Markdown
|
||||||
source and HTML output.
|
source and HTML output.
|
||||||
* In the event that a user is required to read the Markdown source
|
* 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
|
directly, this will make it easier to follow, e.g., numbered steps in a set
|
||||||
set of instructions.
|
of instructions.
|
||||||
* Use hanging indentations
|
* Use hanging indentations
|
||||||
where appropriate.
|
where appropriate.
|
||||||
* Use underline headings (`=====` and `-----`) if possible. If this is not
|
* Use underline headings (`=====` and `-----`) if possible. If this is not
|
||||||
|
@ -47,69 +47,98 @@ making contributions, please observe the following style conventions:
|
||||||
(`### H3 ###`).
|
(`### H3 ###`).
|
||||||
* Use `[reference-style][ref]` links.
|
* Use `[reference-style][ref]` links.
|
||||||
|
|
||||||
`[ref]: http://daringfireball.net/projects/markdown/syntax#link`
|
`[ref]: https://daringfireball.net/projects/markdown/syntax#link`
|
||||||
|
|
||||||
Editing Qubes documentation
|
([This][md] is a great source for learning about Markdown syntax.)
|
||||||
---------------------------
|
|
||||||
|
|
||||||
Editing Qubes documentation is easy, if you spot some errors, feel free to
|
|
||||||
correct it. Because Qubes OS is security-oriented project, every documentation
|
|
||||||
change will be reviewed before being visible on the main page.
|
|
||||||
|
|
||||||
First of all, we keep documentation in git repository hosted on
|
Git Conventions
|
||||||
[github][github]. Thanks to github interface, you can edit documentation even
|
---------------
|
||||||
if you do not know git at all. But you need a github account for that (it is
|
|
||||||
free!).
|
|
||||||
|
|
||||||
Ok, lets start. Every documentation page have "Edit this page" button. It can
|
Please attempt to follow these conventions when writing your Git commit
|
||||||
be on the right side (in desktop layout):
|
messages:
|
||||||
|
|
||||||
|
* Separate the subject line from the body with a blank line.
|
||||||
|
* Limit the subject line to approximately 50 characters.
|
||||||
|
* Capitalize the subject line.
|
||||||
|
* Do not end the subject line with a period.
|
||||||
|
* Use the imperative mood in the subject line.
|
||||||
|
* Wrap the body at 72 characters.
|
||||||
|
* Use the body to explain *what* and *why* rather than *how*.
|
||||||
|
|
||||||
|
For details, examples, and the rationale behind each of these conventions,
|
||||||
|
please see [this blog post][git-commit], which is the source of this list.
|
||||||
|
|
||||||
|
|
||||||
|
How to Contribute Using GitHub
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
Editing the documentation is easy, so if you spot any errors, please help us
|
||||||
|
fix them! (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 repository
|
||||||
|
hosted on [GitHub][github]. Thanks to GitHub interface, you can edit the
|
||||||
|
documentation even if you don't know Git at all! The only thing you need is a
|
||||||
|
GitHub account, which is free.
|
||||||
|
|
||||||
|
Ok, let's start. Every documentation page has an "Edit this page" button. It may
|
||||||
|
be on the right side (in the desktop layout):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Or at the bottom in mobile layout:
|
Or at the bottom (in the mobile layout):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
When you click on it, you'll be prompted for Github username and password (if
|
When you click on it, you'll be prompted for your GitHub username and password
|
||||||
you aren't logged in already). You can also create an account from
|
(if you aren't already logged in). You can also create an account from here.
|
||||||
there.
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
If it is your first contribution to the documentation, you need to "fork" a
|
If this is your first contribution to the documentation, you need to "fork" the
|
||||||
repository (make your own copy). It's easy - just click that big green button
|
repository (make your own copy). It's easy --- just click the big green button
|
||||||
on the next page. This step is needed only for the first time.
|
on the next page. This step is only needed the first time you make a
|
||||||
|
contribution.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Then you can make your modifications. You can also preview how the changes will
|
Now you can make your modifications. You can also preview the changes to see how
|
||||||
be formated using "Preview changes" tab above editor.
|
they'll be formatted by clicking the "Preview changes" tab.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
When you finish, describe your changes at the bottom and click "Propose file change".
|
Once you're finish, describe your changes at the bottom and click "Propose file
|
||||||
|
change".
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
After that, you'll see what exactly modification you've made. At this stage
|
After that, you'll see exactly what modifications you've made. At this stage,
|
||||||
those changes are still in your own copy of the documentation ("fork"). If
|
those changes are still in your own copy of the documentation ("fork"). If
|
||||||
everything is ok, send those change to us back using "Create pull request"
|
everything looks good, send those changes to us by pressing the "Create pull
|
||||||
button.
|
request" button.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
You will be able to adjust pull request message and title there. In most cases
|
You will be able to adjust the pull request message and title there. In most
|
||||||
defaults are ok, so you can just confirm with "Create pull request" button
|
cases, the defaults are ok, so you can just confirm by pressing the "Create pull
|
||||||
again.
|
request" button again.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
That's all! We will review your changes. If everything looks good, we'll pull
|
||||||
That's all! We will review your changes and eventually pull them into Qubes
|
them into the official documentation. Otherwise, we may have some questions for
|
||||||
documentation. You'll get email notification about that.
|
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.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
[md]: https://daringfireball.net/projects/markdown/syntax
|
||||||
[qubes-doc]: https://github.com/QubesOS/qubes-doc
|
[qubes-doc]: https://github.com/QubesOS/qubes-doc
|
||||||
[qubes]: https://github.com/QubesOS
|
[qubes]: https://github.com/QubesOS
|
||||||
[gh-fork]: https://guides.github.com/activities/forking/
|
[gh-fork]: https://guides.github.com/activities/forking/
|
||||||
|
@ -117,3 +146,4 @@ documentation. You'll get email notification about that.
|
||||||
[patch]: /doc/SourceCode/#sending-a-patch
|
[patch]: /doc/SourceCode/#sending-a-patch
|
||||||
[lists]: https://www.qubes-os.org/doc/QubesLists/
|
[lists]: https://www.qubes-os.org/doc/QubesLists/
|
||||||
[github]: https://github.com/
|
[github]: https://github.com/
|
||||||
|
[git-commit]: http://chris.beams.io/posts/git-commit/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user