Skip to content

Commit

Permalink
Make HTTPS the default & update canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
dbader committed Jul 16, 2018
1 parent 936c3c7 commit 40571f4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ How to contribute
This guide is under heavy development. If you would like to contribute, please
see:

http://docs.python-guide.org/en/latest/notes/contribute/
https://docs.python-guide.org/en/latest/notes/contribute/

How to test your changes
------------------------
Expand Down Expand Up @@ -34,4 +34,4 @@ Style Guide

For all contributions, please follow the `Guide Style Guide`:

http://docs.python-guide.org/en/latest/notes/styleguide/
https://docs.python-guide.org/en/latest/notes/styleguide/
2 changes: 1 addition & 1 deletion Readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Topics include:

If you aren't fond of reading reStructuredText, there is an
almost up-to-date `HTML version at docs.python-guide.org
<http://docs.python-guide.org>`_.
<https://docs.python-guide.org>`_.
4 changes: 2 additions & 2 deletions docs/404.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ It looks like this was the result of either:
- a mistyped address
- an out-of-date link

`Click here to go back to the homepage. <http://docs.python-guide.org/>`_
`Click here to go back to the homepage. <https://docs.python-guide.org/>`_

Or, try `searching <http://docs.python-guide.org/en/latest/search/>`_.
Or, try `searching <https://docs.python-guide.org/en/latest/search/>`_.

.. raw:: html

Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

{% if pagename == 'index' %}
<link rel="canonical" href="http://docs.python-guide.org/"/>
<link rel="canonical" href="https://docs.python-guide.org/"/>
{% elif pagename == '404' %}
{# No canonical on our 404 template. #}
{% else %}
<link rel="canonical" href="http://docs.python-guide.org/{{ pagename }}/"/>
<link rel="canonical" href="https://docs.python-guide.org/{{ pagename }}/"/>
{% endif %}

<link rel="icon" type="image/png" href="https://media.readthedocs.org/images/favicon.png">
Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/sidebarintro.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h3>Contributors</h3>
This guide is the result of the collaboration of
<a href="https://github.com/kennethreitz/python-guide/graphs/contributors">hundreds of people</a>
around the world, and your contributions
<a href="http://docs.python-guide.org/en/latest/notes/contribute/">are welcome</a>!
<a href="https://docs.python-guide.org/en/latest/notes/contribute/">are welcome</a>!
</p>


Expand All @@ -64,7 +64,7 @@ <h3>Useful Links</h3>

<h3>Translations</h3>
<ul>
<li><a href="http://docs.python-guide.org/en/latest/">English</a></li>
<li><a href="https://docs.python-guide.org/en/latest/">English</a></li>
<li><a href="https://python-guide-fr.readthedocs.io/fr/latest/">French</a></li>
<li><a href="https://pythonguidecn.readthedocs.io/zh/latest/">Chinese</a></li>
<li><a href="http://python-guideja.readthedocs.io/ja/latest/">Japanese</a></li>
Expand Down
2 changes: 1 addition & 1 deletion docs/_templates/sidebarlogo.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3>Other Projects</h3>

<h3>Translations</h3>
<ul>
<li><a href="http://docs.python-guide.org/en/latest/">English</a></li>
<li><a href="https://docs.python-guide.org/en/latest/">English</a></li>
<li><a href="https://python-guide-fr.readthedocs.io/fr/latest/">French</a></li>
<li><a href="https://pythonguidecn.readthedocs.io/zh/latest/">Chinese</a></li>
<li><a href="http://python-guideja.readthedocs.io/ja/latest/">Japanese</a></li>
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/virtualenvs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ using your OS package manager, you may have to `install pip <https://pip.pypa.io
.. _python.org: https://python.org
.. _pip: https://pypi.org/project/pip/
.. _Homebrew: https://brew.sh
.. _Installing Python: http://docs.python-guide.org/en/latest/starting/installation/
.. _Installing Python: https://docs.python-guide.org/en/latest/starting/installation/


Installing Pipenv
Expand Down

0 comments on commit 40571f4

Please sign in to comment.