Skip to content

Commit

Permalink
Fix docs build on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kircheneer committed Apr 17, 2021
1 parent ab023dd commit f357494
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@

def build_checker_docs(app) -> None:
"""Automatically build documentation from the available checker functions."""
nos_dir = Path("./source/nos")
env = Environment(loader=FileSystemLoader("source"))
nos_dir = Path("./nos")
env = Environment(loader=FileSystemLoader("."))
for nos, checks in Checker.checks.items():
nos_template_file = env.get_template("checks.j2")
rendered_template = nos_template_file.render(nos=str(nos), checks=checks)
Expand All @@ -79,5 +79,4 @@ def build_checker_docs(app) -> None:
f.write(rendered_index)


def setup(app):
app.connect("builder-inited", build_checker_docs)
build_checker_docs(None)
1 change: 1 addition & 0 deletions docs/source/nos/cisco_ios.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Check for any ACLs that are configured but never used.
Check for any ACLs that are used but never configured.

Potential usages are:

* Packet filtering
* Rate limiting
* Route maps
Expand Down
1 change: 1 addition & 0 deletions docs/source/nos/cisco_nxos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Check for any ACLs that are configured but never used.
Check for any ACLs that are used but never configured.

Potential usages are:

* Packet filtering
* Rate limiting
* Route maps
Expand Down

0 comments on commit f357494

Please sign in to comment.