From 8ee21368f99e355bff036f4e9dfabc5de80718b2 Mon Sep 17 00:00:00 2001 From: Praveen Durairaju Date: Mon, 30 Dec 2019 14:32:06 +0530 Subject: [PATCH] docs: add canonical url, fix accessibility (#3599) --- docs/_static/hasura-custom.css | 5 +- docs/_theme/djangodocs/basic/layout.html | 13 ++--- docs/_theme/djangodocs/layout.html | 47 ++++++++++--------- docs/_theme/djangodocs/localtoc.html | 6 +-- docs/graphql/manual/getting-started/index.rst | 1 + 5 files changed, 36 insertions(+), 36 deletions(-) diff --git a/docs/_static/hasura-custom.css b/docs/_static/hasura-custom.css index 67d4c7c4..92059fe8 100644 --- a/docs/_static/hasura-custom.css +++ b/docs/_static/hasura-custom.css @@ -127,7 +127,8 @@ ul { #docs-content a.reference { /*color: #1CD3C6 !important;*/ /*color: #1CD3C6 !important;*/ - color: #FF3264 !important; + /* color: #FF3264 !important; */ + color: #DB0037 !important; background-color: transparent !important; } @@ -306,7 +307,7 @@ article ol ol { #docs-header-actions .social_icons_wrapper .social_icons a { text-decoration: none; - color: #FF3264; + color: #DB0037; } #docs-header-actions .social_icons_wrapper .social_icons iframe { diff --git a/docs/_theme/djangodocs/basic/layout.html b/docs/_theme/djangodocs/basic/layout.html index 957a91d3..bea8016f 100644 --- a/docs/_theme/djangodocs/basic/layout.html +++ b/docs/_theme/djangodocs/basic/layout.html @@ -7,12 +7,6 @@ :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} -{%- block doctype -%}{%- if html5_doctype %} - -{%- else %} - -{%- endif %}{%- endblock %} {%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %} {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %} {%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and @@ -117,7 +111,8 @@ {%- if html_tag %} {{ html_tag }} {%- else %} - + + {%- endif %} {%- if not html5_doctype %} @@ -134,6 +129,7 @@ {% endif %} {%- block htmltitle %} {{ title|striptags|e }}{{ titlesuffix }} + {%- endblock %} {%- block csss %} {{- css() }} @@ -155,9 +151,6 @@ {%- if hasdoc('about') %} {%- endif %} - {%- if hasdoc('genindex') %} - - {%- endif %} {%- if hasdoc('search') %} {%- endif %} diff --git a/docs/_theme/djangodocs/layout.html b/docs/_theme/djangodocs/layout.html index c6d54c2a..34b676fe 100644 --- a/docs/_theme/djangodocs/layout.html +++ b/docs/_theme/djangodocs/layout.html @@ -20,11 +20,9 @@ {%- endif %} {%- endmacro %} -{% block extrahead %} - - - - +{% block linktags %} +{{ super() }} + {% endblock %} {% block document %} @@ -49,9 +47,9 @@