docs: unify core and cloud search

GitOrigin-RevId: 1762a593a6caea5e734911f522458d189702939a
This commit is contained in:
Rikin Kachhia 2021-03-19 01:41:47 +05:30 committed by hasura-bot
parent f0dd71db59
commit b2c0bbb491
2 changed files with 330 additions and 305 deletions

View File

@ -1013,6 +1013,24 @@ article ol ol {
background: #FFF1DB;
}
#input_search_box .algolia-autocomplete a.algolia-docsearch-suggestion[href*="graphql/cloud"] .algolia-docsearch-suggestion--category-header-lvl0::after {
content: 'Cloud';
background-color: rgba(28,211,198,.86);
}
#input_search_box .algolia-autocomplete a.algolia-docsearch-suggestion[href*="graphql/core"] .algolia-docsearch-suggestion--category-header-lvl0::after {
content: 'Core';
background-color: #eee;
}
#input_search_box .algolia-autocomplete a.algolia-docsearch-suggestion .algolia-docsearch-suggestion--category-header-lvl0::after {
border-radius: 5px;
padding: 4px 8px;
font-size: 10px;
font-weight: 600;
float: right;
}
/*** Algolia docsearch overrides END ***/
/*** Loader ***/
@ -1139,6 +1157,10 @@ article ol ol {
max-width: calc(166% + 10px);
min-width: calc(166% + 10px); /* 1 / width(input_search_box) + 10px */
}
#input_search_box .algolia-autocomplete a.algolia-docsearch-suggestion .algolia-docsearch-suggestion--category-header-lvl0::after {
float: none;
}
}
@media (min-width: 768px) and (max-width: 1385px) {
.mc_embed_signup {

View File

@ -4,14 +4,17 @@
{% set is_landing_page = true %}
{%- endif %}
{%- if pagename.startswith('graphql/core') %}
{% set is_core = true %}
{% set ALGOLIA_INDEX = 'graphql-docs-prod' %}
{% set ALGOLIA_API_KEY = '298d448cd9d7ed93fbab395658da19e8' %}
{%- if pagename.startswith('graphql/core') %}
{% set is_core = true %}
{# % set ALGOLIA_INDEX = 'graphql-docs-prod' % #}
{# % set ALGOLIA_API_KEY = '298d448cd9d7ed93fbab395658da19e8' % #}
{%- elif pagename.startswith('graphql/cloud') %}
{% set is_cloud = true %}
{% set ALGOLIA_INDEX = 'cloud-docs-prod' %}
{% set ALGOLIA_API_KEY = 'cf84f05a225bedb72ce472dada63d29f' %}
{# % set ALGOLIA_INDEX = 'cloud-docs-prod' % #}
{# % set ALGOLIA_API_KEY = 'cf84f05a225bedb72ce472dada63d29f' % #}
{%- endif %}
{% set css_files = css_files + ['_static/graphiql/graphiql.css', '_static/styles/main.css'] %}