Skip to content

Commit

Permalink
docs/refman: add env var option to disable toc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Jan 4, 2021
1 parent cd30e62 commit 17f9089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/refman/refman.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

Generated from LuaRadio `${utils.attr.git_version}`.

% if not utils.attr.disable_toc:
## Table of contents

* [Example](#example)
Expand Down Expand Up @@ -41,6 +42,7 @@ Generated from LuaRadio `${utils.attr.git_version}`.
* [Debug](#debug)
* [Platform](#platform)

% endif
## Example

<p align="center">
Expand Down
2 changes: 2 additions & 0 deletions docs/refman/refman.template.utils.mako
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import subprocess
git_version = os.environ.get("GIT_VERSION") or subprocess.check_output("git describe --abbrev --always --tags".split(" ")).decode().strip()
disable_toc = os.environ.get("DISABLE_TOC")
block_categories = [
"Sources",
"Sinks",
Expand Down

0 comments on commit 17f9089

Please sign in to comment.