diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-07 21:09:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 21:09:51 +0200 |
commit | 4f81bc2bc8f672bd27c73f336a0ab77424cc08fe (patch) | |
tree | 56f7a512ab68a80966087d68e2c57f6e385e3376 /Makefile | |
parent | 763abaea36ad289a887a0b61d52dcc8d3bea84d8 (diff) | |
parent | ab7e7f651e71556d879421cb3680f9762b0a77d2 (diff) | |
download | podman-4f81bc2bc8f672bd27c73f336a0ab77424cc08fe.tar.gz podman-4f81bc2bc8f672bd27c73f336a0ab77424cc08fe.tar.bz2 podman-4f81bc2bc8f672bd27c73f336a0ab77424cc08fe.zip |
Merge pull request #10526 from Procyhon/31052021_manpage
[CI:DOCS] UPDATE MANPAGE_SYNTAX (commit,attach,auto-update)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -428,8 +428,16 @@ pkg/api/swagger.yaml: .gopathok make -C pkg/api $(MANPAGES): %: %.md .install.md2man docdir - @sed -e 's/\((podman[^)]*\.md)\)//g' -e 's/\[\(podman[^]]*\)\]/\1/g' \ - -e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' $< | \ + +### sed is used to filter http/s links as well as relative links +### replaces "\" at the end of a line with two spaces +### this ensures that manpages are renderd correctly + + @sed -e 's/\((podman[^)]*\.md\(#.*\)\?)\)//g' \ + -e 's/\[\(podman[^]]*\)\]/\1/g' \ + -e 's/\[\([^]]*\)](http[^)]\+)/\1/g' \ + -e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' \ + -e 's/\\$// /g' $< | \ $(GOMD2MAN) -in /dev/stdin -out $(subst source/markdown,build/man,$@) .PHONY: docdir |