Skip to content

Commit

Permalink
Set up docs deployment to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Jan 22, 2021
1 parent 713073e commit 3c8bba0
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ node_modules/

# Generated files
.tmp
/styleguide
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.*
/docs
/src/js/tests
/src/styleguide
/src/less/homepage.md
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function (grunt) {
dist: 'dist',
grunt: 'grunt',
src: 'src',
styleguide: 'styleguide',
styleguide: 'docs',
temp: '.tmp',
},

Expand Down
Empty file added docs/.nojekyll
Empty file.
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.bootstrap-ui.com
2 changes: 1 addition & 1 deletion grunt/browserSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
},
options: {
server: {
baseDir: './styleguide/',
baseDir: '<%= paths.styleguide %>',
},
browser: '<%= devBrowser %>',
watchTask: true,
Expand Down
6 changes: 5 additions & 1 deletion grunt/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ module.exports = {

temp: '<%= paths.temp %>',
dist: '<%= paths.dist %>',
styleguide: '<%= paths.styleguide %>',
styleguide: [
'<%= paths.styleguide %>/*',
'!<%= paths.styleguide %>/.nojekyll',
'!<%= paths.styleguide %>/CNAME',
],

};
2 changes: 1 addition & 1 deletion grunt/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
},
{
expand: true,
cwd: '<%= paths.src %>/styleguide/kss-assets/js/',
cwd: '<%= paths.src %>/docs/kss-assets/js/',
src: ['*'],
dest: '<%= paths.styleguide %>/kss-assets/js/',
},
Expand Down
9 changes: 3 additions & 6 deletions grunt/kss.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
module.exports = {

options: {
builder: '<%= paths.temp %>/styleguide/',
builder: '<%= paths.temp %>/docs/',
},
dist: {
files: [
{
styleguide: '<%= paths.src %>/less/',
},
],
src: ['<%= paths.src %>/less/'],
dest: '<%= paths.styleguide %>',
},

};
4 changes: 2 additions & 2 deletions grunt/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module.exports = {
strictUnits: true,
},
files: {
'<%= paths.temp %>/styleguide/kss.css':
'<%= paths.src %>/styleguide/kss-assets/less/kss.less',
'<%= paths.temp %>/docs/kss.css':
'<%= paths.src %>/docs/kss-assets/less/kss.less',
},
},

Expand Down
2 changes: 1 addition & 1 deletion grunt/postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
}),
],
},
src: '<%= paths.temp %>/styleguide/kss.css',
src: '<%= paths.temp %>/docs/kss.css',
dest: '<%= paths.styleguide %>/kss-assets/css/kss.min.css',
},

Expand Down
4 changes: 2 additions & 2 deletions grunt/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module.exports = {

styleguide: {
src: '<%= paths.src %>/styleguide/index.hbs',
dest: '<%= paths.temp %>/styleguide/index.hbs',
src: '<%= paths.src %>/docs/index.hbs',
dest: '<%= paths.temp %>/docs/index.hbs',
replacements: [
{
from: '%VERSION%',
Expand Down
2 changes: 1 addition & 1 deletion grunt/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
styleguide: {
files: [
'<%= paths.src %>/less/homepage.md',
'<%= paths.src %>/styleguide/**/*',
'<%= paths.src %>/docs/**/*',
],
tasks: [
'build-styleguide',
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"style": "dist/css/bootstrap-ui.css",
"less": "src/less/bootstrap-ui.less",
"scripts": {
"serve": "grunt serve",
"build": "grunt build",
"dist": "grunt dist",
"test": "grunt test"
},
"devDependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3c8bba0

Please sign in to comment.