blob: b32647d59b883bcf11aa3da88224e33472220c7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
= Default Stylesheet Build
This directory contains the source and build for the default stylesheet used by the built-in HTML converter.
== Overview
The stylesheet is written in plain CSS.
The build minifies the stylesheet using PostCSS + cssnano and writes it to the data/stylesheets directory.
== Usage
To regenerate the default stylesheet, first install the npm packages using the `npm` command:
$ npm i
Next, run the npm script named `build`:
$ npm run build
If there are any changes to the [.path]_data/stylesheets/asciidoctor-default.css_ file, commit this file.
To validate the syntax of the CSS source, run the npm script named `lint`:
$ npm run lint
|