Skip to content

Commit

Permalink
Merge pull request #911 from sphinx-contrib/report-apply-default-cfg
Browse files Browse the repository at this point in the history
report: apply default configuration before publish attempts
  • Loading branch information
jdknight authored Mar 3, 2024
2 parents 8c073a4 + 8b5bbe1 commit 189b093
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sphinxcontrib/confluencebuilder/cmd/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from sphinx.util.docutils import docutils_namespace
from sphinxcontrib.confluencebuilder import __version__ as scb_version
from sphinxcontrib.confluencebuilder.config import process_ask_configs
from sphinxcontrib.confluencebuilder.config.defaults import apply_defaults
from sphinxcontrib.confluencebuilder.config.env import apply_env_overrides
from sphinxcontrib.confluencebuilder.config.exceptions import ConfluenceConfigError
from sphinxcontrib.confluencebuilder.logger import ConfluenceLogger as logger
Expand Down Expand Up @@ -119,6 +120,10 @@ def report_main(args_parser):

config[key] = value

# ensure internal defaults are applied after we already extracted
# raw values and before attempting to use the publisher
apply_defaults(app.builder)

# initialize the publisher (if needed later)
publisher.init(app.config)

Expand Down

0 comments on commit 189b093

Please sign in to comment.