When we create a PR for Hugo that would affect Hugo Docs, I know we’re supposed to include the Docs changes in the Hugo PR. For example.
To see how my Docs changes look, I wanted to run the site locally but it’s failing. When running hugo serve -s docs/
from the root directory I get the error:
ERROR 2018/09/21 22:04:58 Failed to add template “shortcodes/code.html” in path “shortcodes/code.html”: template: shortcodes/code.html:5: unexpected “=” in operand
ERROR 2018/09/21 22:04:59 shortcodes/code.html : template: shortcodes/code.html:5: unexpected “=” in operand
Followed by tons of related errors for pages relying on that shortcode.
Same error if I run cd docs
first and then hugo serve
.
What am I doing wrong? The script docs/pull-theme.sh
script doesn’t work and the pull-docs.sh
script does update Docs but then there’s several unrelated commits in my PR which we wouldn’t want.