Skip to content

refactor: add central config class - #817

Merged
AlexanderLanin merged 1 commit into
mainfrom
env
Sep 10, 2026
Merged

refactor: add central config class#817
AlexanderLanin merged 1 commit into
mainfrom
env

Conversation

@AlexanderLanin

@AlexanderLanin AlexanderLanin commented Sep 10, 2026

Copy link
Copy Markdown
Member

almost no-op change, introducing a new class

differences:

  • changes execution-context detection based on bazel variables instead of our custom action (less maintanance)
  • adds workspace validation (supplied path must be valid)

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-817: https://eclipse-score.github.io/docs-as-code/pr-817/

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 1 question.

Comment thread src/docs_cli/cli.py
ws_root = config.ws_root or Path()
# Docs source and output are resolved relative to the package where docs()
# was called; an empty PACKAGE_DIR denotes the workspace root.
package_dir = ws_root / (env.optional_path("PACKAGE_DIR") or Path())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So PACKAGE_DIR is not in the DocsCLIConfig ?
On purpose?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with output Dir in line 292

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v0 of config 😝

@AlexanderLanin
AlexanderLanin merged commit f56b6e3 into main Sep 10, 2026
23 checks passed
@AlexanderLanin
AlexanderLanin deleted the env branch September 10, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants