Skip to content

Commit

Permalink
switch to scdoc for man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dropwhile committed Jan 26, 2025
1 parent bb7eb76 commit 52bf7e2
Show file tree
Hide file tree
Showing 9 changed files with 523 additions and 588 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ toc::[]
:link-proxy-from-env: https://golang.org/pkg/net/http/#ProxyFromEnvironment

== HEAD
* Switch man-page generate to scdoc.

== v2.6.1 2024-12-19
* Update dependencies
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ update-go-deps:
@go get -u all
@go mod tidy

${BUILDDIR}/man/%: man/%.adoc
${BUILDDIR}/man/%: man/%.scd
@[ -d "${BUILDDIR}/man" ] || mkdir -p "${BUILDDIR}/man"
@asciidoctor -b manpage -a release-version="${APP_VER}" -o $@ $<
@scdoc < $< > $@

man: $(patsubst man/%.adoc,${BUILDDIR}/man/%,$(wildcard man/*.adoc))
man: $(patsubst man/%.scd,${BUILDDIR}/man/%,$(wildcard man/*.scd))

tar: all
@echo "Building tar..."
Expand Down
3 changes: 2 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ endif::[]
:link-hmac: https://en.wikipedia.org/wiki/HMAC[HMAC]
:link-hsts: https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security[HSTS]
:link-asciidoctor: https://asciidoctor.org[asciidoctor]
:link-scdoc: https://git.sr.ht/~sircmpwn/scdoc/[scdoc]
:link-damontools: https://cr.yp.to/daemontools.html[daemontools]
:link-runit: https://en.wikipedia.org/wiki/Runit[runit]
:link-upstart: https://en.wikipedia.org/wiki/Upstart_(software)[upstart]
Expand Down Expand Up @@ -148,7 +149,7 @@ Building requires:
* posix compatible shell (sh)
* git
* go (most recent version recommended)
* {link-asciidoctor} (for building man pages only)
* {link-scdoc} (for building man pages only)

Building:

Expand Down
212 changes: 0 additions & 212 deletions man/go-camo-filtering.5.adoc

This file was deleted.

Loading

0 comments on commit 52bf7e2

Please sign in to comment.