Skip to content

Commit 9e5b78e

Browse files
pietroppeter#80 add license page to nimibook
1 parent 02e8b60 commit 9e5b78e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

book/licenses.nim

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import nimib, nimibook
2+
3+
nbInit(theme = useNimibook)
4+
nbText: """## Licenses
5+
Nimibook consists of multiple different parts, some of which have their own licenses.
6+
This is a compiled list of all licenses including those of assets used:
7+
8+
- Fonts:
9+
- Open Sans (Apache License 2.0)
10+
- Source Code Pro (SIL Open Font License, Version 1.1)
11+
- FontAwesome:
12+
- Fonts (SIL OFL 1.1)
13+
- CSS (MIT)
14+
- Code
15+
- clipboard.js (MIT)
16+
- Highlight.js (BSD-3-Clause)
17+
- book.js (MPL-2.0)
18+
- KaTeX (MIT)
19+
- Themes (MPL-2.0)
20+
"""
21+
22+
nbSave

nbook.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ var book = initBookWithToc:
66
entry("Table of Contents", "toc")
77
entry("Configuration", "configuration")
88
entry("Commands", "cli")
9+
entry("Licenses", "licenses")
910
section("Example toc structure", "tocexample/index.md"):
1011
section("Nested section", "nested.md"):
1112
entry("Entry in nested section", "nested_entry.md")
1213
entry("Back to parent section", "back_to_parent.md")
1314
draft("Draft chapter")
14-
1515
nimibookCli(book)

0 commit comments

Comments
 (0)