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

views: optional index page registration #2952

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kpsherva
Copy link
Contributor

@kpsherva kpsherva commented Jan 8, 2025

@kpsherva kpsherva force-pushed the theme-view branch 2 times, most recently from ab347a7 to c54e335 Compare January 10, 2025 12:09
@@ -43,8 +43,10 @@ def create_blueprint(app):
template_folder="templates",
static_folder="static",
)

blueprint.add_url_rule(**create_url_rule(routes["index"], default_view_func=index))
if app.config["RDM_FRONTPAGE"]:
Copy link
Contributor

Choose a reason for hiding this comment

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

may i ask what the use case is to make the / route optional?
what will be rendered then as default if it is not configured?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

For what it's worth, I've left a comment on the CDS PR, suggesting a different approach for overriding views.

I can add this approach to docs, unless, we want to find a better approach so we're not limiting ourselves in the current 2-tuple format for the route values.

return window.MathJax?.typeset();
}
};
if (document.body.dataset.invenioConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should always be there. @anikachurilova worked on this.
What was the issue?

@ntarocco
Copy link
Contributor

I fail to understand what this PR is changing. Do you mind adding a very brief explanation?

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.

Homepage: rework to show current communities
4 participants