We are using gh-pages for internal documentation. We have example code blocks and they render just fine in the GitHub page but when converting to gh-pages the yaml syntax seems to filter out variables. So we have for example:
variables:
name_filter: "name-2022*"
prefix: "{{ resource_prefix }}"
As said this looks completely fine in the rendered code page but when rendered into a gh-page the prefix
entry is just empty quotes like:
variables:
name_filter: "name-2022*"
prefix: ""
Obviously for our documentation this is no good. I have tried changing the markdown to kramdown
to see if that made a difference and it doesn't help.
It has been mentioned to use the {% raw %} {% endraw %} macros around code blocks but this means that when viewing the github page (not the rendered gh-page), you end up with those macro blocks being visible which is just as confusing as having empty code blocks.