diff --git a/book/licenses.nim b/book/licenses.nim new file mode 100644 index 0000000..6e3022a --- /dev/null +++ b/book/licenses.nim @@ -0,0 +1,22 @@ +import nimib, nimibook + +nbInit(theme = useNimibook) +nbText: """## Licenses +Nimibook consists of multiple different parts, some of which have their own licenses. +This is a compiled list of all licenses including those of assets used: + +- Fonts: + - Open Sans (Apache License 2.0) + - Source Code Pro (SIL Open Font License, Version 1.1) + - FontAwesome: + - Fonts (SIL OFL 1.1) + - CSS (MIT) +- Code + - clipboard.js (MIT) + - Highlight.js (BSD-3-Clause) + - book.js (MPL-2.0) + - KaTeX (MIT) +- Themes (MPL-2.0) +""" + +nbSave \ No newline at end of file diff --git a/nbook.nim b/nbook.nim index ed3e060..3097f21 100644 --- a/nbook.nim +++ b/nbook.nim @@ -6,10 +6,10 @@ var book = initBookWithToc: entry("Table of Contents", "toc") entry("Configuration", "configuration") entry("Commands", "cli") + entry("Licenses", "licenses") section("Example toc structure", "tocexample/index.md"): section("Nested section", "nested.md"): entry("Entry in nested section", "nested_entry.md") entry("Back to parent section", "back_to_parent.md") draft("Draft chapter") - nimibookCli(book)