Skip to content

Commit

Permalink
attempt to update blog
Browse files Browse the repository at this point in the history
  • Loading branch information
snowme34 committed Dec 31, 2019
1 parent 7bd7f1c commit cc85498
Show file tree
Hide file tree
Showing 9 changed files with 1,979 additions and 2,774 deletions.
33 changes: 25 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
dist: trusty
language: minimal
language: node_js
node_js:
- lts/*
cache: npm
branches:
except:
- legacy
- experimental
only:
- master # build master branch only
install:
- rm -rf ./node_modules
- nvm install node
- npm --version
## install cspell
- npm install cspell
- ./node_modules/.bin/cspell --version
## install markdownlint
# - npm install markdownlint-cli
# - ./node_modules/.bin/markdownlint --version
script:
## check link
- docker run -ti --rm -v $PWD:/mnt:ro dkhamsing/awesome_bot --allow-dupe --allow-redirect --skip-save-results --white-list $(paste -d, -s travis_link_check_whitelist.txt) `find . -not -path "**/node_modules/*" -not -path "./blog/themes/symphony/*" -not -path "./blog/scaffolds/*" -regex ".*\.\(md\|rst\)$"`
## check spell
- find . -not -path "**/node_modules/*" -not -path "./blog/themes/symphony/*" -not -path "./blog/scaffolds/*" -name "*.md" | grep -v -f travis_spell_check_whitelist.txt | xargs ./node_modules/.bin/cspell -c cSpell.json
# - ./node_modules/.bin/cspell docs/source/**/*.rst
# - ./node_modules/.bin/markdownlint docs\source
## markdown lint
# - ./node_modules/.bin/markdownlint docs\source
## build hexo if changed
- [ -z $(git diff --name-status HEAD~1...HEAD blog) ] && hexo --cwd blog generate
deploy:
provider: pages
edge: true
on:
condition: -z $(git diff --name-status HEAD~1...HEAD blog)
local_dir: blog/public
repo: snowme34/blog.snowme34.com
skip_cleanup: true
github_token: $GITHUB_TOKEN
fqdn: blog.snowme34.com
keep-history: true
12 changes: 6 additions & 6 deletions blog/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
224 changes: 119 additions & 105 deletions blog/_config.yml
Original file line number Diff line number Diff line change
@@ -1,105 +1,119 @@
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Blog | Snowme34
subtitle:
description: A blog of a developer
author: snowme34
language: "en"
timezone:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://blog.snowme34.com/
root: /
permalink: post/:title/
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date

# Category & Tag
default_category: notes
category_map:
tag_map:

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: MM/DD/YYYY
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: symphony

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repository: https://github.com/snowme34/blog.snowme34.com.git
branch: master
delete: false

## wait for update
# all_minifier: true

## https://github.com/CHENXCHEN/hexo-renderer-markdown-it-plus
markdown_it_plus:
highlight: true
html: true
xhtmlOut: true
breaks: false
langPrefix:
linkify: true
typographer:
quotes: “”‘’
pre_class: highlight
# plugins:
# - plugin:
# name: markdown-it-katex
# enable: true
# - plugin:
# name: markdown-it-mark
# enable: false
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Blog | Snowme34
subtitle:
keywords:
description: A blog of a developer
author: snowme34
language: "en"
timezone:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://blog.snowme34.com/
root: /
permalink: post/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date

# Category & Tag
default_category: notes
category_map:
tag_map:

# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: MM/DD/YYYY
time_format: HH:mm:ss
## Use post's date for updated date unless set in front-matter
use_date_for_updated: false

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: symphony

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: ''

# hexo-renderer-marked config
## https://github.com/hexojs/hexo-renderer-marked
marked:
gfm: true
pedantic: false
breaks: false
smartLists: true
smartypants: true
modifyAnchors: 0
autolink: true
sanitizeUrl: false
headerIds: true
prependRoot: false
external_link:
enable: false
exclude: []
nofollow: false

0 comments on commit cc85498

Please sign in to comment.