This is an automated email from the ASF dual-hosted git repository.
dmagda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-website.git
The following commit(s) were added to refs/heads/master by this push:
new 8f6c570 Multiple fixes (#31)
8f6c570 is described below
commit 8f6c570b4e795a587bbbb01ae1429cb5fcf74574
Author: Mauricio Stekl <[email protected]>
AuthorDate: Wed Sep 30 16:38:10 2020 -0300
Multiple fixes (#31)
* simplified rules because of crawling errors on Google Console
* fixed issue with collapsible menus on left column
Co-authored-by: Mauricio Stekl <[email protected]>
---
_docs/_includes/left-nav.html | 17 +++++++++--------
_docs/_sass/docs.scss | 23 +++++++++++++++++------
robots.txt | 4 +---
3 files changed, 27 insertions(+), 17 deletions(-)
diff --git a/_docs/_includes/left-nav.html b/_docs/_includes/left-nav.html
index 537878f..c99f2cf 100644
--- a/_docs/_includes/left-nav.html
+++ b/_docs/_includes/left-nav.html
@@ -1,10 +1,9 @@
-
{% assign prefix = site.attrs.base_url %}
{% assign normalized_path = page.url | replace: ".html","" | remove_first:
prefix %}
{% if page.toc != false %}
<nav class='left-nav' data-swiftype-index='false'>
-
- {% for guide in site.data.toc %}
+
+ {% for guide in site.data.toc %}
<li>
{% if guide.items %}
@@ -14,7 +13,8 @@
{% for chapter in guide.items %}
{% assign chapter_class = 'collapsed' %}
- {% if normalized_path == chapter.url %}
+ {% assign normalized_chapter_url = chapter.url | prepend:
"/" %}
+ {% if normalized_path == normalized_chapter_url %}
{% assign guide_class = 'expanded' %}
{% assign chapter_class = 'expanded' %}
{% endif %}
@@ -27,22 +27,23 @@
{% endif %}
<button
type='button'
- class='{{chapter_class}} {% if normalized_path
== chapter.url %}active{% endif %}'>{{chapter.title}}<img
class="state-indicator" src="{{'assets/images/left-nav-arrow.svg' |
relative_url}}"></button>
+ class='{{chapter_class}} {% if normalized_path
== normalized_chapter_url %}active{% endif %}'>{{chapter.title}}<img
class="state-indicator" src="{{'assets/images/left-nav-arrow.svg' |
relative_url}}"></button>
<nav class="sub_pages {{chapter_class}}">
{% for subpage in chapter.items %}
- {% if normalized_path == subpage.url %}
+ {% assign normalized_subpage_url = subpage.url
| prepend: "/" %}
+ {% if normalized_path ==
normalized_subpage_url %}
{% assign guide_class = 'expanded' %}
{% assign chapter_class = 'expanded' %}
{% endif %}
- <li><a
href="{{prefix}}/{{subpage.url}}" class='{% if normalized_path == subpage.url
%}active{% endif %}'>{{subpage.title}}</a></li>
+ <li><a
href="{{prefix}}/{{subpage.url}}" class='{% if normalized_path ==
normalized_subpage_url %}active{% endif %}'>{{subpage.title}}</a></li>
{% endfor %}
</nav>
{% else %}
<a href="{{prefix}}{{chapter.url|relative_url}}"
- class='{% if normalized_path == chapter.url
%}active{% endif %}'
+ class='{% if normalized_path ==
normalized_chapter_url %}active{% endif %}'
>{{chapter.title}}</a>
{% endif %}
</li>
diff --git a/_docs/_sass/docs.scss b/_docs/_sass/docs.scss
index 9dac023..e7f8373 100644
--- a/_docs/_sass/docs.scss
+++ b/_docs/_sass/docs.scss
@@ -17,14 +17,23 @@ section.page-docs {
grid-area: content;
overflow: hidden;
font-family: sans-serif;
- font-size: 14px;
+ font-size: 16px;
color: #545454;
- line-height: 26px;
+ line-height: 1.6em;
h1, h2, h3:not(.discrete), h4, h5, strong, th {
font-family: 'Open Sans';
}
+ li {
+ margin-bottom: 0.5em;
+
+ > p {
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+ }
+
@media (max-width: 800px) {
padding-left: 15px;
padding-right: 15px
@@ -41,10 +50,12 @@ section.page-docs {
}
h1, h2, h3:not(.discrete), h4, h5 {
+ margin-bottom: 0;
&[id] {
- margin-top: calc((-1 * var(--header-height)));
- padding-top: calc(var(--header-height) + var(--padding-top));
+ margin-top: var(--margin-top);
+ margin-bottom: calc(var(--margin-top) * 0.5);
+ // padding-top: calc(var(--header-height) + var(--padding-top));
z-index: -1;
}
}
@@ -77,14 +88,14 @@ section.page-docs {
--margin-top: 1em;
}
h2[id] {
- --margin-top: 1em;
+ --margin-top: 1.2em;
}
.toc > h2 {
--margin-top: 1em;
}
h3[id] {
- --margin-top: 1em;
+ --margin-top: 1.2em;
}
h4[id] {
--margin-top: 0.5em;
diff --git a/robots.txt b/robots.txt
index a035be4..62d25c4 100644
--- a/robots.txt
+++ b/robots.txt
@@ -1,4 +1,2 @@
User-agent: *
-Allow: /releases/latest/
-Disallow: /releases/
-Sitemap: https://ignite.apache.org/sitemap.xml
+Disallow: /_docs/
\ No newline at end of file