diff options
author | 2024-02-19 21:35:56 +0000 | |
---|---|---|
committer | 2024-03-04 12:35:02 +0000 | |
commit | ccd94c90d33b7aee85117078576684fab5055ce5 (patch) | |
tree | f54d2e3c71f12fe4613026d5a35ceae4dea4bd5a /docs | |
parent | ruff lint fix: Run remaining auto-fixable rules (diff) |
ruff lint fix: Manual non-breaking changes
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 4 | ||||
-rw-r--r-- | docs/utils.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 5205b013..94246fe4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,14 +18,14 @@ from sphinx.application import Sphinx logger = sphinx.util.logging.getLogger(__name__) # Handle the path not being set correctly in actions. -sys.path.insert(0, os.path.abspath("..")) +sys.path.insert(0, Path("..").resolve()) from docs import utils # noqa: E402 # -- Project information ----------------------------------------------------- project = "Pydis Core" -copyright = "2021, Python Discord" +copyright = "2021, Python Discord" # noqa: A001 author = "Python Discord" REPO_LINK = "https://github.com/python-discord/bot-core" diff --git a/docs/utils.py b/docs/utils.py index 796eca3d..de40cf6b 100644 --- a/docs/utils.py +++ b/docs/utils.py @@ -204,7 +204,7 @@ def build_api_doc() -> None: return result = subprocess.run(cmd, cwd=build_root, stdout=subprocess.PIPE, check=True, env=os.environ) # noqa: S603 - logger.debug("api-doc Output:\n" + result.stdout.decode(encoding="utf-8") + "\n") + logger.debug(f"api-doc Output:\n{result.stdout.decode(encoding='utf-8')}\n") cleanup() |