This commit is contained in:
Marc Beninca 2024-09-14 18:15:42 +02:00
parent 148f757d5d
commit 4d8c1d7aab
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 2 additions and 16 deletions

View file

@ -1,17 +1,11 @@
"""Debian operating system."""
from pathlib import Path
from . import OS
class Debian(OS):
"""Debian operating system."""
def __init__(self, path: Path) -> None:
"""Initialize."""
super().__init__(path)
def get_name(self) -> str:
"""Return name."""
return "Debian"

View file

@ -7,10 +7,6 @@ from rwx.ps import Command
class APT(PM):
"""Advanced Package Tool."""
def __init__(self) -> None:
"""Initialize."""
super().__init__()
def get_install_command(self) -> Command:
"""Return install command."""
return Command()

View file

@ -14,10 +14,6 @@ from rwx.prj import Project
class SphinxProject(Project):
"""Child class for a project based on Sphinx."""
def __init__(self, file_path: str) -> None:
"""Call the parent constructor."""
super().__init__(file_path)
def build(self) -> None:
"""Build the project."""
output_root: Path = self.root / "out"
@ -31,9 +27,9 @@ class SphinxProject(Project):
"-D",
f"project={self.name}",
"-D",
"master_doc={}".format("index"),
"master_doc=index",
"-D",
"html_theme={}".format("sphinx_rtd_theme"),
"html_theme=sphinx_rtd_theme",
"-c",
str(self.root),
# "-C",