feat: add source flag to use different folder as source for building sites (#5334)
continuous-integration/drone/push Build is passing

I do not expect the flag to be used much, but it enforces better code design, and prevents implicitly relying on cwd.

Just a general code style improvement really.

Co-authored-by: Darragh Elliott <me@delliott.net>
Co-authored-by: tobiasd <tobiasd@fsfe.org>
Reviewed-on: #5334
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5334.
This commit is contained in:
2025-10-13 12:56:30 +00:00
committed by tobiasd
parent e5882e406d
commit cba4a25036
20 changed files with 153 additions and 89 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ from lxml import etree
logger = logging.getLogger(__name__)
def run(languages: list[str], processes: int, working_dir: Path) -> None: # noqa: ARG001 # We allow unused args for subdirs
def run(source: Path, languages: list[str], processes: int, working_dir: Path) -> None: # noqa: ARG001 # We allow unused args for subdirs
"""
Internal subdir preparation
"""