From beda66c8dae64aec2592bc41341404d6baf87214 Mon Sep 17 00:00:00 2001 From: Turing Zhu Date: Thu, 16 May 2019 12:18:38 +0800 Subject: [PATCH] [feature] add link to source code location, mdbook using localStorage instead of store.js, so remove theme/index.hbs --- README.md | 6 +- theme/index.hbs | 240 ------------------------------------------------ 2 files changed, 4 insertions(+), 242 deletions(-) delete mode 100644 theme/index.hbs diff --git a/README.md b/README.md index 876eb58..38dd95e 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,14 @@ PS: -* 对照源码位置:https://github.com/rust-lang/book/tree/master/src +* 对照源码位置:[https://github.com/rust-lang/book/tree/master/src][source] * 每章翻译开头都带有官方链接和 commit hash,若发现与官方不一致,欢迎 Issue 或 PR :) +[source]: https://github.com/rust-lang/book/tree/master/src + ## 静态页面构建与文档撰写 -![image](/vuepress_page.png) +![image](./vuepress_page.png) ### 构建 diff --git a/theme/index.hbs b/theme/index.hbs deleted file mode 100644 index 3572417..0000000 --- a/theme/index.hbs +++ /dev/null @@ -1,240 +0,0 @@ - - - - - {{ chapter_title }} - {{ title }} - - - - - - - - - - - - - - - - - - - - - {{#each additional_css}} - - {{/each}} - - - - {{#if mathjax_support}} - - - {{/if}} - - - - - - - - - - - - - - {{#each additional_js}} - - {{/each}} - - - - - - - - - - - -
- -
- {{!--

You are reading a draft of the next edition of TRPL. For more, go here.

--}} -
- - -
- {{{ content }}} -
- - - {{#previous}} - - {{/previous}} - - {{#next}} - - {{/next}} - -
- - {{#previous}} - - {{/previous}} - - {{#next}} - - {{/next}} - -
- - - - - - - {{{livereload}}} - - {{#if google_analytics}} - - {{/if}} - - {{#if playpens_editable}} - - - - - - {{/if}} - - {{#if is_print}} - - {{/if}} - - - - - \ No newline at end of file