sphinx/
This commit is contained in:
parent
cfa9ca9e3c
commit
5e3c8e93ff
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
||||||
"""Project consisting only of a Sphinx documentation."""
|
"""Project consisting only of a Sphinx documentation."""
|
||||||
|
|
||||||
from os import path
|
|
||||||
|
|
||||||
from sphinx.cmd.build import build_main
|
from sphinx.cmd.build import build_main
|
||||||
|
|
||||||
from rwx.fs import wipe
|
from rwx.fs import wipe
|
||||||
|
@ -17,7 +15,7 @@ class SphinxProject(Project):
|
||||||
|
|
||||||
def build(self) -> None:
|
def build(self) -> None:
|
||||||
"""Build the project."""
|
"""Build the project."""
|
||||||
output_root: str = path.join(self.root, "out")
|
output_root: str = self.root / "out"
|
||||||
wipe(output_root)
|
wipe(output_root)
|
||||||
arguments: list[str] = [
|
arguments: list[str] = [
|
||||||
"-E",
|
"-E",
|
||||||
|
@ -34,7 +32,7 @@ class SphinxProject(Project):
|
||||||
"-c",
|
"-c",
|
||||||
self.root,
|
self.root,
|
||||||
# "-C",
|
# "-C",
|
||||||
path.join(self.root, self.name),
|
self.root / self.name,
|
||||||
path.join(output_root, "web"),
|
output_root / "web",
|
||||||
]
|
]
|
||||||
build_main(arguments)
|
build_main(arguments)
|
||||||
|
|
Loading…
Reference in a new issue