add old doc example links
diff --git a/_jade/en/index.jade b/_jade/en/index.jade
index c17c0b9..cdb651d 100644
--- a/_jade/en/index.jade
+++ b/_jade/en/index.jade
@@ -20,10 +20,10 @@
.home-brand Apache ECharts
.home-subtitle An Open Source JavaScript Visualiztion Library
.home-btn-panel
- a.btn.btn-main.btn-index-home(href='./tutorial.html#5%20分钟上手%20ECharts')
+ a.btn.btn-main.btn-index-home(href='#{host}/tutorial.html#5%20分钟上手%20ECharts')
include ../components/svg/index-learn
span Get Started
- a.btn.btn-main.btn-index-home(href='#{hostParam}/examples/zh/index.html')
+ a.btn.btn-main.btn-index-home(href='#{host}/examples/zh/index.html')
include ../components/svg/index-example
span Demo
a.btn.btn-main.btn-index-home.btn-index-github(href='https://github.com/apache/incubator-echarts', target='_blank')
@@ -36,7 +36,7 @@
.index-features
h2.reveal Features
hr.reveal
- a.more.reveal(href='#') View More
+ a.more.reveal(href='#{host}/feature.html') View More
.row
.col-md-6
.index-feature#index-feature-1
diff --git a/_jade/layouts/doc.jade b/_jade/layouts/doc.jade
index 737e0c2..93a2fcc 100644
--- a/_jade/layouts/doc.jade
+++ b/_jade/layouts/doc.jade
@@ -23,6 +23,16 @@
#ec-doc-main
+ #v4-link.alert.alert-info.alert-dismissible
+ if ecWWWLang == 'en'
+ a(href="#{host}/v4/option.html") V4 Documentation
+ else
+ a(href="#{host}/v4/option.html") 旧版本文档
+
+ button.close(type="button", data-dismiss="alert", aria-label="Close")
+ span(aria-hidden="true") ×
+
+
block extra_js
script(src="#{cdnThirdParty.vueJS}")
script(src="#{cdnThirdParty.elementUIJS}")
diff --git a/_jade/layouts/example.jade b/_jade/layouts/example.jade
index 59bf03d..a42c1ee 100644
--- a/_jade/layouts/example.jade
+++ b/_jade/layouts/example.jade
@@ -23,6 +23,16 @@
#ec-example-main
+ #v4-link.alert.alert-info.alert-dismissible
+ if ecWWWLang == 'en'
+ a(href="#{host}/v4/examples/") V4 Examples
+ else
+ a(href="#{host}/v4/examples/") 旧版本示例
+
+ button.close(type="button", data-dismiss="alert", aria-label="Close")
+ span(aria-hidden="true") ×
+
+
block extra_js
script(src="#{cdnThirdParty.vueJS}")
script(src="#{cdnThirdParty.elementUIJS}")
diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade
index 7fa31b7..853e7e8 100644
--- a/_jade/zh/index.jade
+++ b/_jade/zh/index.jade
@@ -19,10 +19,10 @@
.home-brand Apache ECharts
.home-subtitle 一个基于 JavaScript 的开源可视化图表库
.home-btn-panel
- a.btn.btn-main.btn-index-home(href='./tutorial.html#5%20分钟上手%20ECharts')
+ a.btn.btn-main.btn-index-home(href='#{host}/tutorial.html#5%20分钟上手%20ECharts')
include ../components/svg/index-learn
span 快速入门
- a.btn.btn-main.btn-index-home(href='#{hostParam}/examples/zh/index.html')
+ a.btn.btn-main.btn-index-home(href='#{host}/examples/zh/index.html')
include ../components/svg/index-example
span 所有示例
a.btn.btn-main.btn-index-home.btn-index-github(href='https://github.com/apache/incubator-echarts', target='_blank')
@@ -44,7 +44,7 @@
.index-features
h2.reveal 特性
hr.reveal
- a.more.reveal(href='#') 查看完整特性
+ a.more.reveal(href='#{host}/feature.html') 查看完整特性
.row
.col-md-6
.index-feature#index-feature-1
diff --git a/_scss/main.scss b/_scss/main.scss
index 2647a2e..8e14125 100644
--- a/_scss/main.scss
+++ b/_scss/main.scss
@@ -72,6 +72,17 @@
}
}
+#v4-link {
+ position: fixed;
+ bottom: 0;
+ left: 50%;
+ width: 200px;
+ margin-left: -100px;
+ text-align: center;
+ z-index: 1000;
+ padding: 5px 30px;
+}
+
// settings contains declaration of variables only
@import 'settings.colors';