|
|
@ -9,13 +9,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
## Table of Contents
|
|
|
|
|
|
|
|
|
|
|
|
- [mdbook-template](#mdbook-template)
|
|
|
|
|
|
|
|
* [Author Notes](#author-notes)
|
|
|
|
* [Author Notes](#author-notes)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [About](#about)
|
|
|
|
* [About](#about)
|
|
|
|
* [Format](#format)
|
|
|
|
* [Format](#format)
|
|
|
|
|
|
|
|
+ [Template](#template)
|
|
|
|
|
|
|
|
+ [Arguments](#arguments)
|
|
|
|
|
|
|
|
+ [Default Values](#default-values)
|
|
|
|
* [Valid Configurations](#valid-configurations)
|
|
|
|
* [Valid Configurations](#valid-configurations)
|
|
|
|
|
|
|
|
+ [Template](#template-1)
|
|
|
|
|
|
|
|
+ [Arguments](#arguments-1)
|
|
|
|
* [Example](#example)
|
|
|
|
* [Example](#example)
|
|
|
|
|
|
|
|
* [GitHub Actions](#github-actions)
|
|
|
|
* [License](#license)
|
|
|
|
* [License](#license)
|
|
|
|
* [Contributing](#contributing)
|
|
|
|
* [Contributing](#contributing)
|
|
|
|
* [Acknowledgement](#acknowledgement)
|
|
|
|
* [Acknowledgement](#acknowledgement)
|
|
|
@ -123,25 +128,15 @@ The format is as follows
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
```markdown
|
|
|
|
{{#template
|
|
|
|
{{#template file.txt path=../images author=Goudham }}
|
|
|
|
file.txt
|
|
|
|
|
|
|
|
path=../images
|
|
|
|
|
|
|
|
author=Goudham
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
```markdown
|
|
|
|
// Not recommended but valid
|
|
|
|
// Not recommended but valid {{#template file.txt path=../images author=Goudham}}
|
|
|
|
{{#template file.txt path=../images author=Goudham}}
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
```markdown
|
|
|
|
// Not recommended but valid
|
|
|
|
// Not recommended but valid {{#template file.txt path=../images author=Goudham }}
|
|
|
|
{{#template
|
|
|
|
|
|
|
|
file.txt
|
|
|
|
|
|
|
|
path=../images
|
|
|
|
|
|
|
|
author=Goudham
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Arguments
|
|
|
|
### Arguments
|
|
|
@ -219,11 +214,7 @@ Some Content...
|
|
|
|
|
|
|
|
|
|
|
|
Some Content...
|
|
|
|
Some Content...
|
|
|
|
|
|
|
|
|
|
|
|
{{#template
|
|
|
|
{{#template ../templates/footer.md path=../images authors=Goudham, Hazel }}
|
|
|
|
../templates/footer.md
|
|
|
|
|
|
|
|
path=../images
|
|
|
|
|
|
|
|
authors=Goudham, Hazel
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
After running `mdbook build` with the mdbook-template preprocessor enabled, the files will have dynamic paths to the
|
|
|
|
After running `mdbook build` with the mdbook-template preprocessor enabled, the files will have dynamic paths to the
|
|
|
@ -269,7 +260,18 @@ Further examples are included within the [examples](/examples) directory which d
|
|
|
|
|
|
|
|
|
|
|
|
## GitHub Actions
|
|
|
|
## GitHub Actions
|
|
|
|
|
|
|
|
|
|
|
|
TODO
|
|
|
|
Include the following within your `.yml` workflow files if you need `mdbook-template` as an executable to build your
|
|
|
|
|
|
|
|
book.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
|
|
|
- name: Install mdbook-template
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
mkdir mdbook-template
|
|
|
|
|
|
|
|
curl -sSL https://github.com/sgoudham/mdbook-template/releases/latest/download/mdbook-template-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-template
|
|
|
|
|
|
|
|
echo `pwd`/mdbook-template >> $GITHUB_PATH
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The above step will ensure the latest version of mdbook-template is retrieved and built.
|
|
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
|
|