From c3f4ad4421d2ee1b44a581c54845162eb815fd18 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Mon, 14 Dec 2015 21:43:59 +0800 Subject: [PATCH] edit ditto.js --- config.js | 26 ++++++++++++++++++++++++++ index.html | 34 +++++++++++++--------------------- 2 files changed, 39 insertions(+), 21 deletions(-) create mode 100644 config.js diff --git a/config.js b/config.js new file mode 100644 index 0000000..2ea5eb0 --- /dev/null +++ b/config.js @@ -0,0 +1,26 @@ +var CONFIG = { + // your website's title + document_title: "ECMAScript 6入门", + + // index page + index: "README.md", + + // sidebar file + sidebar_file: "sidebar.md", + + // where the docs are actually stored on github - so you can edit + base_url: "https://github.com/ruanyf/es6tutorial/edit/gh-pages", +}; + +// ************************** +// DON'T EDIT FOLLOWING CODES +// ************************** + +addConfig(ditto, CONFIG); + +function addConfig(obj, conf) { + Object.keys(conf).forEach(function (key) { + obj[key] = conf[key]; + }); +} + diff --git a/index.html b/index.html index f0cf411..a354ff3 100644 --- a/index.html +++ b/index.html @@ -3,13 +3,6 @@ - - - - - - - ECMAScript 6入门 @@ -18,8 +11,8 @@ - -
+ +
back to top
edit
@@ -28,21 +21,20 @@
上一章
下一章
+ + + + + + +