-
Notifications
You must be signed in to change notification settings - Fork 0
PYDOC-6 [a]: Rebuild official docs using RTD theme #1
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
PYDOC-6 [a]: Rebuild official docs using RTD theme #1
Conversation
Round 2 success.
Resolved now and lesson learned. |
… bar home button to main index (instead of gargantuan toc `contents.html` page).
…] references' brackets.
…r installing/index.rst -- otherwise it will always appear on the global sidebar TOC
…ferences located at `index.html` :)
<div role="navigation" aria-label="{{ _('Page navigation') }}"> | ||
<ul class="wy-breadcrumbs"> | ||
{%- block breadcrumbs %} | ||
<li><a href="{{ pathto('index') }}" class="icon icon-home" aria-label="Home"></a></li> |
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.
Originally, w/o mod, this said
<a href="{{ pathto(master_doc) }}"
which means the home button always takes you back to the ginormous TOC page (instead of the real "home" we think of at index.html
from our beloved Pydocs).
So instead this is now:
<a href="{{ pathto('index') }}"
{# the master_doc variable was renamed to root_doc in Sphinx 4 (master_doc still exists in later Sphinx versions) #} | ||
{%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %} | ||
{%- set _root_doc = root_doc|default('master_doc') %} | ||
<a href="{{ pathto('index') }}"{% if not theme_logo_only %} class="icon icon-home"{% endif %}> |
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.
See comment above.
PYDOC-6 Ticket: https://trello.com/c/StGB3VAw/6-pydoc-6-change-theme-to-rtd-sphinx-rebuild-push-to-website
PYDOC-6 PR [a]: this
PYDOC-6 PR [b]: companion PR in the GitHub Pages repo