add weex-project.io website host by aliyun
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/b397774a Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/b397774a Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/b397774a Branch: refs/heads/0.16-dev Commit: b397774a8570c981c8a51c0eebb5ac8feb6e2591 Parents: 081b7a3 Author: tancy <ron...@gmail.com> Authored: Fri Jul 14 17:37:15 2017 +0800 Committer: tancy <ron...@gmail.com> Committed: Fri Jul 14 17:37:15 2017 +0800 ---------------------------------------------------------------------- doc/themes/weex/layout/_partial/footer.ejs | 2 +- doc/themes/weex/layout/_partial/post/summary.ejs | 6 ++++++ doc/themes/weex/layout/_partial/slider.ejs | 2 +- doc/themes/weex/source/css/partial/footer.scss | 1 + doc/themes/weex/source/css/partial/summary.scss | 6 ++++++ doc/themes/weex/source/js/common.js | 16 ++++++++++++++++ 6 files changed, 31 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b397774a/doc/themes/weex/layout/_partial/footer.ejs ---------------------------------------------------------------------- diff --git a/doc/themes/weex/layout/_partial/footer.ejs b/doc/themes/weex/layout/_partial/footer.ejs index 289cfb8..0cbe7b2 100644 --- a/doc/themes/weex/layout/_partial/footer.ejs +++ b/doc/themes/weex/layout/_partial/footer.ejs @@ -27,4 +27,4 @@ <div class="row clearfix"> <div></div> </div> -</footer> \ No newline at end of file +</footer> http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b397774a/doc/themes/weex/layout/_partial/post/summary.ejs ---------------------------------------------------------------------- diff --git a/doc/themes/weex/layout/_partial/post/summary.ejs b/doc/themes/weex/layout/_partial/post/summary.ejs index f6c6313..e81308d 100644 --- a/doc/themes/weex/layout/_partial/post/summary.ejs +++ b/doc/themes/weex/layout/_partial/post/summary.ejs @@ -1,5 +1,6 @@ <% var result = page.path.match(/(v-)(\d+(\.\d+))/) %> <% var version = result ? +result[2] : 2.1 %> + <div class="doc-nav-version"> <select class="versionBtn" stype="<%- url_for_lang(page.type) %>"> <% if (version == 2.1) { %> @@ -45,4 +46,9 @@ <% }) %> </ul> +</div> +<div class="hostbyaliyun"> + <a href="https://render.alipay.com/p/s/taobaonpm_click/weex_banner_click"> + <img src="https://render.alipay.com/p/s/taobaonpm_click/weex_banner" alt="" width="180px"> + </a> </div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b397774a/doc/themes/weex/layout/_partial/slider.ejs ---------------------------------------------------------------------- diff --git a/doc/themes/weex/layout/_partial/slider.ejs b/doc/themes/weex/layout/_partial/slider.ejs index f35c58f..6ddf55e 100644 --- a/doc/themes/weex/layout/_partial/slider.ejs +++ b/doc/themes/weex/layout/_partial/slider.ejs @@ -6,7 +6,7 @@ <h1 class="page-title"><%= _p('index.page_title') %></h1> <div class="btn-group"> <a href="<%= url_for_lang('guide/index.html') %>" class="button get-started"><%= _p('index.get_started') %></a> - <a href="https://github.com/apache/incubator-weex/" class="button get-started" target="_blank"><%= _p('menu.github') %></a> + <a href="<%= url_for_lang('guide/contributing.html') %>" class="button get-started"><%= _p('menu.invovled') %></a> </div> </div> </div> http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b397774a/doc/themes/weex/source/css/partial/footer.scss ---------------------------------------------------------------------- diff --git a/doc/themes/weex/source/css/partial/footer.scss b/doc/themes/weex/source/css/partial/footer.scss index 922eb0b..1bc4c69 100644 --- a/doc/themes/weex/source/css/partial/footer.scss +++ b/doc/themes/weex/source/css/partial/footer.scss @@ -71,3 +71,4 @@ margin-bottom: 10px; } } + http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b397774a/doc/themes/weex/source/css/partial/summary.scss ---------------------------------------------------------------------- diff --git a/doc/themes/weex/source/css/partial/summary.scss b/doc/themes/weex/source/css/partial/summary.scss index 1b78b55..d9d4609 100644 --- a/doc/themes/weex/source/css/partial/summary.scss +++ b/doc/themes/weex/source/css/partial/summary.scss @@ -45,4 +45,10 @@ .lang-en .summary h3.chapter-title{ font-weight: 600; +} + +.hostbyaliyun { + width: 180px; + z-index: 99; + display: none; } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b397774a/doc/themes/weex/source/js/common.js ---------------------------------------------------------------------- diff --git a/doc/themes/weex/source/js/common.js b/doc/themes/weex/source/js/common.js index d45df41..3e92ba4 100644 --- a/doc/themes/weex/source/js/common.js +++ b/doc/themes/weex/source/js/common.js @@ -273,6 +273,22 @@ } initSearch() + + + function hostbyaliyun(){ + if(location.hostname === "weex-project.io" || location.hostname === 'localhost'){ + var hosts = document.querySelectorAll('.hostbyaliyun'); + hosts.forEach(function (i) { + i.style.display = 'block' + }) + + } + } + + hostbyaliyun() + + + /* * LANDINGPAGE */