sci.pe documentation website
Note: this module is auto published to npm on CircleCI. Only run npm version patch|minor|major
and let CI do the rest.
Use prettier --single-quote
(or npm run format
) and:
const
overlet
orvar
whenever possible
disabled
: all controls (delete icon, input etc.) visible but disabledreadOnly
: do not render any controls
Be sure that the dependencies mentioned in link.sh
are installed and up to date, then:
npm install
./link.sh
npm run watch
- Be sure that app-suite is running on
http://127.0.0.1:3000
- Load the
documentation
story data (create-story -r --prod
) - Warmup (
librarian warmup
) - Run the documentation dev server (
npm run watch
) and be sure thatNODE_ENV
is not set toproduction
- Visit http://127.0.0.1:3335/get-started/quick-start
For typography, use the default styles defined in @scipe/ui/stylesheets/typograpy.css
.
For layout, a number of classes have been defined in the documentation's shared css found in documentation.css
The .sa__
and .documentation__
mixin classes may be accessed via a BemTags mixin:
const bem = new BemTags('@sa', '@documentation');
In most cases the html tags can be mapped to classes as follows:
tag name | sa class name | bemTag |
---|---|---|
p, span (body text) | .sa__default-ui-type | bem('@__default-ui-type') |
p, span (big body text) | .sa__default-ui-type--big | bem('@__default-ui-type--big') |
h1 | .sa__default-ui-type--display-1 | bem('@__default-ui-type--display-1') |
h2 | .sa__default-ui-type--headline | bem('@__default-ui-type--headline') |
h3 | .sa__default-ui-type--subhead-1 | bem('@__default-ui-type--subhead-1') |
h4 | .sa__default-ui-type--subhead-2 | bem('@__default-ui-type--subhead-2') |
tag name | documentation class name | bemTag |
---|---|---|
header | .documentation__header | bem('@__header') |
article | .documentation__article | bem('@__article') |
section | .documentation__section | bem('@__section') |
section > section | .documentation__sub-section | bem('@__sub-section') |
ul, ol | .documentation__list | bem('@__list') |
table | .documentation__table | bem('@__table') |
tr | .documentation__table-row | bem('@__table-row') |
td | .documentation__table-cell | bem('@__table-cell') |
th | .documentation__table-cell--header | bem('@__table-cell--header') |
caption | .documentation__table-caption | bem('@__table-caption') |
@scipe/documentation
is dual-licensed under commercial and open source licenses
(AGPLv3) based on the intended
use case. Contact us to learn which license applies to your use case.