Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Add "[TOC]" to generated documentation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 277354482
  • Loading branch information
MLIR Team authored and tensorflower-gardener committed Oct 29, 2019
1 parent 7619c29 commit 44e7227
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/mlir-tblgen/OpDocGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ static void emitOpDocForDialect(const Dialect &dialect,
emitIfNotEmpty(dialect.getSummary(), os);
emitIfNotEmpty(dialect.getDescription(), os);

// TODO(b/143543720) Generate TOC where extension is not supported.
os << "[TOC]\n\n";

// TODO(antiagainst): Add link between use and def for types
if (!types.empty())
os << "## Type definition\n";
Expand Down

0 comments on commit 44e7227

Please sign in to comment.