Skip to content

Commit

Permalink
chore: .asc --> .adoc in preparation to improve manual generation
Browse files Browse the repository at this point in the history
Antora seems to require .adoc.

https://asciidoctor.org/docs/asciidoc-recommended-practices/ recommends
.adoc extension.
  • Loading branch information
jozzsi authored and LaszloGombos committed Sep 29, 2024
1 parent 3166509 commit 7d9158f
Show file tree
Hide file tree
Showing 19 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@ endif
@rm -f -- "$@"
xsltproc -o "$@" -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<

%.xml: %.asc
%.xml: %.adoc
@rm -f -- "$@"
asciidoc -a "version=$(DRACUT_FULL_VERSION)" -d manpage -b docbook -o "$@" $<

dracut.8: man/dracut.8.asc \
man/dracut.usage.asc
dracut.8: man/dracut.8.adoc \
man/dracut.usage.adoc

dracut.html: man/dracut.asc $(manpages) docs/dracut.css man/dracut.usage.asc
dracut.html: man/dracut.adoc $(manpages) docs/dracut.css man/dracut.usage.adoc
@rm -f -- dracut.xml
asciidoc -a "mainversion=$(DRACUT_MAIN_VERSION)" \
-a "version=$(DRACUT_FULL_VERSION)" \
-a numbered \
-d book -b docbook -o dracut.xml man/dracut.asc
-d book -b docbook -o dracut.xml man/dracut.adoc
@rm -f -- dracut.html
xsltproc -o dracut.html --xinclude -nonet \
--stringparam custom.css.source docs/dracut.css \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ subdirectory, and use functionality provided by dracut-functions to do their
work.

Documentation:
- [Introduction](man/dracut.asc)
- [User Manual](man/dracut.usage.asc)
- [Introduction](man/dracut.adoc)
- [User Manual](man/dracut.usage.adoc)

Currently dracut-ng is developed on [github.com](https://github.com/dracut-ng/dracut-ng).

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion man/dracut.8.asc → man/dracut.8.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ of some tools. It should be attached to any report about dracut problems.
USAGE
-----

include::dracut.usage.asc[]
include::dracut.usage.adoc[]

OPTIONS
-------
Expand Down
12 changes: 6 additions & 6 deletions man/dracut.asc → man/dracut.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -150,26 +150,26 @@ This ensures, that all devices are disassembled and unmounted cleanly.
= User Manual

:leveloffset: 1
include::dracut.8.asc[]
include::dracut.8.adoc[]

:leveloffset: 1
[[dracutconf5]]
include::dracut.conf.5.asc[]
include::dracut.conf.5.adoc[]

[[dracutcmdline7]]
include::dracut.cmdline.7.asc[]
include::dracut.cmdline.7.adoc[]

[[lsinitrd1]]
include::lsinitrd.1.asc[]
include::lsinitrd.1.adoc[]

= Developer Manual

:leveloffset: 1
[[dracutmodules7]]
include::dracut.modules.7.asc[]
include::dracut.modules.7.adoc[]

[[dracutbootup7]]
include::dracut.bootup.7.asc[]
include::dracut.bootup.7.adoc[]

:leveloffset: 0
[appendix]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7d9158f

Please sign in to comment.