Add documentation for how to patch an ebuild

TEST=Render markdown in browser
BUG=None

Change-Id: I4a4dcc089f1fef961f2d4df46819d5df6bfb07c7
Signed-off-by: Greg Edelston <gredelston@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1614274
Tested-by: Chris McDonald <cjmcdonald@chromium.org>
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
1 file changed
tree: 76b6a7479c49de60479c77db495b5ac9f521237e
  1. images/
  2. portage/
  3. scripts/
  4. security/
  5. archive_mirrors.md
  6. ca_certs.md
  7. chrome_commit_pipeline.md
  8. COMMIT-QUEUE.ini
  9. contact.md
  10. containers_and_vms.md
  11. contributing.md
  12. cros_commit_pipeline.md
  13. cros_flash.md
  14. cros_vm.md
  15. dbus_best_practices.md
  16. dbus_in_chrome.md
  17. debug_buttons.md
  18. developer_guide.md
  19. development_basics.md
  20. eol_aue_process.md
  21. fuzzing.md
  22. glossary.md
  23. gsutil.md
  24. kernel_faq.md
  25. lsb-release.md
  26. navbar.md
  27. os_config.md
  28. OWNERS
  29. platform2_gn.md
  30. PRESUBMIT.cfg
  31. README.md
  32. reporting_bugs.md
  33. rust_on_cros.md
  34. sandboxing.md
  35. security_review_howto.md
  36. security_severity_guidelines.md
  37. security_sheriffing.md
  38. selinux.md
  39. simple_chrome_workflow.md
  40. source_layout.md
  41. unit_tests.md
README.md

Chromium OS docs

This directory contains public Chromium OS project documentation that is automatically rendered by Gitiles. The docs are written in Gitiles-flavored Markdown.

General guidelines

See the Chromium documentation guidelines and Chromium documentation best practices.

Style guide

Markdown documents must follow the style guide.

Making changes

This repository is managed by the repo tool, so you can make changes to it using the same techniques that you'd use for any other repositories in the project.

See the Contributing guide for more details.

Making changes without repo

You can also make changes to this repository without using the repo tool. This comes in handy when you don't have a Chromium OS checkout:

git clone https://chromium.googlesource.com/chromiumos/docs
curl -Lo .git/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg
chmod +x .git/hooks/commit-msg
cd docs
git checkout -b changes
(make some changes)
git commit -a
git push origin HEAD:refs/for/master

The above steps will upload a patch to chromium-review.googlesource.com where you can get your patch reviewed, and submit.

Previewing changes

You can preview your local changes using scripts/preview_docs which utilizes Gerrit sandbox branches:

scripts/preview_docs README.md

You can also use md_browser, which is entirely local and does not require refs/sandbox/ push permission, but has somewhat inaccurate rendering:

# at top of Chromium OS checkout
./src/chromium/src/tools/md_browser/md_browser.py -d docs

Then browse to e.g. http://localhost:8080/README.md.

To review someone else's changes, apply them locally first, or just click the gitiles link near the top of a Gerrit file diff page.