This is an automated email from the ASF dual-hosted git repository.
abudnikov pushed a commit to branch IGNITE-7595
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/IGNITE-7595 by this push:
new 44e9fd3 update jekyll config file and build properties
44e9fd3 is described below
commit 44e9fd35364d908abb700a25d49b49d76320070c
Author: abudnikov <[email protected]>
AuthorDate: Tue Aug 25 12:37:45 2020 +0300
update jekyll config file and build properties
---
docs/_config.yml | 4 ++--
docs/_includes/left-nav.html | 2 +-
docs/_plugins/asciidoctor-extensions.rb | 3 +--
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/docs/_config.yml b/docs/_config.yml
index d08b2d4..ab400c5 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -3,7 +3,7 @@ attrs: &asciidoc_attributes
version: 2.9.0
base_url: /docs
stylesdir: /docs/assets/css
- imagesdir: /docs/{version}
+ imagesdir: /docs
source-highlighter: rouge
table-stripes: even
javadoc_base_url: https://ignite.apache.org/releases/{version}/javadoc
@@ -12,7 +12,7 @@ attrs: &asciidoc_attributes
githubUrl: https://github.com/apache/ignite/tree/master
collections:
docs:
- permalink: /docs/2.9.0/:path:output_ext
+ permalink: /docs/:path:output_ext
output: true
defaults:
-
diff --git a/docs/_includes/left-nav.html b/docs/_includes/left-nav.html
index 919636a..537878f 100644
--- a/docs/_includes/left-nav.html
+++ b/docs/_includes/left-nav.html
@@ -1,5 +1,5 @@
-{% assign prefix = site.attrs.base_url | append: "/" | append:
site.attrs.version %}
+{% 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'>
diff --git a/docs/_plugins/asciidoctor-extensions.rb
b/docs/_plugins/asciidoctor-extensions.rb
index a67f669..a3d75e0 100644
--- a/docs/_plugins/asciidoctor-extensions.rb
+++ b/docs/_plugins/asciidoctor-extensions.rb
@@ -105,10 +105,9 @@ Extensions.register do
# else
# base_url = parent.document.attributes['base_url'] + '/' +
parent.document.attributes['version']
# end
-
# print parent.document.attributes
- base_url = parent.document.attributes['base_url'] + '/' +
parent.document.attributes['version']
+ base_url = parent.document.attributes['base_url'] # + '/' +
parent.document.attributes['version']
if (text = attrs['text']).empty?
text = target