mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-25 11:04:09 +03:00
converted docs.css to a less file so we can use our variables
This commit is contained in:
parent
23cf7c6057
commit
cc5ce04ce5
|
@ -225,8 +225,13 @@ By contributing to the documentation, you agree to license your contribution und
|
||||||
```bash
|
```bash
|
||||||
$ git checkout master
|
$ git checkout master
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1. Bundle install (if not already done)
|
||||||
|
```bash
|
||||||
|
$ bundle install
|
||||||
|
```
|
||||||
|
|
||||||
2. Checkout the `gh-pages` branch in `_gh_pages` directory
|
1. Checkout the `gh-pages` branch in `_gh_pages` directory
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone git@github.com:FezVrasta/bootstrap-material-design.git -b gh-pages _gh_pages
|
$ git clone git@github.com:FezVrasta/bootstrap-material-design.git -b gh-pages _gh_pages
|
||||||
|
@ -236,14 +241,21 @@ By contributing to the documentation, you agree to license your contribution und
|
||||||
|
|
||||||
The `_gh_pages` directory is already in `.gitignore` so we are just fine.
|
The `_gh_pages` directory is already in `.gitignore` so we are just fine.
|
||||||
|
|
||||||
3. Let's test changes to the documentation:
|
1. Copy the latest code to the `docs/dist` (if not already done)
|
||||||
|
```bash
|
||||||
|
$ grunt docs
|
||||||
|
```
|
||||||
|
|
||||||
|
1. Let's test changes to the documentation:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ jekyll serve
|
$ jekyll serve
|
||||||
```
|
```
|
||||||
4. Browse to [http://127.0.0.1:9001/](http://127.0.0.1:9001/)
|
1. Browse to [http://127.0.0.1:9001/](http://127.0.0.1:9001/)
|
||||||
|
|
||||||
5. Push the newly generated site on github:
|
1. Make some changes to files in the `docs` directory and review them
|
||||||
|
|
||||||
|
1. Commit and push the newly generated site on github:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd _gh_pages
|
$ cd _gh_pages
|
||||||
|
|
14
Gruntfile.js
14
Gruntfile.js
|
@ -258,6 +258,18 @@ module.exports = function (grunt) {
|
||||||
files: {
|
files: {
|
||||||
"dist/css/ripples.css": "less/ripples.less",
|
"dist/css/ripples.css": "less/ripples.less",
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
options: {
|
||||||
|
paths: ["less"],
|
||||||
|
sourceMap: true,
|
||||||
|
sourceMapRootpath: "/",
|
||||||
|
sourceMapFilename: "docs/assets/css/src/docs.css.map",
|
||||||
|
sourceMapURL: "docs.css.map"
|
||||||
|
},
|
||||||
|
files: {
|
||||||
|
"docs/assets/css/src/docs.css": "docs/assets/css/src/docs.less",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -657,7 +669,7 @@ module.exports = function (grunt) {
|
||||||
|
|
||||||
// Docs task.
|
// Docs task.
|
||||||
grunt.registerTask('build-icons-data', function () { generateIconsData.call(this, grunt); });
|
grunt.registerTask('build-icons-data', function () { generateIconsData.call(this, grunt); });
|
||||||
grunt.registerTask('docs-css', ['autoprefixer:docs', 'autoprefixer:examples', 'cssmin:docs']);
|
grunt.registerTask('docs-css', ['less:docs','autoprefixer:docs', 'autoprefixer:examples', 'cssmin:docs']);
|
||||||
grunt.registerTask('lint-docs-css', ['csslint:docs', 'csslint:examples']);
|
grunt.registerTask('lint-docs-css', ['csslint:docs', 'csslint:examples']);
|
||||||
grunt.registerTask('docs-js', ['uglify:docsJs', 'uglify:customize']);
|
grunt.registerTask('docs-js', ['uglify:docsJs', 'uglify:customize']);
|
||||||
grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']);
|
grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
baseurl: "/bootstrap-material-design"
|
#baseurl: "/bootstrap-material-design"
|
||||||
url: "http://fezvrasta.github.io"
|
#url: "http://fezvrasta.github.io"
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- .nojekyll
|
- .nojekyll
|
||||||
|
|
11
docs/assets/css/docs.min.css
vendored
11
docs/assets/css/docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1746
docs/assets/css/src/docs.less
Normal file
1746
docs/assets/css/src/docs.less
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user