Skip to content

Sphinx: don't override html_context by default #10394

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

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Jun 6, 2023

We have this feature enabled on .org and .com,
we haven't heard any complaints.

Closes #10293


📚 Documentation previews 📚

We have this feature enabled on .org and .com,
we haven't heard any complaints.

Closes #10293
@stsewd stsewd requested review from a team as code owners June 6, 2023 16:35
@stsewd stsewd requested a review from benjaoming June 6, 2023 16:35
Copy link
Contributor

@benjaoming benjaoming left a comment

Choose a reason for hiding this comment

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

LGTM - but just curious, what happens to a Feature when its entry in the FEATURES list is removed? Should there be a data migration for all existing Feature records in the database to remove for instance everything that used to be related to DONT_OVERWRITE_SPHINX_CONTEXT?

@stsewd
Copy link
Member Author

stsewd commented Jun 6, 2023

@benjaoming we can just manually remove them from the DB after deploy (they are just 2, one for .org and one for .com),

@benjaoming
Copy link
Contributor

@stsewd sounds good 👍 a post-deploy task I guess?

@stsewd stsewd merged commit 542115d into main Jun 6, 2023
@stsewd stsewd deleted the dont-override-sphinx-html-context branch June 6, 2023 17:39
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

Meh, I sent this comment yesterday but it got stuck in Pending because I didn't hit the last button 🙃

@@ -160,13 +160,9 @@ if version_info >= (1, 8):
{% block extra_context %}{% endblock %}

if 'html_context' in globals():
{% if dont_overwrite_sphinx_context %}
Copy link
Member

Choose a reason for hiding this comment

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

It would be good to write an explicit comment here noting that we are not overriding these on purpose

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 (Sphinx): don't override html_context by default
3 participants