Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: tools/md_browser/md_browser.py

Issue 1615733003: md_browser.py prints example URL & implicitly displays README.md files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/md_browser/md_browser.py
diff --git a/tools/md_browser/md_browser.py b/tools/md_browser/md_browser.py
index 6473eca9ad08f283dddc0e782d743a1dbe8a268c..5ee2fa2c16c58184f18fa1ac209ced385ebcbbf5 100644
--- a/tools/md_browser/md_browser.py
+++ b/tools/md_browser/md_browser.py
@@ -30,6 +30,7 @@ def main(argv):
try:
s = Server(args.port, SRC_DIR)
print("Listening on http://localhost:%s/" % args.port)
+ print(" Try loading http://localhost:%s/docs/README.md" % args.port)
s.serve_forever()
s.shutdown()
return 0
@@ -96,6 +97,8 @@ class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
self._DoNotFound()
elif path.lower().endswith('.md'):
self._DoMD(path)
+ elif os.path.exists(full_path + '/README.md'):
+ self._DoMD(path + '/README.md')
else:
self._DoUnknown()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698