mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
update docs config + base pages (#1343)
This commit is contained in:
parent
a9e2326ea8
commit
5820e5e41d
5
docs/_theme/djangodocs/genindex.html
vendored
5
docs/_theme/djangodocs/genindex.html
vendored
@ -1,4 +1 @@
|
||||
{% extends "basic/genindex.html" %}
|
||||
|
||||
{% block bodyclass %}{% endblock %}
|
||||
{% block sidebarwrapper %}{% endblock %}
|
||||
{% extends "basic/genindex.html" %}
|
5
docs/_theme/djangodocs/layout.html
vendored
5
docs/_theme/djangodocs/layout.html
vendored
@ -62,7 +62,7 @@
|
||||
</div>
|
||||
<div class="inline-block" id="input_search_box">
|
||||
<span class="fa fa-search search_icon"></span>
|
||||
<input type="text" class="search_element" placeholder="Search docs..." />
|
||||
<input type="text" id="search_element" placeholder="Search docs..." />
|
||||
</div>
|
||||
<div class="inline-block header_links">
|
||||
<div class="social_icons_wrapper">
|
||||
@ -261,7 +261,7 @@
|
||||
docsearch({
|
||||
apiKey: 'c59018461c19e20fe11459136e57900c',
|
||||
indexName: 'hasura',
|
||||
inputSelector: '.search_element',
|
||||
inputSelector: '#search_element',
|
||||
transformData: function(suggestions) {
|
||||
if (window.location.origin !== 'https://docs.hasura.io') {
|
||||
suggestions.forEach(suggestion => {
|
||||
@ -501,4 +501,5 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
{%- block extrafooter %} {% endblock %}
|
||||
{% endblock %}
|
||||
|
2
docs/_theme/djangodocs/modindex.html
vendored
2
docs/_theme/djangodocs/modindex.html
vendored
@ -1,3 +1 @@
|
||||
{% extends "basic/modindex.html" %}
|
||||
{% block bodyclass %}{% endblock %}
|
||||
{% block sidebarwrapper %}{% endblock %}
|
||||
|
27
docs/_theme/djangodocs/search.html
vendored
27
docs/_theme/djangodocs/search.html
vendored
@ -1 +1,28 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block extrafooter %}
|
||||
<!-- handle search query -->
|
||||
<script>
|
||||
const handleQueryParams = function() {
|
||||
const re = /query=(.*)$/;
|
||||
const match = re.exec(window.location.search);
|
||||
|
||||
let searchTerm = '';
|
||||
if ( match ) {
|
||||
searchTerm = decodeURIComponent(match[1]);
|
||||
|
||||
if (searchTerm) {
|
||||
const searchInput = document.getElementById('search_element');
|
||||
|
||||
searchInput.value = searchTerm;
|
||||
searchInput.dispatchEvent(new Event('input'));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (window.location.search.length > 0) {
|
||||
handleQueryParams();
|
||||
}
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
@ -36,7 +36,7 @@ CURRENT_ENV = os.getenv("ENV") if os.getenv("ENV") else "development"
|
||||
BASE_DOMAIN = os.getenv("BASE_DOMAIN", "development")
|
||||
|
||||
# GraphiQL defaults
|
||||
GRAPHIQL_DEFAULT_ENDPOINT = "https://data.accouterments35.hasura-app.io/v1alpha1/graphql"
|
||||
GRAPHIQL_DEFAULT_ENDPOINT = "https://localhost:8080/v1alpha1/graphql"
|
||||
# Get from env if set
|
||||
if os.getenv("GRAPHIQL_DEFAULT_ENDPOINT"):
|
||||
GRAPHIQL_DEFAULT_ENDPOINT = os.getenv("GRAPHIQL_DEFAULT_ENDPOINT")
|
||||
|
@ -1,5 +1,3 @@
|
||||
.. _graphql_manual:
|
||||
|
||||
.. title:: Hasura GraphQL Engine Documentation
|
||||
|
||||
Hasura GraphQL Engine documentation
|
||||
|
Loading…
Reference in New Issue
Block a user