set tab length to 2

Upstream uses indents of 4 spaces by default [1], but gitiles uses
2 spaces [2].  Change md_browser to match.

[1]: https://github.com/waylan/Python-Markdown/issues/451
[2]: https://gerrit.googlesource.com/gitiles/+/master/Documentation/markdown.md#Lists

R=dpranke@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2772173002
Cr-Original-Commit-Position: refs/heads/master@{#461334}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a7f56885eb3fa3fa14248c6be1fd26ab94c5c404
1 file changed
tree: a26ad0e748d20c69ca2f3f8b141d25ce7983a0b8
  1. .gitignore
  2. __init__.py
  3. base.css
  4. doc.css
  5. footer.html
  6. gitiles_autolink.py
  7. gitiles_ext_blocks.py
  8. gitiles_smart_quotes.py
  9. header.html
  10. md_browser.py
  11. OWNERS
  12. prettify.css
  13. README.md
  14. update-css.sh
README.md

md_browser

This is a simple tool to render the markdown docs in a chromium checkout locally. It is written in Python and uses the Python ‘markdown’ package, which is checked into src/third_party.

md_browser attempts to emulate the flavor of Markdown implemented by Gitiles.

Gitiles is the source browser running on https://chromium.googlesource.com, and can be run locally, but to do so requires a Java install and a Buck install, which can be slightly annoying to set up on Mac or Windows.

This is a lighterweight solution, which also allows you to preview uncommitted changes (i.e., it just serves files out of the filesystem, and is not a full Git repo browser like Gitiles is).

To run md_browser:

  1. cd to the top of your chromium checkout

  2. run python tools/md_browser/md_browser.py

  3. There is no step three.

This will run a local web server on port 8080 that points to the top of the repo. You can specify a different port with the -p flag.