Add Creative Commons license instead of Copyright?

311 views
Skip to first unread message

Kristina Hoeppner

unread,
Nov 20, 2011, 10:35:03 PM11/20/11
to sphinx-dev
Hello,

I started to write the Mahara documentation (http://manual.mahara.org)
in rst last week and we use Sphinx to publish it to Read the Docs.
Most things work great. :-)

Is it possible to exchange the standard copyright notice for a
Creative Commons license in the footer of the documents? As we are
using the Sphinx converter on Read the Docs we can't make changes that
can't be placed in conf.py or another content / theme file.

Thanks
Kristina

TP

unread,
Nov 22, 2011, 8:26:38 PM11/22/11
to sphin...@googlegroups.com

I do that by putting something like the following in layout.html. See
http://sphinx.pocoo.org/templating.html for details on layout.html
(and how to override the footer).

{%- block footer %}
<div class="footer">
<span class="creativecommons">
<a href="http://creativecommons.org/licenses/by/3.0/us/" >
<img src="{{ pathto("_static/creativecommons-88x31.png", 1) }}"
border="0" alt="Creative Commons License"/>
</a>
Whatever is licensed under a
<a href="http://creativecommons.org/licenses/by/3.0/us/">
Creative Commons Attribution 3.0 United States License.
</a>
</span>
</div>
{%- endblock %}

Kristina Hoeppner

unread,
Nov 23, 2011, 1:34:18 AM11/23/11
to sphinx-dev
Thank you very much, TP.

Didn't think to look in the templates. Thank you also for your snippet
of code.

Cheers
Kristina

Reply all
Reply to author
Forward
0 new messages