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

Unified Diff: tools/gn/command_help.cc

Issue 1097423002: Stop generating the [TOC] in the GN reference docs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | tools/gn/docs/reference.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_help.cc
diff --git a/tools/gn/command_help.cc b/tools/gn/command_help.cc
index fda8269664b337a62d9cbcb4cec369267b3f430d..7679b1773be2bcfcbf69fd5aa38ca31f98242cd4 100644
--- a/tools/gn/command_help.cc
+++ b/tools/gn/command_help.cc
@@ -92,7 +92,11 @@ void PrintAllHelp() {
const base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess();
if (cmdline->HasSwitch(switches::kMarkdown)) {
OutputString("# GN Reference\n\n");
- OutputString("[TOC]\n\n");
+
+ // TODO: https://code.google.com/p/gitiles/issues/detail?id=75
+ // Gitiles crashes when rendering the table of contents, so we must omit
+ // it until the bug is fixed.
+ // OutputString("[TOC]\n\n");
OutputString("*This page is automatically generated from* "
"`gn help --markdown all`.\n\n");
} else {
« no previous file with comments | « no previous file | tools/gn/docs/reference.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698