-
Notifications
You must be signed in to change notification settings - Fork 201
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
Custom Title/Landing Page #162
Comments
I agree something like this would be quite useful. I guess my question is whether we should special-case this at the level of HTML / templating / etc, or if we should ensure that we provide the right Markdown syntax elements + documentation to customize them so that people can accomplish this on their own. I suspect that the latter would be easier to maintain if we were able to get where we wanted. And Sphinx already treats the For certain page elements, like the title / author / etc, I think we could definitely special-case some page / site variables etc. We may want to explore that "title/author" pattern for other pages too. btw, I like that our feature voting thing is now encouraging people to +1 their own issues 😅 |
I looked into this a little bit more and it sounds like it should be pretty doable with a custom template + this config in Sphinx: html_additional_pages = {
'index': 'landingpage.html',
} That'll render the Jinja template I think we'd need to over-ride Jupyter Book's current behavior regarding the |
We were just discussing this idea at cc: @AakashGfude any thoughts on how hard this would be as a simple sphinx extension? |
Most books that I've seen have a front cover 😉
I think it would be great to have an (optional) front page which has a very distinctly different layout to the rest of the pages.
It might even be better if (somehow) this page is not even parsed from a standard rST/Markdown page (like the current index.html),
but is related to a bunch of variables, and a separate HTML template (similar to LaTeX title pages).
e.g. something like you specify the variables:
which get parsed into a standard or custom frontpage template:
(but obviously more fancy like https://dev.to/davidepacilio/40-free-html-landing-page-templates-3gfp)
I don't know if this needs to be something implemented upstream (like pydata/pydata-sphinx-theme#146) or we can do here.
The text was updated successfully, but these errors were encountered: