Fix man/xen-vbd-interface.markdown.7 rendering
cover Fix man/xen-vbd-interface.markdown.7 rendering
The generated output at
https://xenbits.xen.org/docs/unstable/man/xen-vbd-interface.7.html
isn't readable. And generating it with a newer version (I guess) of pandoc is even less readable.
Cheers,
Anthony PERARD (2):
docs: Fix output of man/xen-vbd-interface
docs: Specify format when rendering markdown man pages
docs/Makefile | 4 ++-- docs/man/xen-vbd-interface.markdown.7 | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-)
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/2 docs: Fix output of man/xen-vbd-interface
In pandoc's markdown, a code block needs at least 4 spaces to be recognize as such. This patch fix the rendering of description of the encoding in the VBD interface so that [1] can be readable.
[1] https://xenbits.xen.org/docs/unstable/man/xen-vbd-interface.7.html
--- docs/man/xen-vbd-interface.markdown.7 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
docs/man/xen-vbd-interface.markdown.7 +7 -7
@@ -73,13 +73,13 @@ The information above is encoded in the concrete interface as an integer (in a canonical decimal format in xenstore), whose value encodes the information above as follows: - 1 << 28 | disk << 8 | partition xvd, disks or partitions 16 onwards - 202 << 8 | disk << 4 | partition xvd, disks and partitions up to 15 - 8 << 8 | disk << 4 | partition sd, disks and partitions up to 15 - 3 << 8 | disk << 6 | partition hd, disks 0..1, partitions 0..63 - 22 << 8 | (disk-2) << 6 | partition hd, disks 2..3, partitions 0..63 - 2 << 28 onwards reserved for future use - other values less than 1 << 28 deprecated / reserved + 1 << 28 | disk << 8 | partition xvd, disks or partitions 16 onwards + 202 << 8 | disk << 4 | partition xvd, disks and partitions up to 15 + 8 << 8 | disk << 4 | partition sd, disks and partitions up to 15 + 3 << 8 | disk << 6 | partition hd, disks 0..1, partitions 0..63 + 22 << 8 | (disk-2) << 6 | partition hd, disks 2..3, partitions 0..63 + 2 << 28 onwards reserved for future use + other values less than 1 << 28 deprecated / reserved The 1<<28 format handles disks up to (1<<20)-1 and partitions up to 255. It will be used only where the 202<<8 format does not have
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/2 docs: Specify format when rendering markdown man pages
In reply to Anthony PERARDWith pandoc 2.5, the man/xen-vbd-interface.markdown.7 isn't detected as markdown and the output isn't formated. Add the format of the input to pandoc's command line.
--- docs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
docs/Makefile +2 -2
@@ -112,7 +112,7 @@ ifneq ($(PANDOC),) @$(INSTALL_DIR) $$(@D) $(PANDOC) --standalone -V title=$$* -V section=$(1) \ -V date="$(DATE)" -V footer="$(VERSION)" \ - -V header=Xen $$< -t man --output $$@ + -V header=Xen $$< -f markdown -t man --output $$@ else @echo "pandoc not installed; skipping $$@" endif
@@ -129,7 +129,7 @@ endif html/man/%.$(1).html: man/%.markdown.$(1) Makefile ifneq ($(PANDOC),) @$(INSTALL_DIR) $$(@D) - $(PANDOC) --standalone $$< -t html --toc --output $$@ + $(PANDOC) --standalone $$< -f markdown -t html --toc --output $$@ else @echo "pandoc not installed; skipping $$@" endif
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/2] docs: Fix output of man/xen-vbd-interface
In reply to Anthony PERARDQuoted 7 lines · Anthony PERARD
In pandoc's markdown, a code block needs at least 4 spaces to be recognize as such. This patch fix the rendering of description of the encoding in the VBD interface so that [1] can be readable.
[1] https://xenbits.xen.org/docs/unstable/man/xen-vbd-interface.7.html
Signed-off-by Anthony PERARD <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 2/2] docs: Specify format when rendering markdown man pages
In reply to Anthony PERARDQuoted 5 lines · Anthony PERARD
With pandoc 2.5, the man/xen-vbd-interface.markdown.7 isn't detected as markdown and the output isn't formated. Add the format of the input to pandoc's command line.
Signed-off-by Anthony PERARD <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel