Skip to content

Commit

Permalink
Merge pull request #28 from windyakin/docs_dir
Browse files Browse the repository at this point in the history
プロダクトページの管理を gh-pages:/ から master:docs/ に変更する
  • Loading branch information
windyakin committed Nov 19, 2016
2 parents af7a6c9 + 6477775 commit 424cbe5
Show file tree
Hide file tree
Showing 22 changed files with 11,160 additions and 16 deletions.
38 changes: 23 additions & 15 deletions Gruntfile.js
Expand Up @@ -81,9 +81,9 @@ module.exports = function(grunt) {
},
files: [{
expand: true,
cwd: 'src/scss',
cwd: 'docs/assets/scss',
src: ['**/*.scss'],
dest: 'dist/assets/css/',
dest: 'docs/assets/css/',
ext: '.css'
}]
}
Expand All @@ -99,9 +99,9 @@ module.exports = function(grunt) {
},
assets: {
expand: true,
cwd: 'dist/assets/css/',
cwd: 'docs/assets/css/',
src: ['**/*.css'],
dest: 'dist/assets/css',
dest: 'docs/assets/css',
ext: '.css'
}
},
Expand All @@ -113,9 +113,9 @@ module.exports = function(grunt) {
},
assets: {
expand: true,
cwd: 'dist/assets/css/',
cwd: 'docs/assets/css/',
src: ['**/*.css'],
dest: 'dist/assets/css',
dest: 'docs/assets/css',
ext: '.css'
}
},
Expand All @@ -128,7 +128,7 @@ module.exports = function(grunt) {
colorizeOutput: true
},
bootstrap: ['scss/**/*.scss'],
assets: ['src/scss/**/*.scss']
assets: ['docs/assets/scss/**/*.scss']
},
// clean
clean: {
Expand All @@ -151,8 +151,16 @@ module.exports = function(grunt) {
watch: {
// 自動コンパイル
bootstrap: {
files: ['scss/**/*.scss', 'src/scss/**/*.scss'],
tasks: ['scsslint', 'css']
files: ['scss/**/*.scss', 'docs/assets/scss/**/*.scss'],
tasks: ['scsslint', 'css', 'csscomb', 'copy:docs']
}
},
copy: {
docs: {
expand: true,
cwd: 'dist/',
src: ['{css,fonts,js}/**/*'],
dest: 'docs/'
}
},
// テストサーバ
Expand All @@ -161,7 +169,7 @@ module.exports = function(grunt) {
options: {
port: 8000,
hostname: '*',
base: 'dist'
base: 'docs'
}
}
},
Expand Down Expand Up @@ -195,7 +203,7 @@ module.exports = function(grunt) {
{
// Sample html
expand: true,
cwd: "dist/",
cwd: "docs/",
src: ["bootstrap.html"],
dest: name
},
Expand Down Expand Up @@ -240,16 +248,16 @@ module.exports = function(grunt) {
grunt.registerTask('test', ['scsslint']);

// CSSビルド
grunt.registerTask('css', ['sass', 'autoprefixer']);
grunt.registerTask('css', ['sass', 'autoprefixer', 'csscomb']);

// 最適化
grunt.registerTask('optimize', ['csscomb', 'cssmin:minify']);
grunt.registerTask('optimize', ['cssmin:minify']);

// 開発用
grunt.registerTask('server', ['bower:install', 'getTwbsConfig', 'test', 'css', 'connect', 'watch']);
grunt.registerTask('server', ['bower:install', 'getTwbsConfig', 'test', 'css', 'copy:docs', 'connect', 'watch']);

// ビルドタスク
grunt.registerTask('build', ['clean:build', 'bower:install', 'getTwbsConfig', 'test', 'css', 'optimize', 'replace:banner']);
grunt.registerTask('build', ['clean:build', 'bower:install', 'getTwbsConfig', 'test', 'css', 'optimize', 'replace:banner', 'copy:docs']);

// 配布用パッケージ作成
grunt.registerTask('package', ['build', 'compress:main']);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -7,7 +7,7 @@

[http://honokak.osaka/](http://honokak.osaka/)

[![Honoka](dist/assets/img/sample.png)](http://honokak.osaka/)
[![Honoka](docs/assets/img/sample.png)](http://honokak.osaka/)

"Honoka" は日本語も美しく表示できるBootstrapテーマです。

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 424cbe5

Please sign in to comment.