Skip to content

Commit

Permalink
增加中文站部署配置
Browse files Browse the repository at this point in the history
  • Loading branch information
diguage committed Dec 13, 2016
1 parent 6a8a4bd commit e44c7b3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Bundler configuration file [http://gembundler.com]
# Read the rationale for it and how it works at http://gembundler.com/v1.3/rationale.html

source 'https://rubygems.org'
# source 'https://rubygems.org'
source 'https://gems.ruby-china.org'

gem 'awestruct', '0.5.7'
#gem 'awestruct', github: 'awestruct/awestruct', branch: 'master'
Expand All @@ -22,6 +23,8 @@ gem 'rake', '10.5.0', :group => :test
gem 'rdoc', '4.2.2', :group => :test
gem 'tomdoc', '0.2.5', :group => :test
gem 'html-proofer', '3.0.2', :group => :test
gem 'htmlcompressor', '~> 0.3.1'
gem 'uglifier', '~> 3.0', '>= 3.0.4'

# required to use the minify extension
#gem 'uglifier', '2.7.2'
Expand Down
17 changes: 17 additions & 0 deletions _config/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,20 @@ profiles:
deploy:
host: github_pages
branch: gh-pages
zh_prod:
base_url: http://asciidoctor.cn
disqus_developer: false
# long-hand form for Asciidoctor
google_analytics_account: UA-38215684-1
google_analytics:
account: UA-38215684-1
scss:
:line_numbers: false
:style: :compressed
#compass_output_style: compressed
# TODO enable minify once we verify it's working as expected
#minify: true
deploy:
host: asciidoctor.cn
username: deployer
path: /home/deployer/asciidoctor.cn/html

0 comments on commit e44c7b3

Please sign in to comment.