Merge pull request #67 from adamchainz/readthedocs.io

Convert readthedocs links for their .org -> .io migration for hosted projects
This commit is contained in:
Ryan Petrello
2016-06-20 09:08:22 -04:00
committed by GitHub
12 changed files with 15 additions and 15 deletions

View File

@@ -33,7 +33,7 @@ Running Tests
Viewing Documentation Viewing Documentation
--------------------- ---------------------
`Available online <http://pecan.readthedocs.org>`_, or to build manually:: `Available online <https://pecan.readthedocs.io>`_, or to build manually::
$ cd docs && make html $ cd docs && make html
$ open docs/build/html/index.html $ open docs/build/html/index.html

View File

@@ -208,7 +208,7 @@
<http://docs.openstack.org/infra/system-config/stackforge.html>`_, including Gerrit code review, <http://docs.openstack.org/infra/system-config/stackforge.html>`_, including Gerrit code review,
Jenkins continuous integration, and GitHub mirroring. Jenkins continuous integration, and GitHub mirroring.
* Added a pecan plugin for the popular `uwsgi server * Added a pecan plugin for the popular `uwsgi server
<http://uwsgi-docs.readthedocs.org>`_. <https://uwsgi-docs.readthedocs.io>`_.
* Replaced the ``simplegeneric`` dependency with the new * Replaced the ``simplegeneric`` dependency with the new
``functools.singledispatch`` function in preparation for Python 3.4 support. ``functools.singledispatch`` function in preparation for Python 3.4 support.
* Optimized pecan's core dispatch routing for notably faster response times. * Optimized pecan's core dispatch routing for notably faster response times.

View File

@@ -33,8 +33,8 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
intersphinx_mapping = { intersphinx_mapping = {
'python': ('http://docs.python.org', None), 'python': ('http://docs.python.org', None),
'webob': ('http://docs.webob.org/en/latest', None), 'webob': ('http://docs.webob.org/en/latest', None),
'webtest': ('http://webtest.readthedocs.org/en/latest/', None), 'webtest': ('https://webtest.readthedocs.io/en/latest/', None),
'beaker': ('http://beaker.readthedocs.org/en/latest/', None), 'beaker': ('https://beaker.readthedocs.io/en/latest/', None),
'paste': ('http://pythonpaste.org', None), 'paste': ('http://pythonpaste.org', None),
} }

View File

@@ -42,7 +42,7 @@ By default, this module contains a special method, :func:`init_model`.
recommended place to do it. recommended place to do it.
For more information working with databases, and some common recipes, For more information working with databases, and some common recipes,
see http://pecan.readthedocs.org/en/latest/databases.html see https://pecan.readthedocs.io/en/latest/databases.html
""" """
pass pass

View File

@@ -81,7 +81,7 @@ add it to :class:`test_project.root.RootController` class
@index.when(method='POST') @index.when(method='POST')
def index_post(self, q): def index_post(self, q):
redirect('http://pecan.readthedocs.org/en/latest/search.html?q=%s' % q) redirect('https://pecan.readthedocs.io/en/latest/search.html?q=%s' % q)
## custom handling of '404 Page Not Found' messages ## custom handling of '404 Page Not Found' messages

View File

@@ -211,7 +211,7 @@ This is how it looks in the project template
@index.when(method='POST') @index.when(method='POST')
def index_post(self, q): def index_post(self, q):
redirect('http://pecan.readthedocs.org/en/latest/search.html?q=%s' % q) redirect('https://pecan.readthedocs.io/en/latest/search.html?q=%s' % q)
@expose('error.html') @expose('error.html')
def error(self, status): def error(self, status):
@@ -245,7 +245,7 @@ template.
@index.when(method='POST') @index.when(method='POST')
def index_post(self, q): def index_post(self, q):
redirect('http://pecan.readthedocs.org/en/latest/search.html?q=%s' % q) redirect('https://pecan.readthedocs.io/en/latest/search.html?q=%s' % q)
The :func:`index_post` method receives one HTTP ``POST`` argument (``q``). Because The :func:`index_post` method receives one HTTP ``POST`` argument (``q``). Because
the argument ``method`` to :func:`@index.when` has been set to ``'POST'``, any the argument ``method`` to :func:`@index.when` has been set to ``'POST'``, any

View File

@@ -221,11 +221,11 @@ Add the following code to the ``projects.py`` file:
Project(name='Pecan', Project(name='Pecan',
licensing='BSD', licensing='BSD',
repository='http://github.com/pecan/pecan', repository='http://github.com/pecan/pecan',
documentation='http://pecan.readthedocs.org'), documentation='https://pecan.readthedocs.io'),
Project(name='stevedore', Project(name='stevedore',
licensing='Apache 2', licensing='Apache 2',
repository='http://github.com/dreamhost/pecan', repository='http://github.com/dreamhost/pecan',
documentation='http://stevedore.readthedocs.org') documentation='http://docs.openstack.org/developer/stevedore/')
] ]

View File

@@ -2,7 +2,7 @@ __CONFIG_HELP__ = '''
<div class="traceback"> <div class="traceback">
<b>To disable this interface, set </b> <b>To disable this interface, set </b>
<a target="window" <a target="window"
href="https://pecan.readthedocs.org/en/latest/deployment.html#disabling-debug-mode"> href="https://pecan.readthedocs.io/en/latest/deployment.html#disabling-debug-mode">
<pre>conf.app.debug = False</pre> <pre>conf.app.debug = False</pre>
</a> </a>
</div> </div>

View File

@@ -10,7 +10,7 @@ class RootController(object):
@index.when(method='POST') @index.when(method='POST')
def index_post(self, q): def index_post(self, q):
redirect('http://pecan.readthedocs.org/en/latest/search.html?q=%s' % q) redirect('https://pecan.readthedocs.io/en/latest/search.html?q=%s' % q)
@expose('error.html') @expose('error.html')
def error(self, status): def error(self, status):

View File

@@ -10,6 +10,6 @@ def init_model():
recommended place to do it. recommended place to do it.
For more information working with databases, and some common recipes, For more information working with databases, and some common recipes,
see http://pecan.readthedocs.org/en/latest/databases.html see https://pecan.readthedocs.io/en/latest/databases.html
""" """
pass pass

View File

@@ -13,7 +13,7 @@ class TestRootController(FunctionalTest):
response = self.app.post('/', params={'q': 'RestController'}) response = self.app.post('/', params={'q': 'RestController'})
assert response.status_int == 302 assert response.status_int == 302
assert response.headers['Location'] == ( assert response.headers['Location'] == (
'http://pecan.readthedocs.org/en/latest/search.html' 'https://pecan.readthedocs.io/en/latest/search.html'
'?q=RestController' '?q=RestController'
) )

View File

@@ -10,6 +10,6 @@ def init_model():
recommended place to do it. recommended place to do it.
For more information working with databases, and some common recipes, For more information working with databases, and some common recipes,
see http://pecan.readthedocs.org/en/latest/databases.html see https://pecan.readthedocs.io/en/latest/databases.html
""" """
pass pass