-
-
Notifications
You must be signed in to change notification settings - Fork 540
Add --index-titles
flag to panel serve
to allow customizing names in the index page cards for multi-page apps and update documentation
#7916
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
Conversation
…ti Page Apps default template index page
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7916 +/- ##
==========================================
- Coverage 87.10% 86.11% -1.00%
==========================================
Files 346 346
Lines 53133 53213 +80
==========================================
- Hits 46283 45822 -461
- Misses 6850 7391 +541 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Would making the argument more specific, like |
I'd also be in favor of |
Thank you for the feedback! Pushed a couple of commits that should address the comments but let me know if something else is needed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go 🚀
Really appreciate all your contributions recently @dalthviz.
--titles
flag to panel serve
to allow customizing names in the index page cards for multi-page apps and update documentation--index-titles
flag to panel serve
to allow customizing names in the index page cards for multi-page apps and update documentation
This adds a new
--index-titles
flag to thepanel serve
command to pass a custom mapping of titles for multi-page apps index card items (--index-titles <page slug>=<custom title>
). This also changes the baseindex.html
template to be able to use the values passed as titles via the new flag.A preview:
Note:
Currently, the changes to the base index template done in this PR cause the
items
variable passed to become a list of tuples. Not totally sure if the template variables definitions should try to ensure some backwards compatibility. If that is the case, using a list of tuples could be changed to, for example, pass the titles as a new variable.Fixes #7863
Related to #5128