Skip to content

Commit a643ad1

Browse files
committed
Custom cinder build
1 parent bed7fe2 commit a643ad1

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,34 @@
22

33
This hosts the documentation source and examples for [Bullet](https://github.com/yahoo/bullet-storm).
44

5+
The built documentation can be accessed [here](https://yahoo.github.io/bullet-docs).
6+
7+
## Building the documentation
8+
59
You need [mkdocs](http://www.mkdocs.org/#installation) installed to build the documentation.
610

11+
This also uses the mkdocs theme : [Cinder](http://sourcefoundry.org/cinder/).
12+
13+
Since Cinder has not been upgraded in a while, you will need to bring in changes in this [PR](https://github.com/chrissimpkins/cinder/pull/26) of Cinder found here: [twardoch/clinker-mktheme](https://github.com/twardoch/clinker-mktheme/tree/2016-12-22)
14+
15+
You will need Python installed.
16+
17+
```bash
18+
sudo pip install virtualenv
19+
virtualenv mkdocs
20+
source mkdocs/bin/activate
21+
pip install mkdocs-cinder
22+
pip install git+git://github.com/twardoch/clinker-mktheme.git@2016-12-22 --upgrade
23+
git clone git@github.com:yahoo/bullet-docs.git
24+
cd bullet-docs
25+
mkdocs build
26+
```
27+
## Building the examples
28+
729
You will need [Maven 3](https://maven.apache.org/install.html) and [JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html) installed to build the examples.
830

9-
The built documentation can be accessed [here](https://yahoo.github.io/bullet-docs). You can quickly jump into setting up a local Bullet instance by following the [Quick Start here](https://yahoo.github.io/bullet-docs#quick-start).
31+
```bash
32+
cd bullet-docs/examples/storm && mvn package
33+
```
1034

1135
Code licensed under the Apache 2 license. See LICENSE file for terms.

docs/css/extra.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@
1616
.admonition-title {
1717
font-weight: bold;
1818
}
19+
20+
.bs-sidebar .nav .nav > li > a {
21+
font-size: 100%;
22+
}
23+
24+
img {
25+
max-width: none;
26+
}

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ pages:
2727
markdown_extensions:
2828
- admonition
2929

30+
extra:
31+
collapse_toc: true
32+
3033
extra_css:
3134
- css/extra.css
3235

0 commit comments

Comments
 (0)