Skip to content

Commit

Permalink
Add copyright footer to HTML docs
Browse files Browse the repository at this point in the history
The technique we use for inserting the feedback link in the footer
overrides the Sphinx basic/layout.html and agogo/layout.html footers
in a way that prevents us from getting the copyright link footer.
Copy the relevant part of the Sphinx basic/layout.html for now.

Add a copyright.rst that links to mitK5license.rst.

ticket: 7510 (new)
target_version: 1.11
tags: pullup
  • Loading branch information
tlyu committed Dec 17, 2012
1 parent 2af891a commit 49d3140
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
{% macro feedback_rellinks() %}
<div class="footer-wrapper" >
<div class="footer" >
<div class="right" ><i>Release: {{ release }} </i>
<div class="right" ><i>Release: {{ release }}</i><br />
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
{%- else %}
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
{%- endif %}
{%- endif %}
</div>
<div class="left" >
{%- for rellink in rellinks|reverse %}
Expand Down
8 changes: 8 additions & 0 deletions doc/copyright.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright
=========

Copyright |copy| 1985-2012 by the Massachusetts Institute of
Technology and its contributors. All rights reserved.

See :ref:`mitK5license` for additional copyright and license
information.
5 changes: 5 additions & 0 deletions doc/mitK5license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
MIT Kerberos License information
================================

.. toctree::
:hidden:

copyright.rst

.. include:: notice.rst
1 change: 1 addition & 0 deletions src/doc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RST_SOURCES= _static \
user \
about.rst \
build_this.rst \
copyright.rst \
mitK5defaults.rst \
mitK5features.rst \
mitK5license.rst \
Expand Down

0 comments on commit 49d3140

Please sign in to comment.