mirror of
https://github.com/jgthms/bulma.git
synced 2025-01-09 15:44:25 +00:00
fe1385327d
* Bring code-example as readable HTML In all other documentation -> column documents there is the source code clearly written, so I missed it in the nested documentation and brought it in. Please verify and thanks for merge 👍 * Added Output of nested_example itself 👍 👍 👍 jgthms for your fast comment! No I can go to bed and sleep well :o) 🌜 |
||
---|---|---|
.. | ||
_data | ||
_includes | ||
_javascript | ||
_layouts | ||
_posts | ||
_sass | ||
css | ||
documentation | ||
favicons | ||
images | ||
lib | ||
scripts | ||
vendor | ||
_config.yml | ||
.babelrc | ||
.gitignore | ||
alternative-to-bootstrap.html | ||
atom.xml | ||
backers.html | ||
blog.html | ||
bulma-docs.sass | ||
bulma-start.html | ||
CNAME | ||
docker-compose.yml | ||
documentation.html | ||
expo.html | ||
extensions.html | ||
index.html | ||
LICENSE | ||
love.html | ||
made-with-bulma.html | ||
more.html | ||
package.json | ||
README.md | ||
templates.html | ||
thank-you.html | ||
tiles.html | ||
videos.html | ||
yarn.lock |
Building the documentation
The documentation HTML is produced with the Ruby-based jekyll
tool.
- Make sure Ruby 2.x is installed.
gem install jekyll
ifjekyll
is not already installed.
Note
: If you are an
Ubuntu user
, make sure ruby2.x-dev is installed.
Viewing the documentation locally
To view the documentation on your system locally:
Setup
cd
intodocs/
directory- Copy the config file,
cp _config.yml _config.local.yml
- Edit
_config.local.yml
and change theurl:
value tohttp://localhost:4000
. This local config file will be ignored by git.
Run Jekyll
- In a separate shell session,
cd
to thedocs/
directory, and do:
jekyll serve --incremental --config _config.local.yml
This will start an HTTP server at http://localhost:4000/
that serves the docs built in the _site
directory; and anytime the docs are rebuilt by you, it will serve the docs site on the fly. In your main shell session where you develop, if you change anything in docs/
the jekyll server will rebuild those on the fly. But if you change anything about the Bulma SASS or CSS, you need to do npm run start-docs
to build the docs' CSS before you will see it in the browser. The process running jekyll serve
will pick up the new CSS automatically.