https://github.com/threefoldtech/mdbook-include
https://github.com/threefoldtech/mdbook-include
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/threefoldtech/mdbook-include
- Owner: threefoldtech
- License: apache-2.0
- Created: 2022-11-07T07:45:13.000Z (over 3 years ago)
- Default Branch: development
- Last Pushed: 2023-10-12T08:43:10.000Z (over 2 years ago)
- Last Synced: 2023-10-13T02:26:14.712Z (over 2 years ago)
- Language: Rust
- Size: 25.4 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mdbook-include
A [mdbook](https://github.com/rust-lang/mdBook) preprocessor that include raw github files as code blocks in your book.
## Installation
Grab the binary from the release page and place it somewher in your `$PATH`.
Add it as a preprocessor to your `book.toml`:
```toml
[book]
title = "Example book"
author = "John Doe"
[preprocessor.include]
```
Finally, build your book as normal:
```
mdbook build path/to/book/
```
## Usage
Place the link for raw github file in any of the markdown files in the book after `!!!!include`:
```
!!!!include https://raw.githubusercontent.com/threefoldtech/mdbook-include/development/src/lib.rs
```
Then build the book using mdbook.