mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
edit ditto.js
This commit is contained in:
parent
974d9825bf
commit
c3f4ad4421
26
config.js
Normal file
26
config.js
Normal file
@ -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];
|
||||
});
|
||||
}
|
||||
|
22
index.html
22
index.html
@ -3,13 +3,6 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- jQuery -->
|
||||
<script src="js/jquery-1.11.0.min.js"></script>
|
||||
<script src="js/jquery-ui.min.js"></script>
|
||||
<script src="js/marked.js"></script>
|
||||
<script src="js/store.js"></script>
|
||||
<script src="js/ditto.js"></script>
|
||||
<script src="js/prism.js"></script>
|
||||
<link rel="stylesheet" href="app/bower_components/normalize-css/normalize.css">
|
||||
<link rel="stylesheet" href="css/app.css">
|
||||
<title>ECMAScript 6入门</title>
|
||||
@ -28,15 +21,14 @@
|
||||
<div id="flip"><div id="pageup">上一章</div><div id="pagedown">下一章</div></div>
|
||||
<div class="progress-indicator-2"></div>
|
||||
|
||||
<script src="js/jquery-1.11.0.min.js"></script>
|
||||
<script src="js/jquery-ui.min.js"></script>
|
||||
<script src="js/marked.js"></script>
|
||||
<script src="js/store.js"></script>
|
||||
<script src="js/ditto.js"></script>
|
||||
<script src="js/prism.js"></script>
|
||||
<script src="config.js"></script>
|
||||
<script>
|
||||
// essential settings
|
||||
ditto.index = "README.md";
|
||||
ditto.sidebar_file = "sidebar.md";
|
||||
ditto.document_title = "ECMAScript 6入门";
|
||||
// where the docs are actually stored on github - so you can edit
|
||||
ditto.base_url = "https://github.com/ruanyf/es6tutorial/edit/gh-pages"; // <------- EDIT ME!!
|
||||
|
||||
// run
|
||||
ditto.run();
|
||||
</script>
|
||||
<noscript>
|
||||
|
Loading…
x
Reference in New Issue
Block a user