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

Issue 1024783002: Add a --markdown flag to GN to be able to output help in markdown. (Closed)

Created:
5 years, 9 months ago by Dirk Pranke
Modified:
5 years, 8 months ago
Reviewers:
brettw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@gn_all_help
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a --markdown flag to GN to be able to output help in markdown. With this change, we can now generate a markdown page containing all of the built-in help from GN, so that it will be visible on the web. The changes to GN to support markdown are, so far, minimal, but the resulting format is also pretty lame: we just wrap the body of the each help command in a code block (markdown's equivalent of <pre>). R=brettw@chromium.org BUG=468851 Committed: https://crrev.com/e7700dd26912bcab168b6f4795a05fd9b5b1cb22 Cr-Commit-Position: refs/heads/master@{#325730}

Patch Set 1 : initial patch for review #

Patch Set 2 : fix bold/italic formatting #

Total comments: 6

Patch Set 3 : update w/ review feedback, merge to head, fix highlighting of comments #

Total comments: 2

Patch Set 4 : Update w/ more review feedback #

Patch Set 5 : fix typo in OutputMarkdownDec for win #

Patch Set 6 : fix dropped variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4407 lines, -7 lines) Patch
M tools/gn/README.md View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/command_help.cc View 1 2 1 chunk +18 lines, -1 line 0 comments Download
A tools/gn/docs/reference.md View 1 2 1 chunk +4301 lines, -0 lines 0 comments Download
M tools/gn/standard_out.cc View 1 2 3 4 5 6 chunks +76 lines, -6 lines 0 comments Download
M tools/gn/switches.h View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/switches.cc View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
Dirk Pranke
Please take a look. This patch depends on https://codereview.chromium.org/1021923002/. I think we could get substantially ...
5 years, 8 months ago (2015-04-15 03:25:35 UTC) #3
brettw
https://codereview.chromium.org/1024783002/diff/40001/tools/gn/docs/reference.md File tools/gn/docs/reference.md (right): https://codereview.chromium.org/1024783002/diff/40001/tools/gn/docs/reference.md#newcode861 tools/gn/docs/reference.md:861: ** # both a .cc and a .h file ...
5 years, 8 months ago (2015-04-17 00:01:53 UTC) #4
Dirk Pranke
https://codereview.chromium.org/1024783002/diff/40001/tools/gn/docs/reference.md File tools/gn/docs/reference.md (right): https://codereview.chromium.org/1024783002/diff/40001/tools/gn/docs/reference.md#newcode861 tools/gn/docs/reference.md:861: ** # both a .cc and a .h file ...
5 years, 8 months ago (2015-04-17 00:08:16 UTC) #5
Dirk Pranke
Updated, please take another look?
5 years, 8 months ago (2015-04-17 01:36:50 UTC) #6
brettw
LGTM https://codereview.chromium.org/1024783002/diff/60001/tools/gn/standard_out.cc File tools/gn/standard_out.cc (right): https://codereview.chromium.org/1024783002/diff/60001/tools/gn/standard_out.cc#newcode41 tools/gn/standard_out.cc:41: // output help in Markdown's syntax, not color-highlighted. ...
5 years, 8 months ago (2015-04-17 02:38:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024783002/80001
5 years, 8 months ago (2015-04-17 02:52:03 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/47904)
5 years, 8 months ago (2015-04-17 03:19:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024783002/80001
5 years, 8 months ago (2015-04-17 16:47:10 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/48095)
5 years, 8 months ago (2015-04-17 17:11:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024783002/100001
5 years, 8 months ago (2015-04-17 20:36:47 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/48208)
5 years, 8 months ago (2015-04-17 21:15:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024783002/120001
5 years, 8 months ago (2015-04-17 21:18:52 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 8 months ago (2015-04-17 22:55:54 UTC) #25
commit-bot: I haz the power
5 years, 8 months ago (2015-04-17 22:57:33 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e7700dd26912bcab168b6f4795a05fd9b5b1cb22
Cr-Commit-Position: refs/heads/master@{#325730}

Powered by Google App Engine
This is Rietveld 408576698