Design Guide is an application used by OpenStax as a living style guide document for our book templates.
You will need the following properly installed on your computer.
- Git
- Node.js (with NPM)
- Python 2.7 or above
git clone <repository-url>
this repository- change into the new directory
- run
./script/setup
to install all the dependencies - run
source ./scripts/venv/bin/activate && style-guide-codmark --help
to see help options
- Running
style-guide-codmark
will generate json files based onconfig.yml
inscripts/
- Open
scripts/test/cod_documentation/style-guide.scss
- You will see Cod style comments and
@Markup
tags
/**
@Section
Getting Started
=========
Lorem ipsum dolor sit amet, est ex dolore assueverit, nisl esse eum ad, nec sint assum ea.
Vidit soleat no mea. Iusto tation mediocrem mea id, te forensibus appellantur eos, liber
essent vituperatoribus ei pri. Nam offendit inciderint delicatissimi at, eum ne graeci
inimicus. Eu nec error numquam probatus, nisl aeterno persecuti cu eum, magna nonumes
dignissim est te.
That's all, folks.
@Markup
@Type highlighted
@Source blockquote-raw.html
@Markup
@Type highlighted
@Source blockquote-cooked.html
@Markup
@Type styled
@Source blockquote-cooked.html
@Number '1.0.0'
@Id #section-100
*/
- Copy/paste this code block or edit it as needed. All Cod documentation goes inside of comments structured like above.
git clone <repository-url>
this repository (if not done in Backend Installation above)- run
./script/setup
(if not done in Backend Installation above) - run
./script/start
- This opens http://localhost:8000 in your browser.
To build the production files run ./script/build
or ./script/build --production
(production)