From 5e3c8e93ff9705afce27a06a1083c565466b219b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 13 Sep 2024 17:41:49 +0200 Subject: [PATCH] sphinx/ --- rwx/prj/sphinx.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rwx/prj/sphinx.py b/rwx/prj/sphinx.py index 13252f8..b85cfa5 100644 --- a/rwx/prj/sphinx.py +++ b/rwx/prj/sphinx.py @@ -1,7 +1,5 @@ """Project consisting only of a Sphinx documentation.""" -from os import path - from sphinx.cmd.build import build_main from rwx.fs import wipe @@ -17,7 +15,7 @@ class SphinxProject(Project): def build(self) -> None: """Build the project.""" - output_root: str = path.join(self.root, "out") + output_root: str = self.root / "out" wipe(output_root) arguments: list[str] = [ "-E", @@ -34,7 +32,7 @@ class SphinxProject(Project): "-c", self.root, # "-C", - path.join(self.root, self.name), - path.join(output_root, "web"), + self.root / self.name, + output_root / "web", ] build_main(arguments)