From 5d8880fdfae7de50d867eb9695b704f50ab77775 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 7 May 2014 19:38:27 -0700 Subject: move Grunt info from README into HTML docs Fixes #13470 --- docs/_includes/getting-started/grunt.html | 32 +++++++++++++++++++++++++++++++ docs/_includes/nav/getting-started.html | 8 ++++++++ 2 files changed, 40 insertions(+) create mode 100644 docs/_includes/getting-started/grunt.html (limited to 'docs/_includes') diff --git a/docs/_includes/getting-started/grunt.html b/docs/_includes/getting-started/grunt.html new file mode 100644 index 000000000..93fa44a70 --- /dev/null +++ b/docs/_includes/getting-started/grunt.html @@ -0,0 +1,32 @@ +
+

Compiling CSS and JavaScript

+ +

Bootstrap uses Grunt for its build system, with convenient methods for working with the framework. It's how we compile our code, run tests, and more.

+ +

Installing Grunt

+

To install Grunt, you must first download and install node.js (which includes npm). npm stands for node packaged modules and is a way to manage development dependencies through node.js.

+ + Then, from the command line: +
    +
  1. Install grunt-cli globally with npm install -g grunt-cli.
  2. +
  3. Navigate to the root /bootstrap/ directory, then run npm install. npm will look at the package.json file and automatically install the necessary local dependencies listed there.
  4. +
+ +

When completed, you'll be able to run the various Grunt commands provided from the command line.

+ +

Available Grunt commands

+

grunt dist (Just compile CSS and JavaScript)

+

Regenerates the /dist/ directory with compiled and minified CSS and JavaScript files. As a Bootstrap user, this is normally the command you want.

+ +

grunt watch (Watch)

+

Watches the Less source files and automatically recompiles them to CSS whenever you save a change.

+ +

grunt test (Run tests)

+

Runs JSHint and runs the QUnit tests headlessly in PhantomJS.

+ +

grunt (Build absolutely everything and run tests)

+

Compiles and minifies CSS and JavaScript, builds the documentation website, runs the HTML5 validator against the docs, regenerates the Customizer assets, and more. Usually only necessary if you're hacking on Bootstrap itself.

+ +

Troubleshooting

+

Should you encounter problems with installing dependencies or running Grunt commands, first delete the /node_modules/ directory generated by npm. Then, rerun npm install.

+
diff --git a/docs/_includes/nav/getting-started.html b/docs/_includes/nav/getting-started.html index 494a2950f..df94dc099 100644 --- a/docs/_includes/nav/getting-started.html +++ b/docs/_includes/nav/getting-started.html @@ -8,6 +8,14 @@
  • Source code
  • +
  • + Compiling CSS and JavaScript + +
  • Basic template
  • -- cgit v1.2.3 From 5f6304bd65e01320ca93f80445d978ca37f59a01 Mon Sep 17 00:00:00 2001 From: Quy Ton Date: Thu, 8 May 2014 07:20:25 -0700 Subject: Remove outdated rtl nav links --- docs/_includes/nav/css.html | 7 ------- 1 file changed, 7 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/nav/css.html b/docs/_includes/nav/css.html index f2b1b5420..5a8d86368 100644 --- a/docs/_includes/nav/css.html +++ b/docs/_includes/nav/css.html @@ -133,10 +133,3 @@
  • Rails install
  • -
  • - RTL version - -
  • -- cgit v1.2.3 From e9374c0609c9e63fd6033f684b18ff105e1756ae Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 9 May 2014 15:05:20 -0700 Subject: add role="tablist" to .nav-tabs in examples to improve accessibility Per https://github.com/paypal/bootstrap-accessibility-plugin#tab-panel Credit: https://github.com/paypal/bootstrap-accessibility-plugin --- docs/_includes/components/navs.html | 12 ++++++------ docs/_includes/js/scrollspy.html | 2 +- docs/_includes/js/tabs.html | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/components/navs.html b/docs/_includes/components/navs.html index 9cad335d0..d9c45fa2d 100644 --- a/docs/_includes/components/navs.html +++ b/docs/_includes/components/navs.html @@ -6,14 +6,14 @@

    Note the .nav-tabs class requires the .nav base class.

    {% highlight html %} -