Skip to content

Commit 001816f

Browse files
authored
Merge pull request #90 from InnerSourceCommons/add-mdbook
add mdBook
2 parents bf8e63f + 6477e32 commit 001816f

File tree

8 files changed

+1727
-0
lines changed

8 files changed

+1727
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# We want to ignore our vale StylesPath
22
.github/vale/*
33
gqm*[pngmd]
4+
book

MDBOOK.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# mdBook
2+
3+
Details about our mdBook setup.
4+
5+
## Installation
6+
7+
To install cargo, run the following command:
8+
9+
```bash
10+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
11+
```
12+
13+
To install mdBook, run the following command:
14+
15+
```bash
16+
cargo install mdbook
17+
```
18+
19+
## Usage
20+
21+
To build the book, run the following command:
22+
23+
```bash
24+
mdbook build
25+
```
26+
27+
To serve the book, run the following command:
28+
29+
```bash
30+
npx serve book -p 3000
31+
```
32+
33+
## Configuration
34+
35+
The configuration file is located at `book.toml`.
36+
37+
We've enabled the following features:
38+
39+
* **Giscus**: To enable comments on the book. See [mdbook-embedify](https://mr-addict.github.io/mdbook-embedify/third-party/giscus.html) for more details.
40+
* **Mermaid**: To enable diagrams in the book. See [mdbook-mermaid](https://github.com/badboy/mdbook-mermaid) for more details.
41+
42+
## Deployment
43+
44+
TBD
45+
46+
See: <https://github.com/rust-lang/mdBook/blob/master/.github/workflows/deploy.yml>

book.toml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[book]
2+
authors = ["InnerSource Commons"]
3+
language = "en"
4+
multilingual = false
5+
src = "."
6+
title = "How To Create An InnerSource Program Office"
7+
8+
[preprocessor]
9+
10+
[preprocessor.mermaid]
11+
command = "mdbook-mermaid"
12+
13+
[preprocessor.embedify]
14+
giscus.enable = true
15+
giscus.repo = "InnerSourceCommons/managing-innersource-projects"
16+
giscus.repo-id = "MDEwOlJlcG9zaXRvcnk4MjY2ODc3OA=="
17+
giscus.category = "Website"
18+
giscus.category-id = "DIC_kwDOBO1s6s4CiMTg"
19+
giscus.reactions-enabled = "1"
20+
giscus.theme = "preferred_color_scheme"
21+
giscus.lang = "en"
22+
giscus.loading = "eager"
23+
giscus.crossorigin = "anonymous"
24+
25+
[output]
26+
27+
[output.html]
28+
additional-js = ["mermaid.min.js", "mermaid-init.js"]

mermaid-init.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mermaid.initialize({startOnLoad:true});

mermaid.min.js

+1,648
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

use_gqm/goals/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Goals

use_gqm/metrics/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Metrics

use_gqm/questions/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Questions

0 commit comments

Comments
 (0)