Skip to content

preprocess md man files to improve cross-links#956

Open
comick wants to merge 1 commit into
podman-container-tools:mainfrom
comick:man-links
Open

preprocess md man files to improve cross-links#956
comick wants to merge 1 commit into
podman-container-tools:mainfrom
comick:man-links

Conversation

@comick

@comick comick commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This wants to address #827 by adopting the exact same filtering found at https://github.com/podman-container-tools/podman/blob/63cf53d26a579ca8891d83f68fbaa1bf9c957a20/Makefile#L583.

Note that, as of PR creation, the only affected link is found at

For example it can be set to `bridge`, `host`, `none`, `pasta` and more, see the [podman-create(1)](https://docs.podman.io/en/latest/markdown/podman-create.1.html#network-mode-net)

though it should then be safer to add more, if merged.

@github-actions github-actions Bot added the common Related to "common" package label Jul 1, 2026
Signed-off-by: Michele Comignano <mcdev@playlinux.net>
@packit-as-a-service

Copy link
Copy Markdown

Packit jobs failed. @containers/packit-build please check.

@comick comick marked this pull request as ready for review July 1, 2026 20:38

@mtrmac mtrmac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The goal makes sense in general.

We have 2 other sets of man pages here. I suppose this should be centralized in a single shell script called from all those places.


I didn’t read the implementation any further than those 2 comments now.

Comment thread common/docs/Makefile
DATADIR := ${PREFIX}/share
MANDIR := $(DATADIR)/man
GOMD2MAN ?= $(shell command -v go-md2man || echo '$(GOBIN)/go-md2man')
ifeq ($(NATIVE_GOOS),freebsd)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NATIVE_GOOS is never set

Comment thread common/docs/Makefile
# 5. Replace "\" (backslash) at EOL with two spaces (no idea why)
# Then two sanity checks:
# 1. test for "included file options/blahblah"; this indicates a failure
# in the markdown-preprocess tool; and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No markdown-preprocess here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants