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

Issue 1356203004: Check in a simple pure-python based Markdown previewer. (Closed)

Created:
5 years, 3 months ago by Dirk Pranke
Modified:
5 years, 2 months ago
Reviewers:
nodir, jam, scottmg
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, nyquist
Base URL:
https://chromium.googlesource.com/chromium/src.git@add
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check in a simple pure-python based Markdown previewer. We are now trying to write more and more of our documentation as Markdown files that live in the repo, but there's no easy way to preview changes in a local checkout. This CL adds a simple previewing tool written in pure Python that depends on the 'Markdown' python package (also pure Python) to do all the heavy lifting. It aims to replicate the look and feel of googlesource.com as closely as possible. R=nodir@chromium.org, jam@chromium.org BUG= Committed: https://crrev.com/abe11cb68dd11d5ee153218ba99a3cdba3a3ced6 Cr-Commit-Position: refs/heads/master@{#352450}

Patch Set 1 : patch for review #

Total comments: 23

Patch Set 2 : update w/ review feedback #

Patch Set 3 : fix license file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3235 lines, -965 lines) Patch
A + third_party/Python-Markdown/LICENSE.md View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/Python-Markdown/OWNERS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/Python-Markdown/README.chromium View 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/README.md View 1 chunk +35 lines, -0 lines 0 comments Download
A + third_party/Python-Markdown/markdown/__init__.py View 19 chunks +154 lines, -100 lines 0 comments Download
A third_party/Python-Markdown/markdown/__main__.py View 1 chunk +136 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/__version__.py View 1 chunk +29 lines, -0 lines 0 comments Download
A + third_party/Python-Markdown/markdown/blockparser.py View 5 chunks +26 lines, -57 lines 0 comments Download
A + third_party/Python-Markdown/markdown/blockprocessors.py View 23 chunks +67 lines, -94 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/__init__.py View 1 chunk +100 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/abbr.py View 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/admonition.py View 1 chunk +96 lines, -0 lines 0 comments Download
A + third_party/Python-Markdown/markdown/extensions/attr_list.py View 6 chunks +59 lines, -54 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/codehilite.py View 1 chunk +265 lines, -0 lines 0 comments Download
A + third_party/Python-Markdown/markdown/extensions/def_list.py View 7 chunks +15 lines, -50 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/extra.py View 1 chunk +132 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/fenced_code.py View 1 chunk +112 lines, -0 lines 0 comments Download
A + third_party/Python-Markdown/markdown/extensions/footnotes.py View 13 chunks +80 lines, -106 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/headerid.py View 1 chunk +97 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/meta.py View 1 chunk +78 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/nl2br.py View 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/sane_lists.py View 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/smart_strong.py View 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/smarty.py View 1 chunk +263 lines, -0 lines 0 comments Download
A + third_party/Python-Markdown/markdown/extensions/tables.py View 5 chunks +16 lines, -46 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/toc.py View 1 chunk +309 lines, -0 lines 0 comments Download
A third_party/Python-Markdown/markdown/extensions/wikilinks.py View 1 chunk +89 lines, -0 lines 0 comments Download
A + third_party/Python-Markdown/markdown/inlinepatterns.py View 23 chunks +107 lines, -93 lines 0 comments Download
A + third_party/Python-Markdown/markdown/odict.py View 4 chunks +8 lines, -43 lines 0 comments Download
A + third_party/Python-Markdown/markdown/postprocessors.py View 5 chunks +13 lines, -41 lines 0 comments Download
A + third_party/Python-Markdown/markdown/preprocessors.py View 15 chunks +114 lines, -99 lines 0 comments Download
A + third_party/Python-Markdown/markdown/serializers.py View 12 chunks +22 lines, -49 lines 0 comments Download
A + third_party/Python-Markdown/markdown/treeprocessors.py View 15 chunks +56 lines, -77 lines 0 comments Download
A + third_party/Python-Markdown/markdown/util.py View 6 chunks +66 lines, -57 lines 0 comments Download
A + tools/md_browser/OWNERS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A tools/md_browser/README.md View 1 1 chunk +27 lines, -0 lines 0 comments Download
A tools/md_browser/doc.css View 1 2 1 chunk +298 lines, -0 lines 0 comments Download
A tools/md_browser/footer.html View 1 chunk +8 lines, -0 lines 0 comments Download
A tools/md_browser/header.html View 1 chunk +7 lines, -0 lines 0 comments Download
A tools/md_browser/md_browser.py View 1 1 chunk +102 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
Dirk Pranke
This is a really bare bones thing, but it works and I've gotten a few ...
5 years, 3 months ago (2015-09-22 02:46:37 UTC) #2
scottmg
Thanks for adding this. https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/md_browser.py File tools/md_browser/md_browser.py (right): https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/md_browser.py#newcode23 tools/md_browser/md_browser.py:23: parser = argparse.ArgumentParser(prog='md_browser') +4 like ...
5 years, 3 months ago (2015-09-22 04:58:02 UTC) #7
nodir
I could not apply this patch, thus couldn't see how it looks like, how close ...
5 years, 3 months ago (2015-09-22 16:38:18 UTC) #8
scottmg
https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/md_browser.py File tools/md_browser/md_browser.py (right): https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/md_browser.py#newcode51 tools/md_browser/md_browser.py:51: self.path[1:])) On 2015/09/22 16:38:18, nodir wrote: > On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 17:32:46 UTC) #9
Dirk Pranke
Updated. Please take another look? https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/README.md File tools/md_browser/README.md (right): https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/README.md#newcode1 tools/md_browser/README.md:1: # md\_browser On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 21:16:27 UTC) #10
scottmg
https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/md_browser.py File tools/md_browser/md_browser.py (right): https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/md_browser.py#newcode51 tools/md_browser/md_browser.py:51: self.path[1:])) On 2015/09/22 21:16:27, Dirk Pranke wrote: > On ...
5 years, 3 months ago (2015-09-22 21:26:39 UTC) #11
nodir
lgtm https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/README.md File tools/md_browser/README.md (right): https://codereview.chromium.org/1356203004/diff/50001/tools/md_browser/README.md#newcode1 tools/md_browser/README.md:1: # md\_browser On 2015/09/22 21:16:26, Dirk Pranke wrote: ...
5 years, 3 months ago (2015-09-22 21:48:56 UTC) #12
jam
rubberstamp lgtm
5 years, 3 months ago (2015-09-23 18:18:51 UTC) #13
Dirk Pranke
opensource-licensing approval was granted (via email).
5 years, 2 months ago (2015-10-05 21:27:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356203004/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356203004/70001
5 years, 2 months ago (2015-10-05 21:29:47 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/106833)
5 years, 2 months ago (2015-10-05 21:42:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356203004/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356203004/90001
5 years, 2 months ago (2015-10-05 22:06:59 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:90001)
5 years, 2 months ago (2015-10-05 22:47:07 UTC) #22
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/abe11cb68dd11d5ee153218ba99a3cdba3a3ced6 Cr-Commit-Position: refs/heads/master@{#352450}
5 years, 2 months ago (2015-10-05 22:48:18 UTC) #23
Kunihiko Sakamoto
On 2015/10/05 22:48:18, commit-bot: I haz the power wrote: > Patchset 3 (id:??) landed as ...
5 years, 2 months ago (2015-10-06 01:00:45 UTC) #24
Dirk Pranke
On 2015/10/06 01:00:45, Kunihiko Sakamoto wrote: > On 2015/10/05 22:48:18, commit-bot: I haz the power ...
5 years, 2 months ago (2015-10-06 01:17:01 UTC) #25
Dirk Pranke
A revert of this CL (patchset #3 id:90001) has been created in https://codereview.chromium.org/1389543003/ by dpranke@chromium.org. ...
5 years, 2 months ago (2015-10-06 01:17:38 UTC) #26
scottmg
On 2015/10/06 01:17:01, Dirk Pranke wrote: > On 2015/10/06 01:00:45, Kunihiko Sakamoto wrote: > > ...
5 years, 2 months ago (2015-10-06 04:02:06 UTC) #27
Dirk Pranke
On 2015/10/06 04:02:06, scottmg wrote: > Maybe it's because checklicenses.py is a 'scripts', but those ...
5 years, 2 months ago (2015-10-06 23:41:20 UTC) #28
jam
On 2015/10/06 23:41:20, Dirk Pranke wrote: > On 2015/10/06 04:02:06, scottmg wrote: > > Maybe ...
5 years, 2 months ago (2015-10-13 20:37:20 UTC) #29
jam
On 2015/10/13 20:37:20, jam wrote: > On 2015/10/06 23:41:20, Dirk Pranke wrote: > > On ...
5 years, 2 months ago (2015-10-13 20:49:28 UTC) #30
Dirk Pranke
5 years, 2 months ago (2015-10-13 21:02:52 UTC) #31
Message was sent while issue was closed.
On 2015/10/13 20:49:28, jam wrote:
> ok here's the bug https://code.google.com/p/chromium/issues/detail?id=462308
> which is fixed. the fix only looks at a limited set of file extensions:
>
https://codereview.chromium.org/1346173004/diff/20001/scripts/slave/recipes/c...
> 
> we could perhaps add .py to it?

Yeah, that sounds like it would be reasonable.

Powered by Google App Engine
This is Rietveld 408576698