Daniel Erat | c10be9e | 2017-03-07 01:51:49 | [diff] [blame] | 1 | # Chromium OS docs |
| 2 | |
Daniel Erat | dd609d3 | 2017-04-06 15:23:03 | [diff] [blame] | 3 | This directory contains public [Chromium OS] project documentation that is |
| 4 | automatically [rendered by Gitiles]. The docs are written in [Gitiles-flavored |
| 5 | Markdown]. |
Daniel Erat | c10be9e | 2017-03-07 01:51:49 | [diff] [blame] | 6 | |
| 7 | ## General guidelines |
| 8 | |
| 9 | See the [Chromium documentation guidelines] and [Chromium documentation best |
| 10 | practices]. |
| 11 | |
| 12 | ## Style guide |
| 13 | |
| 14 | Markdown documents must follow the [style guide]. |
| 15 | |
Daniel Erat | 6bc2678 | 2017-06-27 22:59:22 | [diff] [blame] | 16 | ## Making changes |
| 17 | |
| 18 | This repository is managed by the [repo] tool, so you can make changes to it |
| 19 | using the same techniques that you'd use for any other repositories in the |
Mike Frysinger | 57ef007 | 2018-10-05 22:49:46 | [diff] [blame] | 20 | project. |
Daniel Erat | 6bc2678 | 2017-06-27 22:59:22 | [diff] [blame] | 21 | |
Mike Frysinger | 3aac9b5 | 2018-11-15 21:43:32 | [diff] [blame] | 22 | See the [Contributing] guide for more details. |
| 23 | |
Satoru Takabayashi | 3852082 | 2017-06-28 05:01:07 | [diff] [blame] | 24 | ## Making changes without repo |
| 25 | |
| 26 | You can also make changes to this repository without using the [repo] tool. This |
| 27 | comes in handy when you don't have a Chromium OS checkout: |
| 28 | |
| 29 | ``` |
| 30 | git clone https://chromium.googlesource.com/chromiumos/docs |
Evan Benn | 39db7b2 | 2019-10-28 06:05:41 | [diff] [blame] | 31 | cd docs |
Satoru Takabayashi | 3852082 | 2017-06-28 05:01:07 | [diff] [blame] | 32 | curl -Lo .git/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg |
| 33 | chmod +x .git/hooks/commit-msg |
Satoru Takabayashi | 3852082 | 2017-06-28 05:01:07 | [diff] [blame] | 34 | git checkout -b changes |
| 35 | (make some changes) |
| 36 | git commit -a |
| 37 | git push origin HEAD:refs/for/master |
| 38 | ``` |
| 39 | |
| 40 | The above steps will upload a patch to [chromium-review.googlesource.com] where |
| 41 | you can get your patch reviewed, and submit. |
| 42 | |
Daniel Erat | c10be9e | 2017-03-07 01:51:49 | [diff] [blame] | 43 | ## Previewing changes |
| 44 | |
Mike Frysinger | e5a6689 | 2019-02-21 23:10:11 | [diff] [blame] | 45 | You can preview your local changes using `scripts/preview_docs` which utilizes |
| 46 | [Gerrit sandbox branches]: |
Lann Martin | ba704b8 | 2018-07-19 16:29:03 | [diff] [blame] | 47 | |
| 48 | ```bash |
| 49 | scripts/preview_docs README.md |
| 50 | ``` |
| 51 | |
| 52 | You can also use [md_browser], which is entirely local and does not require |
| 53 | refs/sandbox/ push permission, but has somewhat inaccurate rendering: |
Daniel Erat | c10be9e | 2017-03-07 01:51:49 | [diff] [blame] | 54 | |
| 55 | ```bash |
| 56 | # at top of Chromium OS checkout |
Mike Frysinger | d1cbd28 | 2019-03-07 06:27:13 | [diff] [blame] | 57 | ./src/chromium/src/tools/md_browser/md_browser.py -d docs |
Daniel Erat | c10be9e | 2017-03-07 01:51:49 | [diff] [blame] | 58 | ``` |
| 59 | |
| 60 | Then browse to e.g. |
| 61 | [http://localhost:8080/README.md](http://localhost:8080/README.md). |
| 62 | |
Daniel Erat | 6bc2678 | 2017-06-27 22:59:22 | [diff] [blame] | 63 | To review someone else's changes, apply them locally first, or just click the |
| 64 | `gitiles` link near the top of a Gerrit file diff page. |
Daniel Erat | c10be9e | 2017-03-07 01:51:49 | [diff] [blame] | 65 | |
Daniel Erat | dd609d3 | 2017-04-06 15:23:03 | [diff] [blame] | 66 | [Chromium OS]: https://www.chromium.org/chromium-os |
Mike Frysinger | 3aac9b5 | 2018-11-15 21:43:32 | [diff] [blame] | 67 | [Contributing]: contributing.md |
Mike Frysinger | 9fc0fc0 | 2020-09-05 05:18:57 | [diff] [blame^] | 68 | [rendered by Gitiles]: https://chromium.googlesource.com/chromiumos/docs/+/HEAD/ |
Mike Frysinger | e5a6689 | 2019-02-21 23:10:11 | [diff] [blame] | 69 | [Gerrit sandbox branches]: contributing.md#sandbox |
Mike Frysinger | 9fc0fc0 | 2020-09-05 05:18:57 | [diff] [blame^] | 70 | [Gitiles-flavored Markdown]: https://gerrit.googlesource.com/gitiles/+/HEAD/Documentation/markdown.md |
| 71 | [Chromium documentation guidelines]: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/documentation_guidelines.md |
| 72 | [Chromium documentation best practices]: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/documentation_best_practices.md |
Daniel Erat | c10be9e | 2017-03-07 01:51:49 | [diff] [blame] | 73 | [style guide]: https://github.com/google/styleguide/tree/gh-pages/docguide |
Daniel Erat | 6bc2678 | 2017-06-27 22:59:22 | [diff] [blame] | 74 | [repo]: https://source.android.com/source/using-repo |
Satoru Takabayashi | 3852082 | 2017-06-28 05:01:07 | [diff] [blame] | 75 | [chromium-review.googlesource.com]: https://chromium-review.googlesource.com/ |
Mike Frysinger | 9fc0fc0 | 2020-09-05 05:18:57 | [diff] [blame^] | 76 | [md_browser]: https://chromium.googlesource.com/chromium/src/tools/md_browser/ |