Skip to content

Make mkdocs serve/build --strict optional, move locales dir.#12

Merged
freakboy3742 merged 2 commits into
beeware:mainfrom
kattni:tooling/strict-move-locales
Aug 22, 2025
Merged

Make mkdocs serve/build --strict optional, move locales dir.#12
freakboy3742 merged 2 commits into
beeware:mainfrom
kattni:tooling/strict-move-locales

Conversation

@kattni

@kattni kattni commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator

This makes the --strict flag on serve and build configurable to provide the option to build with errors. To use:

tox -e docs-live -- --build-with-errors

Or:

tox -e docs-all -- --build-with-errors

It also moves the locales directory into the docs directory to avoid a full redo of the Weblate configuration on the Tutorial.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've added some content change to verify that the post-merge translation workflow works - I noticed that this PR includes PO updates, which (generally speaking) shouldn't be required; and then saw that the translation workflow hard-coded the docs/locales path and was failing. This change should make that workflow work again.

@freakboy3742
freakboy3742 merged commit e900a0b into beeware:main Aug 22, 2025
3 checks passed
@freakboy3742

Copy link
Copy Markdown
Member

And confirmed that (once I gave Brutus permissions), the translation update workflow worked, yielding this update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants