From 4be0eccbfac149240a0790093b9e30b8ad6431f0 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 15 Nov 2017 17:16:10 +0200 Subject: [PATCH] Move documentation to docs.aiohttp.org (#2519) * Move documentation to docs.aiohttp.org * Setup canonical URL --- README.rst | 2 +- aiohttp/worker.py | 2 +- docs/conf.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 55cd691dfff..bb3a85f8b38 100644 --- a/README.rst +++ b/README.rst @@ -21,7 +21,7 @@ Async http client/server framework :alt: Latest PyPI package version .. image:: https://readthedocs.org/projects/aiohttp/badge/?version=latest - :target: http://aiohttp.readthedocs.io/en/latest/ + :target: http://docs.aiohttp.org/ :alt: Latest Read The Docs .. image:: https://badges.gitter.im/Join%20Chat.svg diff --git a/aiohttp/worker.py b/aiohttp/worker.py index 1c7f1fa3186..9350d859065 100644 --- a/aiohttp/worker.py +++ b/aiohttp/worker.py @@ -226,7 +226,7 @@ def _get_valid_log_format(self, source_format): "Gunicorn's style options in form of `%(name)s` are not " "supported for the log formatting. Please use aiohttp's " "format specification to configure access log formatting: " - "http://aiohttp.readthedocs.io/en/stable/logging.html" + "http://docs.aiohttp.org/en/stable/logging.html" "#format-specification" ) else: diff --git a/docs/conf.py b/docs/conf.py index ae54c9490ff..76bc4cc199b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -156,6 +156,7 @@ html_theme_options = { 'logo': 'aiohttp-icon-128x128.png', 'description': 'http client/server for asyncio', + 'canonical_url': 'http://docs.aiohttp.org/en/stable/', 'github_user': 'aio-libs', 'github_repo': 'aiohttp', 'github_button': True,