Skip to content
Snippets Groups Projects
Verified Commit 6b2c6ab0 authored by Romain Deville's avatar Romain Deville
Browse files

:rotating_light: Fix not used arguments in plugins.py

Due to error when using `tox` about unused args, remove those args from
`set_nav` method in `plugins.py` file.
parent f154ee23
No related branches found
No related tags found
No related merge requests found
...@@ -461,7 +461,7 @@ def set_repo_url(env: dict, repo_slug: str) -> None: ...@@ -461,7 +461,7 @@ def set_repo_url(env: dict, repo_slug: str) -> None:
) )
def set_nav(env: dict, repo_slug: str) -> None: def set_nav(env: dict) -> None:
"""Update content of the `nav` key in `env.conf`. """Update content of the `nav` key in `env.conf`.
Update the value of `nav` key for mkdocs documentation based on (in Update the value of `nav` key for mkdocs documentation based on (in
...@@ -473,7 +473,6 @@ def set_nav(env: dict, repo_slug: str) -> None: ...@@ -473,7 +473,6 @@ def set_nav(env: dict, repo_slug: str) -> None:
Arguments: Arguments:
env: Mkdocs macro plugin environment dictionary. env: Mkdocs macro plugin environment dictionary.
repo_slug: Repo slug or name of the repo folder.
""" """
if "nav" in env.variables and env.variables["nav"]: if "nav" in env.variables and env.variables["nav"]:
env.conf["nav"] = env.variables["nav"] env.conf["nav"] = env.variables["nav"]
...@@ -544,7 +543,7 @@ def set_config(env: dict) -> None: ...@@ -544,7 +543,7 @@ def set_config(env: dict) -> None:
set_copyright(env, git_repo) set_copyright(env, git_repo)
set_repo_name(env, repo_slug) set_repo_name(env, repo_slug)
set_repo_url(env, repo_slug) set_repo_url(env, repo_slug)
set_nav(env, repo_slug) set_nav(env)
update_theme(env, repo_slug) update_theme(env, repo_slug)
if "subrepo" in env.variables: if "subrepo" in env.variables:
......
...@@ -461,7 +461,7 @@ def set_repo_url(env: dict, repo_slug: str) -> None: ...@@ -461,7 +461,7 @@ def set_repo_url(env: dict, repo_slug: str) -> None:
) )
def set_nav(env: dict, repo_slug: str) -> None: def set_nav(env: dict) -> None:
"""Update content of the `nav` key in `env.conf`. """Update content of the `nav` key in `env.conf`.
Update the value of `nav` key for mkdocs documentation based on (in Update the value of `nav` key for mkdocs documentation based on (in
...@@ -473,7 +473,6 @@ def set_nav(env: dict, repo_slug: str) -> None: ...@@ -473,7 +473,6 @@ def set_nav(env: dict, repo_slug: str) -> None:
Arguments: Arguments:
env: Mkdocs macro plugin environment dictionary. env: Mkdocs macro plugin environment dictionary.
repo_slug: Repo slug or name of the repo folder.
""" """
if "nav" in env.variables and env.variables["nav"]: if "nav" in env.variables and env.variables["nav"]:
env.conf["nav"] = env.variables["nav"] env.conf["nav"] = env.variables["nav"]
...@@ -544,7 +543,7 @@ def set_config(env: dict) -> None: ...@@ -544,7 +543,7 @@ def set_config(env: dict) -> None:
set_copyright(env, git_repo) set_copyright(env, git_repo)
set_repo_name(env, repo_slug) set_repo_name(env, repo_slug)
set_repo_url(env, repo_slug) set_repo_url(env, repo_slug)
set_nav(env, repo_slug) set_nav(env)
update_theme(env, repo_slug) update_theme(env, repo_slug)
if "subrepo" in env.variables: if "subrepo" in env.variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment