Merge pull request #67 from adamchainz/readthedocs.io
Convert readthedocs links for their .org -> .io migration for hosted projects
This commit is contained in:
@@ -33,7 +33,7 @@ Running Tests
|
||||
|
||||
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
|
||||
$ open docs/build/html/index.html
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
<http://docs.openstack.org/infra/system-config/stackforge.html>`_, including Gerrit code review,
|
||||
Jenkins continuous integration, and GitHub mirroring.
|
||||
* 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
|
||||
``functools.singledispatch`` function in preparation for Python 3.4 support.
|
||||
* Optimized pecan's core dispatch routing for notably faster response times.
|
||||
|
||||
@@ -33,8 +33,8 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
|
||||
intersphinx_mapping = {
|
||||
'python': ('http://docs.python.org', None),
|
||||
'webob': ('http://docs.webob.org/en/latest', None),
|
||||
'webtest': ('http://webtest.readthedocs.org/en/latest/', None),
|
||||
'beaker': ('http://beaker.readthedocs.org/en/latest/', None),
|
||||
'webtest': ('https://webtest.readthedocs.io/en/latest/', None),
|
||||
'beaker': ('https://beaker.readthedocs.io/en/latest/', None),
|
||||
'paste': ('http://pythonpaste.org', None),
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ By default, this module contains a special method, :func:`init_model`.
|
||||
recommended place to do it.
|
||||
|
||||
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
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ add it to :class:`test_project.root.RootController` class
|
||||
|
||||
@index.when(method='POST')
|
||||
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
|
||||
|
||||
@@ -211,7 +211,7 @@ This is how it looks in the project template
|
||||
|
||||
@index.when(method='POST')
|
||||
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')
|
||||
def error(self, status):
|
||||
@@ -245,7 +245,7 @@ template.
|
||||
|
||||
@index.when(method='POST')
|
||||
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 argument ``method`` to :func:`@index.when` has been set to ``'POST'``, any
|
||||
|
||||
@@ -221,11 +221,11 @@ Add the following code to the ``projects.py`` file:
|
||||
Project(name='Pecan',
|
||||
licensing='BSD',
|
||||
repository='http://github.com/pecan/pecan',
|
||||
documentation='http://pecan.readthedocs.org'),
|
||||
documentation='https://pecan.readthedocs.io'),
|
||||
Project(name='stevedore',
|
||||
licensing='Apache 2',
|
||||
repository='http://github.com/dreamhost/pecan',
|
||||
documentation='http://stevedore.readthedocs.org')
|
||||
documentation='http://docs.openstack.org/developer/stevedore/')
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ __CONFIG_HELP__ = '''
|
||||
<div class="traceback">
|
||||
<b>To disable this interface, set </b>
|
||||
<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>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@ class RootController(object):
|
||||
|
||||
@index.when(method='POST')
|
||||
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')
|
||||
def error(self, status):
|
||||
|
||||
@@ -10,6 +10,6 @@ def init_model():
|
||||
recommended place to do it.
|
||||
|
||||
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
|
||||
|
||||
@@ -13,7 +13,7 @@ class TestRootController(FunctionalTest):
|
||||
response = self.app.post('/', params={'q': 'RestController'})
|
||||
assert response.status_int == 302
|
||||
assert response.headers['Location'] == (
|
||||
'http://pecan.readthedocs.org/en/latest/search.html'
|
||||
'https://pecan.readthedocs.io/en/latest/search.html'
|
||||
'?q=RestController'
|
||||
)
|
||||
|
||||
|
||||
@@ -10,6 +10,6 @@ def init_model():
|
||||
recommended place to do it.
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user