Skip to content

Commit 7367e42

Browse files
minor buil imporevements (zalando#260)
1 parent b91db70 commit 7367e42

File tree

3 files changed

+18
-27
lines changed

3 files changed

+18
-27
lines changed

BUILD.adoc

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,22 @@
88
** `gem install coderay pygments.rb`
99
** `gem install --pre asciidoctor-epub3`
1010

11+
== Run `./build.sh` to build HTML site, PDF and EPUB3 locally
12+
1113
== Generate Custom CSS
1214

13-
1. http://asciidoctor.org/docs/user-manual/#stylesheet-factory[Clone and install]
14-
dependencies for the `asciidoctor-stylesheet-factory`
15-
16-
1. Copy Zalando SASS file to the stylesheet factory's directory
17-
[source,bash]
18-
----
19-
cp -r sass/* ${asciidoctor-stylesheet-factory}/sass
20-
----
21-
22-
1. Generate CSS
23-
[source,bash]
24-
----
25-
//TODO
26-
----
27-
28-
1. Copy generated CSS to project's root directory
29-
[source,bash]
30-
----
31-
cp ${asciidoctor-stylesheet-factory}/stylesheets/zalando.css ${guidelines-repository}/zalando.css
32-
----
33-
34-
== Build HTML site, PDF and EPUB3 locally
35-
[source,bash]
36-
----
37-
./build.sh
38-
----
15+
. http://asciidoctor.org/docs/user-manual/#stylesheet-factory[Clone and install]
16+
dependencies of the `asciidoctor-stylesheet-factory`
17+
18+
.. `git clone [email protected]:asciidoctor/asciidoctor-stylesheet-factory.git`
19+
.. `cd ${asciidoctor-stylesheet-factory} && bundle install`
20+
21+
. Copy Zalando SASS files to the stylesheet factory's directory
22+
`cp -r ${guidelines-repository}/sass/* ${asciidoctor-stylesheet-factory}/sass`
23+
24+
. Generate CSS
25+
`cd ${asciidoctor-stylesheet-factory} && compass compile`
26+
27+
. Copy generated CSS file
28+
`cp ${asciidoctor-stylesheet-factory}/stylesheets/zalando.css ${guidelines-repository}/zalando.css`
29+

index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:stylesheet: assets/zalando.css
1+
:stylesheet: zalando.css
22
:toc: left
33
:toclevels: 2
44
:leveloffset: +1
File renamed without changes.

0 commit comments

Comments
 (0)