Skip to content

setting up hexo for docs #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
on:
branch: master
11 changes: 11 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Include/Exclude Files/Folders
include:
# Include any file and subfolder in 'source/_css/'.
- "_css/**/*"

exclude:
- "example/**/*.js"

# Do not use this to exclude posts or .md files in the 'source/_posts/'.
# Use skip_render for that. Or prepend an underscore to the filename.
# - "_posts/hello-world.md" # Does not work.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint index.js example lib",
"lint:fix": "eslint index.js example lib --fix"
"lint:fix": "eslint index.js example lib --fix",
"gen_docs": "./node_modules/hexo/bin/hexo generate"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,7 +40,9 @@
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0"
"eslint-plugin-standard": "^4.0.0",
"hexo": "^3.8.0",
"hexo-cli": "^1.1.0"
},
"eslintIgnore": [
"node_modules/"
Expand Down
Loading