PRESUBMIT.cfg: simplify `cros` lookup

Since this will always be in $PATH, we don't need to hardcode the path to it.

Change-Id: If92e4b3f4c6b1eb02b8dec792a6172573132fbf7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/docs/+/2225744
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed
tree: bbc6ac2e20accd38d4f54634e0a9066da293ba87
  1. constants/
  2. design_docs/
  3. firmware/
  4. images/
  5. packages/
  6. portage/
  7. scripts/
  8. security/
  9. styleguide/
  10. testing/
  11. .gitignore
  12. adding_builder_variants.md
  13. archive_mirrors.md
  14. ca_certs.md
  15. chrome_commit_pipeline.md
  16. chromeos_gn.md
  17. contact.md
  18. containers_and_vms.md
  19. contributing.md
  20. cros_commit_pipeline.md
  21. cros_flash.md
  22. cros_tools.md
  23. cros_vm.md
  24. dbus_best_practices.md
  25. dbus_in_chrome.md
  26. debug_buttons.md
  27. developer_guide.md
  28. developer_mode.md
  29. development_basics.md
  30. eol_aue_process.md
  31. firmware_code_reviews.md
  32. firmware_test_manual.md
  33. git_and_gerrit_intro.md
  34. glossary.md
  35. gsutil.md
  36. kernel_faq.md
  37. kernel_tips_and_tricks.md
  38. lsb-release.md
  39. navbar.md
  40. os_config.md
  41. OWNERS
  42. pd_firmware_update.md
  43. platform2_primer.md
  44. PRESUBMIT.cfg
  45. README.md
  46. remote_trybots.md
  47. repo-tool.md
  48. reporting_bugs.md
  49. rust_on_cros.md
  50. sandboxing.md
  51. security_review_howto.md
  52. security_severity_guidelines.md
  53. simple_chrome_workflow.md
  54. source_layout.md
  55. test_install_configuration.md
  56. work_on_branch.md
  57. write_protection.md
  58. xbuddy.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
cd docs
curl -Lo .git/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg
chmod +x .git/hooks/commit-msg
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.