Skip to content

Commit

Permalink
fix(Makefile): prevent link creation by pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
hootnot committed Apr 12, 2021
1 parent 8c39aae commit cb042ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -73,8 +73,11 @@ docs: ## generate Sphinx HTML documentation, including API docs
servedocs: docs ## compile the docs watching for changes
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .

# the changelog conversion from markdown to rst needs the markdown [ .. ]
# transformed into \[ .. ] to prevent the creation of links in rst
changelog:
python gitlog.py --branch main | \
sed -e 's#^- \[#- \\[#' | \
pandoc --from=markdown --to=rst | sed -e '/^\.\. _.*:/,+1d' >CHANGELOG.rst

release: changelog
Expand Down

0 comments on commit cb042ef

Please sign in to comment.