diff --git a/Makefile b/Makefile index ef20f907..dfb3a201 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ pytest: .PHONY: black black: poetry run black --check ${NORNIR_DIRS} - poetry run isort --profile black --check nornir tests + poetry run isort --profile black --check ${NORNIR_DIRS} .PHONY: sphinx sphinx: diff --git a/docs/conf.py b/docs/conf.py index 44136626..b788d0d6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,10 +21,10 @@ import sys from typing import Dict -from nornir import __version__ - from sphinx.application import Sphinx +from nornir import __version__ + sys.path.insert(0, os.path.abspath("../")) diff --git a/docs/highlighter.py b/docs/highlighter.py index 4f28db3c..5ece78a4 100644 --- a/docs/highlighter.py +++ b/docs/highlighter.py @@ -1,11 +1,9 @@ from IPython.core.magic import register_line_magic from IPython.display import HTML - from pygments import highlight from pygments.formatters import HtmlFormatter from pygments.lexers import get_lexer_for_filename - HTML_TEMPLATE = """