From 298cb63f5c26aecb1ad88e914e2ad06dd25d52cb Mon Sep 17 00:00:00 2001 From: Demo Macro Date: Sat, 8 Dec 2018 22:43:04 +0800 Subject: [PATCH] Update for Netlify CMS --- .gitignore | 3 ++- .vuepress/config.js | 8 +++++++- README.md | 5 ++++- Second.md | 5 ----- admin/config.yml | 19 ------------------- admin/index.html | 19 ------------------- docs/README.md | 3 +++ 7 files changed, 16 insertions(+), 46 deletions(-) delete mode 100644 Second.md delete mode 100644 admin/config.yml delete mode 100644 admin/index.html diff --git a/.gitignore b/.gitignore index 76438e0..88cdbc8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.log -node_modules/ \ No newline at end of file +node_modules/ +public/ \ No newline at end of file diff --git a/.vuepress/config.js b/.vuepress/config.js index 6519796..9066e5d 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -1,6 +1,7 @@ module.exports = { title: 'VuePress-NetlifyCMS', description: 'A VuePress Site Deployed on Netlify.com by Demo Macro', + dest: 'public', themeConfig: { nav: [ @@ -10,10 +11,15 @@ module.exports = { items: [ { text: 'URLStack', link: 'https://abc.imst.xyz' }, ] - } + }, + { text: 'Admin', link: 'admin/index.html' } ], sidebar: 'auto', + sidebar: [ + ['/', 'Home'], + ['docs/', 'Documents'] + ], displayAllHeaders: true, // 默认值:false activeHeaderLinks: true, // 默认值:true diff --git a/README.md b/README.md index 41b7218..bf91994 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -## NetlifyPress +--- +title: NetlifyPress +--- +# NetlifyPress This is a book written in Gitbook and hosted with Netlify. diff --git a/Second.md b/Second.md deleted file mode 100644 index 5546c52..0000000 --- a/Second.md +++ /dev/null @@ -1,5 +0,0 @@ -# Hello,World! - -## Hello World! - -### Hello World! \ No newline at end of file diff --git a/admin/config.yml b/admin/config.yml deleted file mode 100644 index 175d021..0000000 --- a/admin/config.yml +++ /dev/null @@ -1,19 +0,0 @@ -backend: - name: git-gateway - branch: master # Branch to update (master by default) - -media_folder: "media" # Folder where user uploaded files should go - -# This line should *not* be indented -publish_mode: editorial_workflow - -collections: - - name: "Post" # Used in routes, e.g., /admin/collections/blog - label: "Post" # Used in the UI - folder: "/" # The path to the folder where the documents are stored - create: true # Allow users to create new documents in this collection - slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md - fields: # The fields for each document, usually in front matter - - {label: "Title", name: "title", widget: "string"} - - {label: "Publish Date", name: "date", widget: "datetime"} - - {label: "Body", name: "body", widget: "markdown"} \ No newline at end of file diff --git a/admin/index.html b/admin/index.html deleted file mode 100644 index a8e36ed..0000000 --- a/admin/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - NetlifyPress - - - - - - - - - - - - diff --git a/docs/README.md b/docs/README.md index 5546c52..14804f0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,6 @@ +--- +title: Hello,World! +--- # Hello,World! ## Hello World!