Project Bootstrap use many tools (tools) such as SASS, Jekyll, NPM, Bundler, etc.
- Install Git
$ sudo apt-get install git
- Install Ruby
$ sudo apt-get install ruby-full
- Install NodeJS
$ sudo apt-get install nodejs
- Install SASS
sudo gem install sass
- Install Bundler
sudo gem install bundler
$ git clone --depth 1 https://github.com/twbs/bootstrap.git
$ cd bootstrap
$ sudo bundle install
$ npm install
$ npm run docs-serve
or
$ bundle exec jekyll serve
When the server is fully loaded, usually it will run on the http://localhost:9001
url, however you should review the message from the terminal to be sure about the correct url.
Follow all previous steps to prepare the environment.
Open the file _config.yml
located on the root of the Bootstrap folder, and change the baseurl
parameter with the final url to use on the local server, Eg: http://localhost/doc/bs4
$ npm run docs-compile
This command will compile all files from markdown to HTML.
The result of his output can be viewed in the directory _gh_pages
.
Copy all HTML compiled files to final folder in local server, Eg: /var/www/html/doc/bs4.
Now you can access to static Bootstrap Docs from http://localhost/doc/bs4.