Skip to content

Commit

Permalink
[CI:DOCS] Restore missing content to manpages
Browse files Browse the repository at this point in the history
The following content was omitted:
- Text after the first markdown link on a line to the end of the last
  (in lines with multiple markdown links)
- Email addresses of the form <a...@...>

Fixed by:
- Making the first two regexes match each link individually, instead
  of matching from the start of the first link to the end of the last
- Making the last regex specifically match <a> and </a> tags

Signed-off-by: Rob Cowsill <[email protected]>
  • Loading branch information
rcowsill committed Apr 25, 2021
1 parent ba60821 commit 9731ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ pkg/api/swagger.yaml: .gopathok
make -C pkg/api

$(MANPAGES): %: %.md .install.md2man docdir
@sed -e 's/\((podman.*\.md)\)//' -e 's/\[\(podman.*\)\]/\1/' \
-e 's;<\(/\)\?\(a[^>]*\|sup\)>;;g' $< | \
@sed -e 's/\((podman[^)]*\.md)\)//g' -e 's/\[\(podman[^]]*\)\]/\1/g' \
-e 's;<\(/\)\?\(a\|a\s\+[^>]*\|sup\)>;;g' $< | \
$(GOMD2MAN) -in /dev/stdin -out $(subst source/markdown,build/man,$@)

.PHONY: docdir
Expand Down

0 comments on commit 9731ecf

Please sign in to comment.