This is the branch you'll see on documentations sites sn.cf/socledesign
yarn 1.15.2(follow instructions from Yarn or NPM officials to install last versions on Debian/Ubuntu systems
How to build
First steps, install dependencies, go inside bootstrap-sncf directory, then :
yarn installto install Node.js dependencies.
- Documentation building only Run through the tooling setup to install Jekyll (the site builder) and other Ruby dependencies with
To compile Bootstrap-SNCF you will have to :
- Decide which version you need (intern or extern, cf. SNCF Digital resources)
yarn run build-internor
yarn run dist-internor
yarn run dist-externto generate
dist/folder with minified css & js, and assets (icons & fonts).
Running documentation locally
Documentation search is powered by Algolia's DocSearch.
- From the root
yarn run docs-serve-internor
yarn run docs-serve-externin the command line after building the version you want
http://localhost:9001in your browser, and voilà. Modifications in
templatefolder will force regenerating.
Learn more about using Jekyll by reading its documentation.
npm install @sncf/bootstrap-sncf.metier or
npm install @sncf/bootstrap-sncf.communication depending on the purpose of your project.
yarn run icofont