fetch-remote-github-copy
Overview
The contents of this page are pulled at build time from a .md file stored in a remote repository here: https://github.com/mstura/doc_test/blob/master/markdown/com.castsoftware.dotnet/1.5.md. This uses a custom shortcode I have created called fetch-remote-github-copy:
{{ $path := .Get 0 }}
{{ $json := getJSON "https://api.github.com/repos/mstura/doc_test/contents/markdown" $path }}
{{ $json.content | base64Decode | markdownify }}
The shortcode is very similar to fetch-remote-github (it fetches the content via the github API in JSON format (not in raw markdown format)) but it has been adapted to remove the call to "pandoc".
data.getJSONis deprecated as of Hugo 0.123.0.
Conclusions:
- Advantage: Does not require that the markdown file is present in the
docorextensionsrepos. - Advantage: The
"pandoc"warning inherent in thefetch-remote-githubis removed. - Disadvantage: The TOC on the right hand side is NOT built correctly (bad!)
- Disadvantage: It uses the
getJSONfunction which is deprecated (bad!)
1.5.2-funcrel
Note
modified note
Other Updates
| Details |
|---|
| testing 1234 |
| 1324qwef |
1.5.0-beta2
Rules
| Rule Id | New Rule | Details |
|---|---|---|
| 123413 | FALSE | asdfasdfa |
1.5.0-beta1
Note
test
New Support
| Summary | Details |
|---|---|
| test | test |
| test again | more testing |
Other Updates
| Details |
|---|
| asdfasd |