Skip to content

Commit

Permalink
#80 add license page to nimibook (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner authored Oct 23, 2023
1 parent 02e8b60 commit b68c33d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions book/licenses.nim
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion nbook.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit b68c33d

Please sign in to comment.