Skip to content

Disable initialize_documentation for subtemplates #218

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 4 commits into from
Apr 16, 2025

Conversation

davisagli
Copy link
Member

This is my proposal instead of #204. Set the enabled flag for the subtemplate based on the initialize_documentation variable, and set that variable to 0 when calling the frontend and backend addon templates as subtemplates.

/cc @ujsquared

@davisagli davisagli force-pushed the no-docs-for-subtemplate branch from ef04e51 to d49940f Compare April 16, 2025 07:49
Copy link
Contributor

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

Minor tweaks for consistency and clarity

Copy link
Contributor

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

I checked out this branch, tested locally, works great!

@ujsquared
Copy link
Contributor

ujsquared commented Apr 16, 2025

Completely overlooked this way of implementation. Works great + super clean! LGTM.

@stevepiercy
Copy link
Contributor

I don't know why CI doesn't report its status here. It's all green at https://github.com/plone/cookieplone-templates/actions/runs/14487515096. I'll hold off on merging, just in case I'm mistaken, and to let @davisagli or @ericof take a look at it.

@davisagli
Copy link
Member Author

@stevepiercy I also don't understand why CI was not triggered. Your new commit should have triggered a pull_request.synchronize event, which should have started the workflow. I'll make another commit just to bump it, but let's watch other PRs to see if it's a broader issue vs a GitHub glitch.

@davisagli davisagli merged commit ca41fd5 into main Apr 16, 2025
33 checks passed
@davisagli davisagli deleted the no-docs-for-subtemplate branch April 16, 2025 15:50
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.

3 participants