[TEM #2] - Add Github Actions

pull/4/head
sgoudham 3 years ago
parent 197bbcba3b
commit 1cb7e0373c
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -9,13 +9,18 @@
## Table of Contents
- [mdbook-template](#mdbook-template)
* [Author Notes](#author-notes)
* [Installation](#installation)
* [About](#about)
* [Format](#format)
+ [Template](#template)
+ [Arguments](#arguments)
+ [Default Values](#default-values)
* [Valid Configurations](#valid-configurations)
+ [Template](#template-1)
+ [Arguments](#arguments-1)
* [Example](#example)
* [GitHub Actions](#github-actions)
* [License](#license)
* [Contributing](#contributing)
* [Acknowledgement](#acknowledgement)
@ -123,25 +128,15 @@ The format is as follows
```
```markdown
{{#template
file.txt
path=../images
author=Goudham
}}
{{#template file.txt path=../images author=Goudham }}
```
```markdown
// Not recommended but valid
{{#template file.txt path=../images author=Goudham}}
// Not recommended but valid {{#template file.txt path=../images author=Goudham}}
```
```markdown
// Not recommended but valid
{{#template
file.txt
path=../images
author=Goudham
}}
// Not recommended but valid {{#template file.txt path=../images author=Goudham }}
```
### Arguments
@ -219,11 +214,7 @@ Some Content...
Some Content...
{{#template
../templates/footer.md
path=../images
authors=Goudham, Hazel
}}
{{#template ../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
@ -269,7 +260,18 @@ Further examples are included within the [examples](/examples) directory which d
## 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

Loading…
Cancel
Save