-
Notifications
You must be signed in to change notification settings - Fork 9
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
Not working as expected for older projects using the PyData theme #54
Comments
Minimal reproducible example# in docs/conf.py
extensions = [
...
"sphinx_last_updated_by_git",
]
html_theme = "pydata_sphinx_theme"
# set by default by either the theme or by Sphinx, not sure if helps
html_last_updated_fmt = "%b %d, %Y" Here is a link to the full I can confirm that I added Sphinx version: Relevant logsThe PR build and the build logs for readthedocs are in the issue comment above. I do not see any logs, warnings, or errors relevant to Command-line information via
Let me know if I need to post any more information or logs, @mgeier. Thanks a lot! Edit: I have tried forcing |
I seem to have fixed it by manually adding the |
Great to hear that it works now! If somebody else stumbles upon this, the "last updated" information can be enabled in the PyData theme by using something like this in html_theme_options = {
"footer_start": [
"copyright",
"sphinx-version",
"last-updated",
],
} Alternatively, For more options, see https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html#layout-footer There was also an unrelated problem about "shallow clones", where many warnings like this were shown:
This can be fixed by updating the version: 2
build:
os: "ubuntu-20.04"
tools:
python: "3"
jobs:
post_checkout:
- git fetch --unshallow || true |
I think other themes might be affected too, such as the PyData theme – I have not been able to make this work, neither locally nor on readthedocs (pybamm-team/PyBaMM#3089). @mgeier could you please help investigate this? Here is a link to the PR build and the build logs. I did bump up the
Sphinx
version to>= 6
indocs/requirements.txt
(it was>=1.5
earlier).However, I can see that other projects have been able to make this extension work with the same theme, maybe this is an issue with our configuration? It is almost similar to others' configurations – so I don't see any conflicts. Or, is it because they are newer projects unlike ours (i.e., post-October 2020) and we have to request the aforementioned feature flag(s) in this thread from readthedocs?
Originally posted by @agriyakhetarpal in #1 (comment)
The text was updated successfully, but these errors were encountered: