Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build status #33

Merged
merged 12 commits into from
Jan 12, 2025
Merged

Build status #33

merged 12 commits into from
Jan 12, 2025

Conversation

m-aciek
Copy link
Collaborator

@m-aciek m-aciek commented Jan 12, 2025

Closes #31.

@m-aciek m-aciek marked this pull request as ready for review January 12, 2025 18:00
@m-aciek m-aciek requested a review from hugovk January 12, 2025 18:00
build_status.py Outdated
Comment on lines 22 to 25
defaults = config['defaults']
for code, language in languages.items():
language_code = code.lower().replace('_', '-')
in_switcher = language.get('in_prod', defaults['in_prod'])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
defaults = config['defaults']
for code, language in languages.items():
language_code = code.lower().replace('_', '-')
in_switcher = language.get('in_prod', defaults['in_prod'])
for code, language in languages.items():
language_code = code.lower().replace('_', '-')
in_switcher = language.get('in_prod', True)

Copy link
Collaborator Author

@m-aciek m-aciek Jan 12, 2025

Choose a reason for hiding this comment

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

Thank you for reviewing! I agree that this suggestion improves readability. I'm concerned it doesn't honour https://github.com/python/docsbuild-scripts/blob/e4a8aff9772738a63d0945042777d18c3d926930/config.toml#L3; I was thinking if to propose a simplification upstream, but it makes the toml config file better self-describing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

m-aciek and others added 4 commits January 12, 2025 19:48
@m-aciek m-aciek merged commit a2b2b63 into main Jan 12, 2025
4 of 5 checks passed
@m-aciek m-aciek deleted the build-status branch January 12, 2025 20:52
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.

Build status
3 participants