-
Notifications
You must be signed in to change notification settings - Fork 32
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
How to provide extracopyright #81
Comments
You should override it in |
Ok, looking at it I think modifying But, this does ask the question of why there's a custom block |
I think you're correct. Please let us know your findings when you can. The Risking what might be obvious to you, here is a link to the sphinx docs about customizing the theme templates. |
oh, this seems troubling
The EDIT: This doesn't seem to be a problem. Please disregard. |
ok, using the latest release of this theme, I was able to add content to the footer. template overridecreate a file named
extend the theme's {% extends "!partials/footer.html" %}
{% block extracopyright %}
<p>EXTRA COPYRIGHT</p>
{% endblock %} |
Overwriting the copyright.html partial works just fine. Thanks for the neat solution extending the footer partial, that sounds like the 'official' solution to the problem. |
It looks like mkdocs-material removed their |
re-opening as a reminder to adjust the docs. @duncanmmacleod can point me to how you ended up doing this? The link in OP hasn't seen any modifications. |
I have updated the example repo with a solution: https://github.com/duncanmmacleod/test-sphinx-immaterial/tree/79431161a9944890d48e3fb047f0712317a410f0. |
For full disclosure, my application here is to generate linked extensions for mkdocs-material and sphinx-immaterial that provide a common documentation theme across both sphinx and mkdocs projects. So my preferred solution is the one that can be implemented in both projects in as similar a way as possible, and since mkdocs-material dropped |
That explains the sphinx-immaterial specific comment in footer.html All the more reason to add a solution for this to our docs. sphinx-immaterial/src/partials/footer.html Lines 83 to 84 in 6ceccff
The if False change happened when we merged in changes from upstream v8
My partials/*.html solution may be "hacky" because I threw it together in proof-of-concept effort. |
Note to self: Change the copyright year for this theme's docs. |
I've just discovered this project, and love it (I have used
sphinx-material
for a while, but this gets much closer to mkdocs-material), thanks for maintaining it!But, I can't work out how to provide
extracopyright
in a way that actually get's built into the rendered docs. I've put together a tiny demo herehttps://github.com/duncanmmacleod/test-sphinx-immaterial
but nothing I put in my
_templates/layout.html
seems to have any effect. Is this possible?The text was updated successfully, but these errors were encountered: