mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
docs: add canonical url, fix accessibility (#3599)
This commit is contained in:
parent
caab88a405
commit
8ee21368f9
5
docs/_static/hasura-custom.css
vendored
5
docs/_static/hasura-custom.css
vendored
@ -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 {
|
||||
|
13
docs/_theme/djangodocs/basic/layout.html
vendored
13
docs/_theme/djangodocs/basic/layout.html
vendored
@ -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 %}
|
||||
<!DOCTYPE html>
|
||||
{%- else %}
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
{%- 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 %}
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"{% if language is not none %} lang="{{ language }}"{% endif %}>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
{%- endif %}
|
||||
<head>
|
||||
{%- if not html5_doctype %}
|
||||
@ -134,6 +129,7 @@
|
||||
{% endif %}
|
||||
{%- block htmltitle %}
|
||||
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
|
||||
<meta name="title" content="{{ title|striptags|e }}{{ titlesuffix }}" />
|
||||
{%- endblock %}
|
||||
{%- block csss %}
|
||||
{{- css() }}
|
||||
@ -155,9 +151,6 @@
|
||||
{%- if hasdoc('about') %}
|
||||
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
|
||||
{%- endif %}
|
||||
{%- if hasdoc('genindex') %}
|
||||
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
|
||||
{%- endif %}
|
||||
{%- if hasdoc('search') %}
|
||||
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
|
||||
{%- endif %}
|
||||
|
47
docs/_theme/djangodocs/layout.html
vendored
47
docs/_theme/djangodocs/layout.html
vendored
@ -20,11 +20,9 @@
|
||||
{%- endif %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% block extrahead %}
|
||||
<!--<meta name="viewport" content="user-scalable=no">-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
{% block linktags %}
|
||||
{{ super() }}
|
||||
<link rel="canonical" href="https://docs.{{ BASE_DOMAIN }}/1.0/{{ pagename }}{{ file_suffix }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block document %}
|
||||
@ -49,9 +47,9 @@
|
||||
|
||||
<div id="docs-header">
|
||||
<div class="mobile-only" id="mobile-logo">
|
||||
<a href="https://{{ BASE_DOMAIN }}/" target="_blank">
|
||||
<a href="https://{{ BASE_DOMAIN }}/" target="_blank" rel="noopener">
|
||||
<div class="img_wrapper inline-block">
|
||||
<img class="responsive logo_img no-shadow" src="{{ pathto('_images/layout/logo-dark.svg', 1) }}" />
|
||||
<img class="responsive logo_img no-shadow" src="{{ pathto('_images/layout/logo-dark.svg', 1) }}" alt="Hasura Logo Dark" />
|
||||
</div>
|
||||
</a>
|
||||
<a href="https://docs.{{ BASE_DOMAIN }}" class="docs_label mobile-logo-docs">DOCS v{{version}}</a>
|
||||
@ -67,21 +65,21 @@
|
||||
<div class="inline-block header_links">
|
||||
<div class="social_icons_wrapper">
|
||||
<div class="social_icons">
|
||||
<a href="https://learn.hasura.io/" target="_blank">
|
||||
<a href="https://learn.hasura.io/" target="_blank" rel="noopener">
|
||||
Tutorials
|
||||
</a>
|
||||
</div>
|
||||
<div class="social_icons">
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=hasura&repo=graphql-engine&type=star&count=true" frameBorder="0" scrolling="0" width="100px" height="25px"></iframe>
|
||||
<iframe title="Hasura GraphQL Github Stars" src="https://ghbtns.com/github-btn.html?user=hasura&repo=graphql-engine&type=star&count=true" frameBorder="0" scrolling="0" width="100px" height="25px"></iframe>
|
||||
</div>
|
||||
<div class="social_icons">
|
||||
<a href="https://twitter.com/hasurahq/" target="_blank">
|
||||
<img class="responsive" src="{{ pathto('_images/layout/Twitter.svg', 1) }}" />
|
||||
<a href="https://twitter.com/hasurahq/" target="_blank" rel="noopener">
|
||||
<img class="responsive" src="{{ pathto('_images/layout/Twitter.svg', 1) }}" alt="Twitter icon" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="social_icons tooltip">
|
||||
<a href="https://discord.gg/vBPpJkS" target="_blank">
|
||||
<img class="responsive" src="{{ pathto('_images/layout/Discord.svg', 1) }}" />
|
||||
<a href="https://discord.gg/vBPpJkS" target="_blank" rel="noopener">
|
||||
<img class="responsive" src="{{ pathto('_images/layout/Discord.svg', 1) }}" alt="Discord icon" />
|
||||
</a>
|
||||
<span class="tooltip_text">Get instant support on our discord server</span>
|
||||
</div>
|
||||
@ -112,7 +110,7 @@
|
||||
</svg>
|
||||
</div>
|
||||
<div class="display_inl actions thumb_down">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="21px" height="21px" viewBox="0 0 561 561" style="enable-background:new 0 0 561 561;" xml:space="preserve">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_2" x="0px" y="0px" width="21px" height="21px" viewBox="0 0 561 561" style="enable-background:new 0 0 561 561;" xml:space="preserve">
|
||||
<g>
|
||||
<g id="thumb-down">
|
||||
<path d="M357,25.5H127.5c-20.4,0-38.25,12.75-45.9,30.6L5.1,237.15C2.55,242.25,0,247.35,0,255v48.45l0,0V306 c0,28.05,22.95,51,51,51h160.65l-25.5,117.3c0,2.55,0,5.101,0,7.65c0,10.2,5.1,20.399,10.2,28.05l28.05,25.5l168.3-168.3 c10.2-10.2,15.3-22.95,15.3-35.7v-255C408,48.45,385.05,25.5,357,25.5z M459,25.5v306h102v-306H459z" fill="#787878"/>
|
||||
@ -133,21 +131,21 @@
|
||||
</div>
|
||||
|
||||
<div class="footer-hasura-custom">
|
||||
<img class="responsive footer_logo" src="{{ pathto('_images/layout/hasura_logo.svg', 1) }}" />
|
||||
<img class="responsive footer_logo" src="{{ pathto('_images/layout/hasura_logo.svg', 1) }}" alt="Hasura Logo Dark"/>
|
||||
<div class="footer_text">
|
||||
<div>Want to contribute or report missing content?</div>
|
||||
<div>
|
||||
<a target="_blank" href="https://github.com/hasura/graphql-engine/blob/master/docs/{{ pagename }}.rst">edit this page on github</a>
|
||||
| <a target="_blank" href="https://github.com/hasura/graphql-engine/blob/master/CONTRIBUTING.md">contributing guidelines</a>
|
||||
| <a target="_blank" href="https://github.com/hasura/graphql-engine/issues">report an issue</a>
|
||||
<a target="_blank" rel="noopener" href="https://github.com/hasura/graphql-engine/blob/master/docs/{{ pagename }}.rst">edit this page on github</a>
|
||||
| <a target="_blank" rel="noopener" href="https://github.com/hasura/graphql-engine/blob/master/CONTRIBUTING.md">contributing guidelines</a>
|
||||
| <a target="_blank" rel="noopener" href="https://github.com/hasura/graphql-engine/issues">report an issue</a>
|
||||
</div>
|
||||
<br/>
|
||||
<div>
|
||||
<a target="_blank" href="https://github.com/hasura/graphql-engine">Hasura GraphQL engine</a> is open source. <a target="_blank" href="https://github.com/hasura/graphql-engine/blob/master/LICENSE">See license</a>
|
||||
<a target="_blank" rel="noopener" href="https://github.com/hasura/graphql-engine">Hasura GraphQL engine</a> is open source. <a target="_blank" rel="noopener" href="https://github.com/hasura/graphql-engine/blob/master/LICENSE">See license</a>
|
||||
</div>
|
||||
<div>
|
||||
Powered by <a target="_blank" href="http://www.sphinx-doc.org">Sphinx</a>.
|
||||
| Copyright © 2019 <a target="_blank" href="https://hasura.io">Hasura</a>.
|
||||
Powered by <a target="_blank" rel="noopener" href="http://www.sphinx-doc.org">Sphinx</a>.
|
||||
| Copyright © 2019 <a target="_blank" rel="noopener" href="https://hasura.io">Hasura</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -542,4 +540,11 @@
|
||||
</script>
|
||||
|
||||
{%- block extrafooter %} {% endblock %}
|
||||
{% block extrahead %}
|
||||
<!--<meta name="viewport" content="user-scalable=no">-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
|
6
docs/_theme/djangodocs/localtoc.html
vendored
6
docs/_theme/djangodocs/localtoc.html
vendored
@ -1,15 +1,15 @@
|
||||
{%- if display_toc %}
|
||||
<div class="header_main_logo inline-block mobile-hide">
|
||||
<a href="https://{{ BASE_DOMAIN }}/" target="_blank">
|
||||
<a href="https://{{ BASE_DOMAIN }}/" target="_blank" rel="noopener">
|
||||
<div class="img_wrapper inline-block">
|
||||
<img class="responsive logo_img" src="{{ pathto('_images/layout/logo-lite.svg', 1) }}" />
|
||||
<img class="responsive logo_img" src="{{ pathto('_images/layout/logo-lite.svg', 1) }}" alt="Hasura Logo Light" />
|
||||
</div>
|
||||
</a>
|
||||
<a class="docs_label" href="{{ pathto('', 1) }}">
|
||||
<div class="inline-block hero"> docs </div>
|
||||
</a>
|
||||
<a class="version_txt">
|
||||
<select value="{{ version }}" onchange="location = this.value;" class="selected">
|
||||
<select value="{{ version }}" onchange="location = this.value;" class="selected" aria-label="Select Version">
|
||||
{%- if version == '1.0' %}
|
||||
<option class="option_val" value="https://docs.{{ BASE_DOMAIN }}/1.0" selected="selected">v1.0</option>
|
||||
{%- else -%}
|
||||
|
@ -15,6 +15,7 @@ To use the Hasura GraphQL engine, you need to:
|
||||
.. thumbnail:: ../../../img/graphql/manual/getting-started/running-hasura.png
|
||||
:width: 75%
|
||||
:class: no-shadow
|
||||
:alt: Running Hasura
|
||||
|
||||
Get started from scratch
|
||||
------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user