Skip to contentSkip to conversation

docs: Multiple fixes to docs

PATCH In review Andrew Cooper 2 participants 12 messages Jan 2, 2019

lore
Share & tools
lore
#0 lore raw

cover docs: Multiple fixes to docs

This work started to fix a regression introduced by c/s a3a99df44 "docs/cmdline: Rewrite the cpuid_mask_* section" which has broken the formatting of xen-command-line.html on xenbits.xen.org/docs.

It developed into several swamps of work...

Andrew Cooper (4):
docs/pandoc: Don't escape underscores in the middle of text docs/markdown: Switch to using pandoc, and fix underscore escaping docs/man: Fix/simplify generation of manpages
docs: Remove Markdown from configure.ac and the build instructions

 .gitignore                                         |   4 +-
 .travis.yml                                        |   1 -
 README                                             |   3 +-
 automation/build/centos/7.2.dockerfile             |   3 +-
 automation/build/centos/7.dockerfile               |   3 +-
 automation/build/debian/jessie-i386.dockerfile     |   1 -
 automation/build/debian/jessie.dockerfile          |   1 -
 automation/build/debian/stretch-i386.dockerfile    |   1 -
 automation/build/debian/stretch.dockerfile         |   1 -
 .../build/debian/unstable-arm64v8.dockerfile       |   1 -
 automation/build/debian/unstable-i386.dockerfile   |   1 -
 automation/build/debian/unstable.dockerfile        |   1 -
 automation/build/ubuntu/bionic.dockerfile          |   1 -
 automation/build/ubuntu/trusty.dockerfile          |   1 -
 automation/build/ubuntu/xenial.dockerfile          |   1 -
 config/Docs.mk.in                                  |   1 -
 docs/Makefile                                      |  76 +++------
 docs/configure                                     |  63 +------
 docs/configure.ac                                  |   5 +-
 docs/designs/{dmop.markdown => dmop.pandoc}        |   0
 .../{dom0less.markdown => dom0less.pandoc}         |   0
 docs/features/feature-levelling.pandoc             |  16 +-
 docs/features/migration.pandoc                     |   2 +-
 docs/features/sched_credit2.pandoc                 |   6 +-
 docs/features/sched_rtds.pandoc                    |   8 +-
 ...ons.pod.7 => xen-pci-device-reservations.7.pod} |   0
 .../{xen-pv-channel.pod.7 => xen-pv-channel.7.pod} |   0
 docs/man/{xen-tscmode.pod.7 => xen-tscmode.7.pod}  |   0
 ...rface.markdown.7 => xen-vbd-interface.7.pandoc} |   0
 docs/man/{xen-vtpm.pod.7 => xen-vtpm.7.pod}        |   0
 docs/man/{xen-vtpmmgr.pod.7 => xen-vtpmmgr.7.pod}  |   0
 .../{xenstore-chmod.pod.1 => xenstore-chmod.1.pod} |   0
 docs/man/{xenstore-ls.pod.1 => xenstore-ls.1.pod}  |   0
 .../{xenstore-read.pod.1 => xenstore-read.1.pod}   |   0
 .../{xenstore-write.pod.1 => xenstore-write.1.pod} |   0
 docs/man/{xenstore.pod.1 => xenstore.1.pod}        |   0
 docs/man/{xentop.pod.1 => xentop.1.pod}            |   0
 docs/man/{xentrace.pod.8 => xentrace.8.pod}        |   0
 ...xentrace_format.pod.1 => xentrace_format.1.pod} |   0
 ...iguration.pod.5 => xl-disk-configuration.5.pod} |   0
 ...ration.pod.5 => xl-network-configuration.5.pod} |   0
 ...uma-placement.pod.7 => xl-numa-placement.7.pod} |   0
 docs/man/{xl.pod.1.in => xl.1.pod.in}              |   0
 docs/man/{xl.cfg.pod.5.in => xl.cfg.5.pod.in}      |   0
 docs/man/{xl.conf.pod.5 => xl.conf.5.pod}          |   0
 .../{xlcpupool.cfg.pod.5 => xlcpupool.cfg.5.pod}   |   0
 docs/misc/{9pfs.markdown => 9pfs.pandoc}           |  42 ++---
 docs/misc/{coverage.markdown => coverage.pandoc}   |   0
 docs/misc/{efi.markdown => efi.pandoc}             |   2 +-
 ...-unplug.markdown => hvm-emulated-unplug.pandoc} |   0
 docs/misc/{livepatch.markdown => livepatch.pandoc} | 108 ++++++------
 ...ecycle.markdown => pv-drivers-lifecycle.pandoc} |   0
 docs/misc/{pvcalls.markdown => pvcalls.pandoc}     |  18 +-
 docs/misc/{pvh.markdown => pvh.pandoc}             |  10 +-
 ...loader.markdown => x86-xenpv-bootloader.pandoc} |   8 +-
 ...mmand-line.markdown => xen-command-line.pandoc} | 188 ++++++++++-----------
 ...nstore-paths.markdown => xenstore-paths.pandoc} |   6 +-
 docs/misc/{xl-psr.markdown => xl-psr.pandoc}       |   0
 docs/specs/libxc-migration-stream.pandoc           |  60 +++----
 docs/specs/libxl-migration-stream.pandoc           |  34 ++--
 60 files changed, 286 insertions(+), 391 deletions(-)
 rename docs/designs/{dmop.markdown => dmop.pandoc} (100%)
 rename docs/features/{dom0less.markdown => dom0less.pandoc} (100%)
 rename docs/man/{xen-pci-device-reservations.pod.7 => xen-pci-device-reservations.7.pod} (100%)
 rename docs/man/{xen-pv-channel.pod.7 => xen-pv-channel.7.pod} (100%)
 rename docs/man/{xen-tscmode.pod.7 => xen-tscmode.7.pod} (100%)
 rename docs/man/{xen-vbd-interface.markdown.7 => xen-vbd-interface.7.pandoc} (100%)
 rename docs/man/{xen-vtpm.pod.7 => xen-vtpm.7.pod} (100%)
 rename docs/man/{xen-vtpmmgr.pod.7 => xen-vtpmmgr.7.pod} (100%)
 rename docs/man/{xenstore-chmod.pod.1 => xenstore-chmod.1.pod} (100%)
 rename docs/man/{xenstore-ls.pod.1 => xenstore-ls.1.pod} (100%)
 rename docs/man/{xenstore-read.pod.1 => xenstore-read.1.pod} (100%)
 rename docs/man/{xenstore-write.pod.1 => xenstore-write.1.pod} (100%)
 rename docs/man/{xenstore.pod.1 => xenstore.1.pod} (100%)
 rename docs/man/{xentop.pod.1 => xentop.1.pod} (100%)
 rename docs/man/{xentrace.pod.8 => xentrace.8.pod} (100%)
 rename docs/man/{xentrace_format.pod.1 => xentrace_format.1.pod} (100%)
 rename docs/man/{xl-disk-configuration.pod.5 => xl-disk-configuration.5.pod} (100%)
 rename docs/man/{xl-network-configuration.pod.5 => xl-network-configuration.5.pod} (100%)
 rename docs/man/{xl-numa-placement.pod.7 => xl-numa-placement.7.pod} (100%)
 rename docs/man/{xl.pod.1.in => xl.1.pod.in} (100%)
 rename docs/man/{xl.cfg.pod.5.in => xl.cfg.5.pod.in} (100%)
 rename docs/man/{xl.conf.pod.5 => xl.conf.5.pod} (100%)
 rename docs/man/{xlcpupool.cfg.pod.5 => xlcpupool.cfg.5.pod} (100%)
 rename docs/misc/{9pfs.markdown => 9pfs.pandoc} (98%)
 rename docs/misc/{coverage.markdown => coverage.pandoc} (100%)
 rename docs/misc/{efi.markdown => efi.pandoc} (99%)
 rename docs/misc/{hvm-emulated-unplug.markdown => hvm-emulated-unplug.pandoc} (100%)
 rename docs/misc/{livepatch.markdown => livepatch.pandoc} (92%)
 rename docs/misc/{pv-drivers-lifecycle.markdown => pv-drivers-lifecycle.pandoc} (100%)
 rename docs/misc/{pvcalls.markdown => pvcalls.pandoc} (99%)
 rename docs/misc/{pvh.markdown => pvh.pandoc} (93%)
 rename docs/misc/{x86-xenpv-bootloader.markdown => x86-xenpv-bootloader.pandoc} (89%)
 rename docs/misc/{xen-command-line.markdown => xen-command-line.pandoc} (95%)
 rename docs/misc/{xenstore-paths.markdown => xenstore-paths.pandoc} (99%)
 rename docs/misc/{xl-psr.markdown => xl-psr.pandoc} (100%)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw

PATCH 1/4 docs/pandoc: Don't escape underscores in the middle of text

Pandoc deliberately (and contrary to markdown) doesn't treat underscores in the middle of normal text as emphasis markers, as this is almost always the unhelpful interpretation.

For text which is emphasised using _, an underscore in the middle is interpreted, but the emphasis marker can be switched to * instead.

One problem case is where we use {} globbing with identifier names, as it counts as a word break. Therefore, we do need to retain the escaped underscore immediately following a closing brace.

No change in content - only formatting. This results in the text being easier to read and grep.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>

---
 docs/features/feature-levelling.pandoc   | 16 ++++-----
 docs/features/migration.pandoc           |  2 +-
 docs/features/sched_credit2.pandoc       |  6 ++--
 docs/features/sched_rtds.pandoc          |  8 ++---
 docs/specs/libxc-migration-stream.pandoc | 60 ++++++++++++++++----------------
 docs/specs/libxl-migration-stream.pandoc | 34 +++++++++---------
 6 files changed, 63 insertions(+), 63 deletions(-)
docs/features/feature-levelling.pandoc +8 -8
index ef77eb8..171a42c 100644
@@ -127,19 +127,19 @@ time.
 ## Host boot
 
 As Xen boots, it will enumerate the features it can see.  This is stored as
-the _raw\_featureset_.
+the *raw_featureset*.
 
 Errata checks and command line arguments are then taken into account to reduce
-the _raw\_featureset_ into the _host\_featureset_, which is the set of
+the *raw_featureset* into the *host_featureset*, which is the set of
 features Xen uses.  On hardware with masking/override MSRs, the default MSR
-values are picked from the _host\_featureset_.
+values are picked from the *host_featureset*.
 
-The _host\_featureset_ is then used to calculate the _pv\_featureset_ and
-_hvm\_featureset_, which are the maximum featuresets Xen is willing to offer
+The *host_featureset* is then used to calculate the *pv_featureset* and
+*hvm_featureset*, which are the maximum featuresets Xen is willing to offer
 to PV and HVM guests respectively.
 
 In addition, Xen will calculate how much control it has over non-cooperative
-PV `CPUID` instructions, storing this information as _levelling\_caps_.
+PV `CPUID` instructions, storing this information as *levelling_caps*.
 
 ## Domain creation
 
@@ -163,7 +163,7 @@ features will be able to find some of them.  e.g. There is no way of forcibly
 preventing a guest from using 1GB superpages if the hardware supports it.
 
 Some information simply cannot be hidden from guests.  There is no way to
-control certain behaviour such as the hardware MXCSR\_MASK or x87 FPU exception
+control certain behaviour such as the hardware MXCSR_MASK or x87 FPU exception
 behaviour.
 
 
@@ -196,7 +196,7 @@ be at the head of the migration stream.
 
 MSRs are another source of features for guests.  There is no general provision
 for controlling the available MSRs.  E.g. 64bit versions of Windows notice
-changes in IA32\_MISC\_ENABLE, and suffer a BSOD 0x109 (Critical Structure
+changes in IA32_MISC_ENABLE, and suffer a BSOD 0x109 (Critical Structure
 Corruption)
 
 
docs/features/migration.pandoc +1 -1
index 151c50d..7199258 100644
@@ -65,7 +65,7 @@ legacy stream into a migration v2 stream.
 
 ## libxl
 
-With migration v2 support, LIBXL\_HAVE\_SRM\_V2 and LIBXL\_HAVE\_SRM\_V1
+With migration v2 support, LIBXL_HAVE_SRM_V2 and LIBXL_HAVE_SRM_V1
 are introduced to indicate support.  `domain_restore_params` gains a new
 parameter, `stream_version`, which is used to distinguish between legacy and
 v2 migration streams, and hence whether legacy conversion is required.
docs/features/sched_credit2.pandoc +3 -3
index 6dbfdf9..bce843e 100644
@@ -57,7 +57,7 @@ is all contained in `xen/common/sched_credit2.c`.
 
 Global scheduling parameters, such as context switching rate
 limiting, is only available from Xen 4.8 onward. In libxl, the
-`LIBXL\_HAVE\_SCHED\_CREDIT2\_PARAMS` symbol is introduced to
+LIBXL_HAVE_SCHED_CREDIT2_PARAMS symbol is introduced to
 indicate their availability.
 
 # Testing
@@ -82,8 +82,8 @@ following:
 * vCPUs' reservations (similar to caps, but providing a vCPU with guarantees
   about some pCPU time it will always be able to execute for);
 * benchmarking for assessing the best combination of values for the various
-  parameters (`sched\_credit2\_migrate\_resist`, `credit2\_balance\_over`,
-  `credit2\_balance\_under`)
+  parameters (`sched_credit2_migrate_resist`, `credit2_balance_over`,
+  `credit2_balance_under`)
 
 # Known issues
 
docs/features/sched_rtds.pandoc +4 -4
index d51b499..4ccf704 100644
@@ -49,12 +49,12 @@ hook based, architecture for schedulers. Thanks to this, RTDS code
 is all contained in `xen/common/sched_rtds.c`.
 
 In libxl, the availability of the RTDS scheduler is advertised by
-the presence of the LIBXL\_HAVE\_SCHED\_RTDS symbol. The ability of
+the presence of the LIBXL_HAVE_SCHED_RTDS symbol. The ability of
 specifying different scheduling parameters for each vcpu has been
 introduced later, and is available if the following symbols are defined:
-    * `LIBXL\_HAVE\_VCPU\_SCHED\_PARAMS`,
-    * `LIBXL\_HAVE\_SCHED\_RTDS\_VCPU\_PARAMS`,
-    * `LIBXL\_HAVE\_SCHED\_RTDS\_VCPU\_EXTRA`.
+    * LIBXL_HAVE_VCPU_SCHED_PARAMS,
+    * LIBXL_HAVE_SCHED_RTDS_VCPU_PARAMS,
+    * LIBXL_HAVE_SCHED_RTDS_VCPU_EXTRA.
 
 # Limitations
 
docs/specs/libxc-migration-stream.pandoc +30 -30

134 lines not on this page · raw message

docs/specs/libxl-migration-stream.pandoc +17 -17
index a1ba1ac..3766f37 100644
@@ -182,8 +182,8 @@ in the stream.
 
 The end record contains no fields; its body_length is 0.
 
-LIBXC\_CONTEXT
---------------
+LIBXC_CONTEXT
+-------------
 
 A libxc context record is a marker, indicating that the stream should be
 handed to `xc_domain_restore()`.  `libxc` shall be responsible for reading its
@@ -199,8 +199,8 @@ The libxc context record contains no fields; its body_length is 0[^1].
 might write into the stream, especially for live migration where the quantity
 of data is partially proportional to the elapsed time.
 
-EMULATOR\_XENSTORE\_DATA
-------------------------
+EMULATOR_XENSTORE_DATA
+----------------------
 
 A set of xenstore key/value pairs for a specific emulator associated with the
 domain.
@@ -226,7 +226,7 @@ domain.  At the time of writing, keys are relative to the path
 although this path is free to change moving forward, thus should not be
 assumed.
 
-EMULATOR\_CONTEXT
+EMULATOR_CONTEXT
 ----------------
 
 A context blob for a specific emulator associated with the domain.
@@ -242,8 +242,8 @@ A context blob for a specific emulator associated with the domain.
 The *emulator_ctx* is a binary blob interpreted by the emulator identified by
 *emulator_id*.  Its format is unspecified.
 
-CHECKPOINT\_END
----------------
+CHECKPOINT_END
+--------------
 
 A checkpoint end record marks the end of a checkpoint in the image.
 
@@ -253,8 +253,8 @@ A checkpoint end record marks the end of a checkpoint in the image.
 The end record contains no fields; its body_length is 0.
 
 
-CHECKPOINT\_STATE
---------------
+CHECKPOINT_STATE
+----------------
 
 A checkpoint state record contains the control information for checkpoint. It
 is only used by COLO, more detail please reference README.colo.
@@ -282,26 +282,26 @@ In COLO, Primary is running in below loop:
 
 1. Suspend primary vm
     a. Suspend primary vm
-    b. Read _CHECKPOINT\_SVM\_SUSPENDED_ sent by secondary
+    b. Read *CHECKPOINT_SVM_SUSPENDED* sent by secondary
 2. Checkpoint
 3. Resume primary vm
-    a. Read _CHECKPOINT\_SVM\_READY_ from secondary
+    a. Read *CHECKPOINT_SVM_READY* from secondary
     b. Resume primary vm
-    c. Read _CHECKPOINT\_SVM\_RESUMED_ from secondary
+    c. Read *CHECKPOINT_SVM_RESUMED* from secondary
 4. Wait a new checkpoint
-    a. Send _CHECKPOINT\_NEW_ to secondary
+    a. Send *CHECKPOINT_NEW* to secondary
 
 While Secondary is running in below loop:
 
 1. Resume secondary vm
-    a. Send _CHECKPOINT\_SVM\_READY_ to primary
+    a. Send *CHECKPOINT_SVM_READY* to primary
     b. Resume secondary vm
-    c. Send _CHECKPOINT\_SVM\_RESUMED_ to primary
+    c. Send *CHECKPOINT_SVM_RESUMED* to primary
 2. Wait a new checkpoint
-    a. Read _CHECKPOINT\_NEW_ from primary
+    a. Read *CHECKPOINT_NEW* from primary
 3. Suspend secondary vm
     a. Suspend secondary vm
-    b. Send _CHECKPOINT\_SVM\_SUSPENDED_ to primary
+    b. Send *CHECKPOINT_SVM_SUSPENDED* to primary
 4. Checkpoint
 
 Future Extensions
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#3 lore raw

PATCH 2/4 docs/markdown: Switch to using pandoc, and fix underscore escaping

In reply to Andrew Cooper

c/s a3a99df44 "docs/cmdline: Rewrite the cpuid_mask_* section" completely forgot about how markdown gets rendered to HTML (as opposed to PDF), because we use different translators depending on the destination format.

markdown and pandoc are very similar markup languages, but a couple of details about pandoc cause it to have far more user-friendly inline markup.

Switch all markdown documents to be pandoc (so we are using a single translator, and therefore a single flavour of markdown), which fixes the rendered docs on xenbits.xen.org/docs.

While changing the format, fix the remainder of the escaped underscores in the same mannor as the previous patch. The two problem cases here are __LINE__ and __FILE__ where the first underscore still needs escaping.

In addition, dmop.markdown and dom0less.markdown didn't used to get processed, as only .markdown files in the misc/ directory got considered. dom0less.pandoc gets picked up automatically now, due to being in the features/ directory, but designs/ needs adding to the pandoc directory list for dmop.pandoc to get processed.

While edting in appropriate areas, take the opportunity to fix some markup to the surrounding style, and drop trailing whitespace.

No change in content - only formatting. This results in the text being easier to read and grep.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>

---
 docs/Makefile                                      |   2 +-
 docs/designs/{dmop.markdown => dmop.pandoc}        |   0
 .../{dom0less.markdown => dom0less.pandoc}         |   0
 docs/misc/{9pfs.markdown => 9pfs.pandoc}           |  42 ++---
 docs/misc/{coverage.markdown => coverage.pandoc}   |   0
 docs/misc/{efi.markdown => efi.pandoc}             |   2 +-
 ...-unplug.markdown => hvm-emulated-unplug.pandoc} |   0
 docs/misc/{livepatch.markdown => livepatch.pandoc} | 108 ++++++------
 ...ecycle.markdown => pv-drivers-lifecycle.pandoc} |   0
 docs/misc/{pvcalls.markdown => pvcalls.pandoc}     |  18 +-
 docs/misc/{pvh.markdown => pvh.pandoc}             |  10 +-
 ...loader.markdown => x86-xenpv-bootloader.pandoc} |   8 +-
 ...mmand-line.markdown => xen-command-line.pandoc} | 188 ++++++++++-----------
 ...nstore-paths.markdown => xenstore-paths.pandoc} |   6 +-
 docs/misc/{xl-psr.markdown => xl-psr.pandoc}       |   0
 15 files changed, 192 insertions(+), 192 deletions(-)
 rename docs/designs/{dmop.markdown => dmop.pandoc} (100%)
 rename docs/features/{dom0less.markdown => dom0less.pandoc} (100%)
 rename docs/misc/{9pfs.markdown => 9pfs.pandoc} (98%)
 rename docs/misc/{coverage.markdown => coverage.pandoc} (100%)
 rename docs/misc/{efi.markdown => efi.pandoc} (99%)
 rename docs/misc/{hvm-emulated-unplug.markdown => hvm-emulated-unplug.pandoc} (100%)
 rename docs/misc/{livepatch.markdown => livepatch.pandoc} (92%)
 rename docs/misc/{pv-drivers-lifecycle.markdown => pv-drivers-lifecycle.pandoc} (100%)
 rename docs/misc/{pvcalls.markdown => pvcalls.pandoc} (99%)
 rename docs/misc/{pvh.markdown => pvh.pandoc} (93%)
 rename docs/misc/{x86-xenpv-bootloader.markdown => x86-xenpv-bootloader.pandoc} (89%)
 rename docs/misc/{xen-command-line.markdown => xen-command-line.pandoc} (95%)
 rename docs/misc/{xenstore-paths.markdown => xenstore-paths.pandoc} (99%)
 rename docs/misc/{xl-psr.markdown => xl-psr.pandoc} (100%)
docs/Makefile +1 -1
index fba6673..8f933cf 100644
@@ -17,7 +17,7 @@ MARKDOWNSRC-y := $(sort $(shell find misc -name '*.markdown' -print))
 
 TXTSRC-y := $(sort $(shell find misc -name '*.txt' -print))
 
-PANDOCSRC-y := $(sort $(shell find process/ features/ misc/ specs/ -name '*.pandoc' -print))
+PANDOCSRC-y := $(sort $(shell find designs/ features/ misc/ process/ specs/ -name '*.pandoc' -print))
 
 # Documentation targets
 DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(MAN1SRC-y)) \
docs/designs/dmop.pandoc renamed from docs/designs/dmop.markdown +0 -0
similarity index 100%
rename from docs/designs/dmop.markdown
rename to docs/designs/dmop.pandoc
docs/features/dom0less.pandoc renamed from docs/features/dom0less.markdown +0 -0
similarity index 100%
rename from docs/features/dom0less.markdown
rename to docs/features/dom0less.pandoc
docs/misc/9pfs.pandoc renamed from docs/misc/9pfs.markdown +21 -21

117 lines not on this page · raw message

docs/misc/coverage.pandoc renamed from docs/misc/coverage.markdown +0 -0
similarity index 100%
rename from docs/misc/coverage.markdown
rename to docs/misc/coverage.pandoc
docs/misc/efi.pandoc renamed from docs/misc/efi.markdown +1 -1
similarity index 99%
rename from docs/misc/efi.markdown
rename to docs/misc/efi.pandoc
index 5b54314..23c1a27 100644
@@ -47,7 +47,7 @@ thus look like this (`#` serving as comment character):
 
     [global]
     default=sle11sp2
-    
+
     [sle11sp2]
     options=console=vga,com1 com1=57600 loglvl=all noreboot
     kernel=vmlinuz-3.0.31-0.4-xen [domain 0 command line options]
docs/misc/hvm-emulated-unplug.pandoc renamed from docs/misc/hvm-emulated-unplug.markdown +0 -0
similarity index 100%
rename from docs/misc/hvm-emulated-unplug.markdown
rename to docs/misc/hvm-emulated-unplug.pandoc
docs/misc/livepatch.pandoc renamed from docs/misc/livepatch.markdown +54 -54

302 lines not on this page · raw message

docs/misc/pv-drivers-lifecycle.pandoc renamed from docs/misc/pv-drivers-lifecycle.markdown +0 -0
similarity index 100%
rename from docs/misc/pv-drivers-lifecycle.markdown
rename to docs/misc/pv-drivers-lifecycle.pandoc
docs/misc/pvcalls.pandoc renamed from docs/misc/pvcalls.markdown +9 -9
similarity index 99%
rename from docs/misc/pvcalls.markdown
rename to docs/misc/pvcalls.pandoc
index d3f7f20..0c48b29 100644
@@ -45,7 +45,7 @@ community. If you are a Xen contributor you can skip this section.
   virtio device emulators.
 
 * VMX and SVM
-  
+
   On Intel processors, VMX is the CPU flag for VT-x, hardware
   virtualization support. It corresponds to SVM on AMD processors.
 
@@ -228,7 +228,7 @@ requests are allocated on the ring using the `RING_GET_REQUEST` macro.
 The list of commands below is in calling order.
 
 The format is defined as follows:
-    
+
     #define PVCALLS_SOCKET         0
     #define PVCALLS_CONNECT        1
     #define PVCALLS_RELEASE        2
@@ -885,7 +885,7 @@ buffers for transferring data, and, together, they are the data ring.
                                                     |  @4099->8196: out |
                                                     |  ref[1]           |
                                                     +-------------------+
- 
+
 
 #### Indexes Page Structure
 
@@ -950,7 +950,7 @@ buffers for transferring data, and, together, they are the data ring.
 
 The binary layout of `struct pvcalls_data_intf` follows:
 
-    0         4         8         12           64        68        72        76 
+    0         4         8         12           64        68        72        76
     +---------+---------+---------+-----//-----+---------+---------+---------+
     | in_cons | in_prod |in_error |  padding   |out_cons |out_prod |out_error|
     +---------+---------+---------+-----//-----+---------+---------+---------+
@@ -1003,7 +1003,7 @@ what [ring.h] does.
 #### Workflow
 
 The **in** and **out** arrays are used as circular buffers:
-    
+
     0                               sizeof(array) == ((1<<ring_order)<<PAGE_SHIFT)/2
     +-----------------------------------+
     |to consume|    free    |to consume |
@@ -1028,16 +1028,16 @@ left unconsumed in an array:
     		PVCALLS_RING_IDX ring_size)
     {
     	PVCALLS_RING_IDX size;
-    
+
     	if (prod == cons)
     		return 0;
-    
+
     	prod = _MASK_PVCALLS_IDX(prod, ring_size);
     	cons = _MASK_PVCALLS_IDX(cons, ring_size);
-    
+
     	if (prod == cons)
     		return ring_size;
-    
+
     	if (prod > cons)
     		size = prod - cons;
     	else {
docs/misc/pvh.pandoc renamed from docs/misc/pvh.markdown +5 -5
similarity index 93%
rename from docs/misc/pvh.markdown
rename to docs/misc/pvh.pandoc
index 1c9a00b..f892e6e 100644
@@ -35,7 +35,7 @@ All other processor registers and flag bits are unspecified. The OS is in
 charge of setting up it's own stack, GDT and IDT.
 
 The format of the boot start info structure (pointed to by %ebx) can be found
-in xen/include/public/arch-x86/hvm/start\_info.h
+in `xen/include/public/arch-x86/hvm/start_info.h`
 
 Other relevant information needed in order to boot a guest kernel
 (console page address, xenstore event channel...) can be obtained
@@ -50,7 +50,7 @@ AP startup can be performed using hypercalls or the local APIC if present.
 The following VCPU hypercalls can be used in order to bring up secondary vCPUs:
 
  * `VCPUOP_initialise` is used to set the initial state of the vCPU. The
-   argument passed to the hypercall must be of the type vcpu\_hvm\_context.
+   argument passed to the hypercall must be of the type vcpu_hvm_context.
    See `public/hvm/hvm_vcpu.h` for the layout of the structure. Note that
    this hypercall allows starting the vCPU in several modes (16/32/64bits),
    regardless of the mode the BSP is currently running on.
@@ -68,7 +68,7 @@ PVHv2 guests that have access to hardware (either emulated or real) will also
 have ACPI tables with the description of the hardware that's available to the
 guest. This applies to both privileged and unprivileged guests. A pointer to
 the position of the RSDP in memory (if present) can be fetched from the start
-info structure that's passed at boot time (field rsdp\_paddr).
+info structure that's passed at boot time (field `rsdp_paddr`).
 
 Description of paravirtualized devices will come from XenStore, just as it's
 done for HVM guests.
@@ -89,8 +89,8 @@ are available on native hardware.
 Interrupts from paravirtualized devices are delivered using event channels, see
 [Event Channel Internals][event_channels] for more detailed information about
 event channels. Delivery of those interrupts can be configured in the same way
-as HVM guests, check xen/include/public/hvm/params.h and
-xen/include/public/hvm/hvm\_op.h for more information about available delivery
+as HVM guests, check `xen/include/public/hvm/params.h` and
+`xen/include/public/hvm/hvm_op.h` for more information about available delivery
 methods.
 
 ## MTRR ##
docs/misc/x86-xenpv-bootloader.pandoc renamed from docs/misc/x86-xenpv-bootloader.markdown +4 -4
similarity index 89%
rename from docs/misc/x86-xenpv-bootloader.markdown
rename to docs/misc/x86-xenpv-bootloader.pandoc
index ec8854e..5825223 100644
@@ -31,9 +31,9 @@ filesystem as:
 
 Where `<ARCH>` is the first element of the GNU triplet e.g. one of:
 
- * i386 (nb only i386, not i686 etc), corresponding to the Xen
-   x86\_32(p) arch;
- * x86\_64, corresponding to the Xen x86\_64 arch;
+ * `i386` (nb only `i386`, not `i686` etc), corresponding to the Xen
+   `x86_32(p)` arch;
+ * `x86_64`, corresponding to the Xen `x86_64` arch;
 
 It is allowable for `/boot` to be a separate filesystem from `/` and
 therefore stage 1 bootloaders should search
@@ -44,6 +44,6 @@ and therefore it is not necessary to search for /pvboot-<ARCH>.elf.
 It is not in general possible under Xen for a bootloader to boot a
 kernel of a different width from itself, and this extends to
 chainloading from a stage one. Therefore it is permissible to have
-both `/boot/xen/pvboot-i386.elf` and `/boot/xen/pvboot-x86\_64.elf`
+both `/boot/xen/pvboot-i386.elf` and `/boot/xen/pvboot-x86_64.elf`
 present in a guest to be used by the appropriate stage 1 (e.g. for
 systems with 32-bit userspace and an optional 64-bit kernel).
docs/misc/xen-command-line.pandoc renamed from docs/misc/xen-command-line.markdown +94 -94

670 lines not on this page · raw message

docs/misc/xenstore-paths.pandoc renamed from docs/misc/xenstore-paths.markdown +3 -3
similarity index 99%
rename from docs/misc/xenstore-paths.markdown
rename to docs/misc/xenstore-paths.pandoc
index 33d2819..0a6b361 100644
@@ -467,11 +467,11 @@ the corresponding acpi_ feature flag is set in ~/platform.
 Indicates to the guest that this platform supports the multiprocessor
 suspend feature.
 
-#### ~/control/platform-feature-xs\_reset\_watches = (0|1) []
+#### ~/control/platform-feature-xs_reset_watches = (0|1) []
 
 Indicates to the guest that this platform supports the
 XS_RESET_WATCHES xenstore message. See
-[xen/include/public/io/xs\_wire.h][XSWIRE] for the XenStore wire
+[xen/include/public/io/xs_wire.h][XSWIRE] for the XenStore wire
 protocol definition.
 
 #### ~/control/laptop-slate-mode = (""|"laptop"|"slate") [w]
@@ -609,7 +609,7 @@ Path in xenstore to the backend, normally
 
 Trustworthy copy of /local/domain/$DOMID/backend/$KIND/$DEVID/$NODE.
 
-#### /libxl/$DOMID/dm-version ("qemu\_xen"|"qemu\_xen\_traditional") = [n,INTERNAL]
+#### /libxl/$DOMID/dm-version ("qemu_xen"|"qemu_xen_traditional") = [n,INTERNAL]
 
 The device model version for a domain.
 
docs/misc/xl-psr.pandoc renamed from docs/misc/xl-psr.markdown +0 -0
similarity index 100%
rename from docs/misc/xl-psr.markdown
rename to docs/misc/xl-psr.pandoc
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#5 lore raw

PATCH 3/4 docs/man: Fix/simplify generation of manpages

In reply to Andrew Cooper

The original intent of this patch was to rename xen-vbd-interface.markdown.7 to xen-vbd-interface.pandoc.7 to remove the final markdown file from the docs/ tree.

The DOC_MANx lists are broken. They contain MANxSRC-y twice, the first half with a partial %.pod substituation, and the second half with a partial %.markdown substitution. This is also the root cause behind the filtering activity in the uninstall-man$(i)-pages rule.

Furthermore, the logic for generating the manpage targets is unnecesserily repetative, owing to the layout of source files in the man/ directory.

Therefore, tackle the problem by renaming all of our manpage source files from "$FORMAT.$SECTION" to "$SECTION.$FORMAT". For the two xl.cfg.5 and xl.1 which are preprocessed by autoconf to contain path information, this requires updating configure.ac and .gitignore. The markdown to pandoc conversion is performed as well, as it is also a straight rename.

An ancillary benefit of this renaming is that text editors stand a chance of being able to work out the correct mode to use.

As for the makefile:

1) Break the MAN_SECTIONS list out of the GENERATE_MANPAGE_RULES loop, as we are going to use it a second time.
2) Do away with the individaul MANxSRC-y variables. Use a single list, derived from all *.pod and *.pandoc files, with their format suffixes removed.
3) Use a $(foreach ...) to generate the DOC_MANx lists, filling them with the correct content.
4) The DOC_HTML and DOC_TXT can now include all manpages with a single substitution, as they don't need to separate the manpages by section-numbered-directory.
5) Fix up the filenames in the manpage metarule to match the renaming.

No functional change.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>

AFAICT, the only reason the build doesn't get a hard failure is because the DOC_MANx lists end causing the man$(x)-page targets to gain build dependences on the (un-substituted) source files.

---
 .gitignore                                         |  4 +-
 docs/Makefile                                      | 52 +++++++---------------
 docs/configure                                     |  6 +--
 docs/configure.ac                                  |  4 +-
 ...ons.pod.7 => xen-pci-device-reservations.7.pod} |  0
 .../{xen-pv-channel.pod.7 => xen-pv-channel.7.pod} |  0
 docs/man/{xen-tscmode.pod.7 => xen-tscmode.7.pod}  |  0
 ...rface.markdown.7 => xen-vbd-interface.7.pandoc} |  0
 docs/man/{xen-vtpm.pod.7 => xen-vtpm.7.pod}        |  0
 docs/man/{xen-vtpmmgr.pod.7 => xen-vtpmmgr.7.pod}  |  0
 .../{xenstore-chmod.pod.1 => xenstore-chmod.1.pod} |  0
 docs/man/{xenstore-ls.pod.1 => xenstore-ls.1.pod}  |  0
 .../{xenstore-read.pod.1 => xenstore-read.1.pod}   |  0
 .../{xenstore-write.pod.1 => xenstore-write.1.pod} |  0
 docs/man/{xenstore.pod.1 => xenstore.1.pod}        |  0
 docs/man/{xentop.pod.1 => xentop.1.pod}            |  0
 docs/man/{xentrace.pod.8 => xentrace.8.pod}        |  0
 ...xentrace_format.pod.1 => xentrace_format.1.pod} |  0
 ...iguration.pod.5 => xl-disk-configuration.5.pod} |  0
 ...ration.pod.5 => xl-network-configuration.5.pod} |  0
 ...uma-placement.pod.7 => xl-numa-placement.7.pod} |  0
 docs/man/{xl.pod.1.in => xl.1.pod.in}              |  0
 docs/man/{xl.cfg.pod.5.in => xl.cfg.5.pod.in}      |  0
 docs/man/{xl.conf.pod.5 => xl.conf.5.pod}          |  0
 .../{xlcpupool.cfg.pod.5 => xlcpupool.cfg.5.pod}   |  0
 25 files changed, 23 insertions(+), 43 deletions(-)
 rename docs/man/{xen-pci-device-reservations.pod.7 => xen-pci-device-reservations.7.pod} (100%)
 rename docs/man/{xen-pv-channel.pod.7 => xen-pv-channel.7.pod} (100%)
 rename docs/man/{xen-tscmode.pod.7 => xen-tscmode.7.pod} (100%)
 rename docs/man/{xen-vbd-interface.markdown.7 => xen-vbd-interface.7.pandoc} (100%)
 rename docs/man/{xen-vtpm.pod.7 => xen-vtpm.7.pod} (100%)
 rename docs/man/{xen-vtpmmgr.pod.7 => xen-vtpmmgr.7.pod} (100%)
 rename docs/man/{xenstore-chmod.pod.1 => xenstore-chmod.1.pod} (100%)
 rename docs/man/{xenstore-ls.pod.1 => xenstore-ls.1.pod} (100%)
 rename docs/man/{xenstore-read.pod.1 => xenstore-read.1.pod} (100%)
 rename docs/man/{xenstore-write.pod.1 => xenstore-write.1.pod} (100%)
 rename docs/man/{xenstore.pod.1 => xenstore.1.pod} (100%)
 rename docs/man/{xentop.pod.1 => xentop.1.pod} (100%)
 rename docs/man/{xentrace.pod.8 => xentrace.8.pod} (100%)
 rename docs/man/{xentrace_format.pod.1 => xentrace_format.1.pod} (100%)
 rename docs/man/{xl-disk-configuration.pod.5 => xl-disk-configuration.5.pod} (100%)
 rename docs/man/{xl-network-configuration.pod.5 => xl-network-configuration.5.pod} (100%)
 rename docs/man/{xl-numa-placement.pod.7 => xl-numa-placement.7.pod} (100%)
 rename docs/man/{xl.pod.1.in => xl.1.pod.in} (100%)
 rename docs/man/{xl.cfg.pod.5.in => xl.cfg.5.pod.in} (100%)
 rename docs/man/{xl.conf.pod.5 => xl.conf.5.pod} (100%)
 rename docs/man/{xlcpupool.cfg.pod.5 => xlcpupool.cfg.5.pod} (100%)
.gitignore +2 -2
index f11e613..26bc583 100644
@@ -45,8 +45,8 @@ build-*
 dist/*
 docs/tmp.*
 docs/html/
-docs/man/xl.cfg.pod.5
-docs/man/xl.pod.1
+docs/man/xl.cfg.5.pod
+docs/man/xl.1.pod
 docs/man1/
 docs/man5/
 docs/man7/
docs/Makefile +16 -36

122 lines not on this page · raw message

docs/configure +3 -3
index a3b4cb6..3e0089c 100755
@@ -1752,7 +1752,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
-ac_config_files="$ac_config_files ../config/Docs.mk man/xl.cfg.pod.5 man/xl.pod.1"
+ac_config_files="$ac_config_files ../config/Docs.mk man/xl.cfg.5.pod man/xl.1.pod"
 
 ac_aux_dir=
 for ac_dir in ../ "$srcdir"/../; do
@@ -3031,8 +3031,8 @@ for ac_config_target in $ac_config_targets
 do
   case $ac_config_target in
     "../config/Docs.mk") CONFIG_FILES="$CONFIG_FILES ../config/Docs.mk" ;;
-    "man/xl.cfg.pod.5") CONFIG_FILES="$CONFIG_FILES man/xl.cfg.pod.5" ;;
-    "man/xl.pod.1") CONFIG_FILES="$CONFIG_FILES man/xl.pod.1" ;;
+    "man/xl.cfg.5.pod") CONFIG_FILES="$CONFIG_FILES man/xl.cfg.5.pod" ;;
+    "man/xl.1.pod") CONFIG_FILES="$CONFIG_FILES man/xl.1.pod" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
docs/configure.ac +2 -2
index a2929c4..5777162 100644
@@ -7,8 +7,8 @@ AC_INIT([Xen Hypervisor Documentation], m4_esyscmd([../version.sh ../xen/Makefil
 AC_CONFIG_SRCDIR([misc/xen-command-line.markdown])
 AC_CONFIG_FILES([
 ../config/Docs.mk
-man/xl.cfg.pod.5
-man/xl.pod.1
+man/xl.cfg.5.pod
+man/xl.1.pod
 ])
 AC_CONFIG_AUX_DIR([../])
 
docs/man/xen-pci-device-reservations.7.pod renamed from docs/man/xen-pci-device-reservations.pod.7 +0 -0
similarity index 100%
rename from docs/man/xen-pci-device-reservations.pod.7
rename to docs/man/xen-pci-device-reservations.7.pod
docs/man/xen-pv-channel.7.pod renamed from docs/man/xen-pv-channel.pod.7 +0 -0
similarity index 100%
rename from docs/man/xen-pv-channel.pod.7
rename to docs/man/xen-pv-channel.7.pod
docs/man/xen-tscmode.7.pod renamed from docs/man/xen-tscmode.pod.7 +0 -0
similarity index 100%
rename from docs/man/xen-tscmode.pod.7
rename to docs/man/xen-tscmode.7.pod
docs/man/xen-vbd-interface.7.pandoc renamed from docs/man/xen-vbd-interface.markdown.7 +0 -0
similarity index 100%
rename from docs/man/xen-vbd-interface.markdown.7
rename to docs/man/xen-vbd-interface.7.pandoc
docs/man/xen-vtpm.7.pod renamed from docs/man/xen-vtpm.pod.7 +0 -0
similarity index 100%
rename from docs/man/xen-vtpm.pod.7
rename to docs/man/xen-vtpm.7.pod
docs/man/xen-vtpmmgr.7.pod renamed from docs/man/xen-vtpmmgr.pod.7 +0 -0
similarity index 100%
rename from docs/man/xen-vtpmmgr.pod.7
rename to docs/man/xen-vtpmmgr.7.pod
docs/man/xenstore-chmod.1.pod renamed from docs/man/xenstore-chmod.pod.1 +0 -0
similarity index 100%
rename from docs/man/xenstore-chmod.pod.1
rename to docs/man/xenstore-chmod.1.pod
docs/man/xenstore-ls.1.pod renamed from docs/man/xenstore-ls.pod.1 +0 -0
similarity index 100%
rename from docs/man/xenstore-ls.pod.1
rename to docs/man/xenstore-ls.1.pod
docs/man/xenstore-read.1.pod renamed from docs/man/xenstore-read.pod.1 +0 -0
similarity index 100%
rename from docs/man/xenstore-read.pod.1
rename to docs/man/xenstore-read.1.pod
docs/man/xenstore-write.1.pod renamed from docs/man/xenstore-write.pod.1 +0 -0
similarity index 100%
rename from docs/man/xenstore-write.pod.1
rename to docs/man/xenstore-write.1.pod
docs/man/xenstore.1.pod renamed from docs/man/xenstore.pod.1 +0 -0
similarity index 100%
rename from docs/man/xenstore.pod.1
rename to docs/man/xenstore.1.pod
docs/man/xentop.1.pod renamed from docs/man/xentop.pod.1 +0 -0
similarity index 100%
rename from docs/man/xentop.pod.1
rename to docs/man/xentop.1.pod
docs/man/xentrace.8.pod renamed from docs/man/xentrace.pod.8 +0 -0
similarity index 100%
rename from docs/man/xentrace.pod.8
rename to docs/man/xentrace.8.pod
docs/man/xentrace_format.1.pod renamed from docs/man/xentrace_format.pod.1 +0 -0
similarity index 100%
rename from docs/man/xentrace_format.pod.1
rename to docs/man/xentrace_format.1.pod
docs/man/xl-disk-configuration.5.pod renamed from docs/man/xl-disk-configuration.pod.5 +0 -0
similarity index 100%
rename from docs/man/xl-disk-configuration.pod.5
rename to docs/man/xl-disk-configuration.5.pod
docs/man/xl-network-configuration.5.pod renamed from docs/man/xl-network-configuration.pod.5 +0 -0
similarity index 100%
rename from docs/man/xl-network-configuration.pod.5
rename to docs/man/xl-network-configuration.5.pod
docs/man/xl-numa-placement.7.pod renamed from docs/man/xl-numa-placement.pod.7 +0 -0
similarity index 100%
rename from docs/man/xl-numa-placement.pod.7
rename to docs/man/xl-numa-placement.7.pod
docs/man/xl.1.pod.in renamed from docs/man/xl.pod.1.in +0 -0
similarity index 100%
rename from docs/man/xl.pod.1.in
rename to docs/man/xl.1.pod.in
docs/man/xl.cfg.5.pod.in renamed from docs/man/xl.cfg.pod.5.in +0 -0
similarity index 100%
rename from docs/man/xl.cfg.pod.5.in
rename to docs/man/xl.cfg.5.pod.in
docs/man/xl.conf.5.pod renamed from docs/man/xl.conf.pod.5 +0 -0
similarity index 100%
rename from docs/man/xl.conf.pod.5
rename to docs/man/xl.conf.5.pod
docs/man/xlcpupool.cfg.5.pod renamed from docs/man/xlcpupool.cfg.pod.5 +0 -0
similarity index 100%
rename from docs/man/xlcpupool.cfg.pod.5
rename to docs/man/xlcpupool.cfg.5.pod
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#9 lore raw

PATCH 4/4 docs: Remove Markdown from configure.ac and the build instructions

In reply to Andrew Cooper

Now that all use of markdown as been replaced with pandoc, drop it from configure.ac and from the docs/ Makefile.

Instead of just deleting the markdown reference from README, adjust the line to mention the other optional packages required for documentation.

Drop markdown from travis and the docker containers. While tweaking the CentOS containers, pull in transfig and pandoc seeing as EPEL is set up, to bring them in line with the Debian based containers.

----
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Doug Goldstein <[email protected]>

---
 .travis.yml                                        |  1 -
 README                                             |  3 +-
 automation/build/centos/7.2.dockerfile             |  3 +-
 automation/build/centos/7.dockerfile               |  3 +-
 automation/build/debian/jessie-i386.dockerfile     |  1 -
 automation/build/debian/jessie.dockerfile          |  1 -
 automation/build/debian/stretch-i386.dockerfile    |  1 -
 automation/build/debian/stretch.dockerfile         |  1 -
 .../build/debian/unstable-arm64v8.dockerfile       |  1 -
 automation/build/debian/unstable-i386.dockerfile   |  1 -
 automation/build/debian/unstable.dockerfile        |  1 -
 automation/build/ubuntu/bionic.dockerfile          |  1 -
 automation/build/ubuntu/trusty.dockerfile          |  1 -
 automation/build/ubuntu/xenial.dockerfile          |  1 -
 config/Docs.mk.in                                  |  1 -
 docs/Makefile                                      | 22 +--------
 docs/configure                                     | 57 ----------------------
 docs/configure.ac                                  |  1 -
 18 files changed, 8 insertions(+), 93 deletions(-)
.travis.yml +0 -1
index f93dd68..2266b4d 100644
@@ -62,7 +62,6 @@ addons:
             - libnl-3-dev
             - ocaml-nox
             - libfindlib-ocaml-dev
-            - markdown
             - transfig
             - pandoc
             - gcc-arm-linux-gnueabihf
README +2 -1
index 3a497fb..fd6f4f1 100644
@@ -73,7 +73,8 @@ disabled at compile time:
       ocaml-findlib). Required to build ocaml components which
       includes the alternative ocaml xenstored.
     * cmake (if building vtpm stub domains)
-    * markdown
+    * pandoc, transfig, pod2{man,html,text} for rendering various pieces of
+      documentation into alternative formats
     * figlet (for generating the traditional Xen start of day banner)
     * systemd daemon development files
     * Development install of libnl3 (e.g., libnl-3-200,
automation/build/centos/7.2.dockerfile +2 -1
index c2f46b6..2d82b4d 100644
@@ -40,7 +40,8 @@ RUN rpm --rebuilddb && \
         git \
         wget \
         acpica-tools \
-        python-markdown \
+        transfig \
+        pandoc \
         patch \
         checkpolicy \
         dev86 \
automation/build/centos/7.dockerfile +2 -1
index e37d9d7..f3d2d97 100644
@@ -38,7 +38,8 @@ RUN yum -y install \
         git \
         wget \
         acpica-tools \
-        python-markdown \
+        transfig \
+        pandoc \
         patch \
         checkpolicy \
         dev86 \
automation/build/debian/jessie-i386.dockerfile +0 -1
index 7a05004..680a116 100644
@@ -37,7 +37,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/debian/jessie.dockerfile +0 -1
index bd04209..2082cda 100644
@@ -35,7 +35,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/debian/stretch-i386.dockerfile +0 -1
index 65247a4..acb1749 100644
@@ -37,7 +37,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/debian/stretch.dockerfile +0 -1
index 9be09c5..3f77001 100644
@@ -35,7 +35,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/debian/unstable-arm64v8.dockerfile +0 -1
index 57db46a..5e0f480 100644
@@ -35,7 +35,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/debian/unstable-i386.dockerfile +0 -1
index ffb9f11..f3b4e10 100644
@@ -37,7 +37,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/debian/unstable.dockerfile +0 -1
index 0ba0c05..4513b2c 100644
@@ -35,7 +35,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/ubuntu/bionic.dockerfile +0 -1
index 8de67ef..8a89928 100644
@@ -35,7 +35,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/ubuntu/trusty.dockerfile +0 -1
index 1d04bcc..3bb8e50 100644
@@ -35,7 +35,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
automation/build/ubuntu/xenial.dockerfile +0 -1
index 37869e3..7e1cc02 100644
@@ -35,7 +35,6 @@ RUN apt-get update && \
         libnl-3-dev \
         ocaml-nox \
         libfindlib-ocaml-dev \
-        markdown \
         transfig \
         pandoc \
         checkpolicy \
config/Docs.mk.in +0 -1
index 33bd529..e76e5cd 100644
@@ -5,6 +5,5 @@ FIG2DEV             := @FIG2DEV@
 POD2MAN             := @POD2MAN@
 POD2HTML            := @POD2HTML@
 POD2TEXT            := @POD2TEXT@
-MARKDOWN            := @MARKDOWN@
 PANDOC              := @PANDOC@
 PERL                := @PERL@
docs/Makefile +2 -20
index 2867efc..013fa8e 100644
@@ -11,8 +11,6 @@ MAN_SECTIONS    := 1 5 7 8
 # Documentation sources to build
 MAN-SRC-y := $(sort $(basename $(wildcard man/*.pod man/*.pandoc)))
 
-MARKDOWNSRC-y := $(sort $(shell find misc -name '*.markdown' -print))
-
 TXTSRC-y := $(sort $(shell find misc -name '*.txt' -print))
 
 PANDOCSRC-y := $(sort $(shell find designs/ features/ misc/ process/ specs/ -name '*.pandoc' -print))
@@ -23,17 +21,14 @@ $(foreach i,$(MAN_SECTIONS), \
                                    $(filter %.$(i),$(MAN-SRC-y)))))
 
 DOC_HTML := html/SUPPORT.html \
-            $(patsubst %.markdown,html/%.html,$(MARKDOWNSRC-y)) \
             $(patsubst %.pandoc,html/%.html,$(PANDOCSRC-y)) \
             $(patsubst %,html/%.html,$(MAN-SRC-y)) \
             $(patsubst %.txt,html/%.txt,$(TXTSRC-y)) \
             $(patsubst %,html/hypercall/%/index.html,$(DOC_ARCHES))
 DOC_TXT  := $(patsubst %.txt,txt/%.txt,$(TXTSRC-y)) \
-            $(patsubst %.markdown,txt/%.txt,$(MARKDOWNSRC-y)) \
             $(patsubst %.pandoc,txt/%.txt,$(PANDOCSRC-y)) \
             $(patsubst %,txt/%.txt,$(MAN-SRC-y))
-DOC_PDF  := $(patsubst %.markdown,pdf/%.pdf,$(MARKDOWNSRC-y)) \
-            $(patsubst %.pandoc,pdf/%.pdf,$(PANDOCSRC-y))
+DOC_PDF  := $(patsubst %.pandoc,pdf/%.pdf,$(PANDOCSRC-y))
 
 # Top level build targets
 .PHONY: all
@@ -181,14 +176,6 @@ uninstall: uninstall-man-pages uninstall-html
 html/index.html: $(DOC_HTML) $(CURDIR)/gen-html-index INDEX
 	$(PERL) -w -- $(CURDIR)/gen-html-index -i INDEX html $(DOC_HTML)
 
-html/%.html: %.markdown
-ifneq ($(MARKDOWN),)
-	@$(INSTALL_DIR) $(@D)
-	$(MARKDOWN) $< > $@
-else
-	@echo "markdown not installed; skipping $@"
-endif
-
 html/%.txt: %.txt
 	@$(INSTALL_DIR) $(@D)
 	$(INSTALL_DATA) $< $@
@@ -213,10 +200,6 @@ txt/%.txt: %.txt
 	@$(INSTALL_DIR) $(@D)
 	$(INSTALL_DATA) $< $@
 
-txt/%.txt: %.markdown
-	@$(INSTALL_DIR) $(@D)
-	$(INSTALL_DATA) $< $@
-
 # Metarule for generating pandoc rules.
 define GENERATE_PANDOC_RULE_RAW
 $(1): $(2)
@@ -234,9 +217,8 @@ endef
 $(eval $(call GENERATE_PANDOC_RULE,pdf,pandoc))   # pdf/%.pdf: %.pandoc
 $(eval $(call GENERATE_PANDOC_RULE,txt,pandoc))   # txt/%.txt: %.pandoc
 $(eval $(call GENERATE_PANDOC_RULE,html,pandoc))  # html/%.html: %.pandoc
-$(eval $(call GENERATE_PANDOC_RULE,pdf,markdown)) # pdf/%.pdf: %.markdown
 
-$(eval $(call GENERATE_PANDOC_RULE_RAW,html/SUPPORT.html,$(XEN_ROOT)/SUPPORT.md)) # pdf/%.pdf: %.markdown
+$(eval $(call GENERATE_PANDOC_RULE_RAW,html/SUPPORT.html,$(XEN_ROOT)/SUPPORT.md))
 
 ifeq (,$(findstring clean,$(MAKECMDGOALS)))
 $(XEN_ROOT)/config/Docs.mk:
docs/configure +0 -57

81 lines not on this page · raw message

docs/configure.ac +0 -1
index 5777162..4927b97 100644
@@ -25,7 +25,6 @@ AX_DOCS_TOOL_PROG([POD2MAN], [pod2man])
 AX_DOCS_TOOL_PROG([POD2HTML], [pod2html])
 AX_DOCS_TOOL_PROG([POD2TEXT], [pod2text])
 AX_DOCS_TOOL_PROG([PANDOC], [pandoc])
-AX_DOCS_TOOL_PROGS([MARKDOWN], [markdown], [markdown markdown_py])
 
 AC_ARG_VAR([PERL], [Path to Perl parser])
 AX_PATH_PROG_OR_FAIL([PERL], [perl])
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 4/4
#10 lore raw

Re: [PATCH 4/4] docs: Remove Markdown from configure.ac and the build instructions

Andrew Cooper writes ("[PATCH 4/4] docs: Remove Markdown from configure.ac and the build instructions"):

Quoted 9 lines

Now that all use of markdown as been replaced with pandoc, drop it from configure.ac and from the docs/ Makefile.

Instead of just deleting the markdown reference from README, adjust the line to mention the other optional packages required for documentation.

Drop markdown from travis and the docker containers. While tweaking the CentOS containers, pull in transfig and pandoc seeing as EPEL is set up, to bring them in line with the Debian based containers.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v1 1/4
#2 lore raw

Re: [PATCH 1/4] docs/pandoc: Don't escape underscores in the middle of text

In reply to Andrew Cooper

Andrew Cooper writes ("[PATCH 1/4] docs/pandoc: Don't escape underscores in the middle of text"):

Quoted 10 lines

Pandoc deliberately (and contrary to markdown) doesn't treat underscores in the middle of normal text as emphasis markers, as this is almost always the unhelpful interpretation.

For text which is emphasised using _, an underscore in the middle is interpreted, but the emphasis marker can be switched to * instead.

One problem case is where we use {} globbing with identifier names, as it counts as a word break. Therefore, we do need to retain the escaped underscore immediately following a closing brace.

I'm happy to take your word for this.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v1 2/4
#4 lore raw

Re: [PATCH 2/4] docs/markdown: Switch to using pandoc, and fix underscore escaping

In reply to Andrew Cooper

Andrew Cooper writes ("[PATCH 2/4] docs/markdown: Switch to using pandoc, and fix underscore escaping"):

Quoted 3 lines

c/s a3a99df44 "docs/cmdline: Rewrite the cpuid_mask_* section" completely forgot about how markdown gets rendered to HTML (as opposed to PDF), because we use different translators depending on the destination format.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#6 lore raw

Re: [PATCH 3/4] docs/man: Fix/simplify generation of manpages

In reply to Andrew Cooper

Andrew Cooper writes ("[PATCH 3/4] docs/man: Fix/simplify generation of manpages"):

Quoted 4 lines

The DOC_MANx lists are broken. They contain MANxSRC-y twice, the first half with a partial %.pod substituation, and the second half with a partial %.markdown substitution. This is also the root cause behind the filtering activity in the uninstall-man$(i)-pages rule.

...

Quoted 14 lines

As for the makefile:

1) Break the MAN_SECTIONS list out of the GENERATE_MANPAGE_RULES loop, as we are going to use it a second time.
2) Do away with the individaul MANxSRC-y variables. Use a single list, derived from all *.pod and *.pandoc files, with their format suffixes removed.
3) Use a $(foreach ...) to generate the DOC_MANx lists, filling them with the correct content.
4) The DOC_HTML and DOC_TXT can now include all manpages with a single substitution, as they don't need to separate the manpages by section-numbered-directory.
5) Fix up the filenames in the manpage metarule to match the renaming.

Quoted 1 line

No functional change.

How confident are you that this does not break -j-safety ? I very briefly eyeballed it and nothing jumped out at me. I wonder if I should review it properly. What do you think ?

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#7 lore raw

Re: [PATCH 3/4] docs/man: Fix/simplify generation of manpages

Quoted 20 lines · Ian Jackson

Andrew Cooper writes ("[PATCH 3/4] docs/man: Fix/simplify generation of manpages"):

Quoted 4 lines

The DOC_MANx lists are broken. They contain MANxSRC-y twice, the first half with a partial %.pod substituation, and the second half with a partial %.markdown substitution. This is also the root cause behind the filtering activity in the uninstall-man$(i)-pages rule.

...

Quoted 14 lines

As for the makefile:

1) Break the MAN_SECTIONS list out of the GENERATE_MANPAGE_RULES loop, as we are going to use it a second time.
2) Do away with the individaul MANxSRC-y variables. Use a single list, derived from all *.pod and *.pandoc files, with their format suffixes removed.
3) Use a $(foreach ...) to generate the DOC_MANx lists, filling them with the correct content.
4) The DOC_HTML and DOC_TXT can now include all manpages with a single substitution, as they don't need to separate the manpages by section-numbered-directory.
5) Fix up the filenames in the manpage metarule to match the renaming.

Quoted 4 lines
Quoted 1 line

No functional change.

How confident are you that this does not break -j-safety ? I very briefly eyeballed it and nothing jumped out at me. I wonder if I should review it properly. What do you think ?

I'm fairly sure I haven't touched anything which affects -j-safety.

The only content which has changed is to lose the mal-substituted origin source files from DOC_MANx.  These caused unnecessary dependencies between man$(1)-pages and the original source files, which have no rule to trigger, and will be considered up to date.

All the properly substituted content in DOC_MANx is identical to what it was before.  Other earlier lists were just intermediate processing between the $(wildcard ) and the DOC_* lists, and are evaluated immediately with :=.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by
#8 lore raw

Re: [PATCH 3/4] docs/man: Fix/simplify generation of manpages

Andrew Cooper writes ("Re: [PATCH 3/4] docs/man: Fix/simplify generation of manpages"):

Quoted 11 lines

I'm fairly sure I haven't touched anything which affects -j-safety.

The only content which has changed is to lose the mal-substituted origin source files from DOC_MANx.  These caused unnecessary dependencies between man$(1)-pages and the original source files, which have no rule to trigger, and will be considered up to date.

All the properly substituted content in DOC_MANx is identical to what it was before.  Other earlier lists were just intermediate processing between the $(wildcard ) and the DOC_* lists, and are evaluated immediately with :=.

OK. You have convinced me that you have thought about this in roughly the right kind of way :-), even though I haven't followed your reasoning through the code so that I could actually verify it.

Thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#11 lore raw

Re: [PATCH 4/4] docs: Remove Markdown from configure.ac and the build instructions

In reply to Andrew Cooper
Quoted 33 lines · Andrew Cooper

Now that all use of markdown as been replaced with pandoc, drop it from configure.ac and from the docs/ Makefile.

Instead of just deleting the markdown reference from README, adjust the line to mention the other optional packages required for documentation.

Drop markdown from travis and the docker containers. While tweaking the CentOS containers, pull in transfig and pandoc seeing as EPEL is set up, to bring them in line with the Debian based containers.

----
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Doug Goldstein <[email protected]>

---
 .travis.yml                                        |  1 -
 README                                             |  3 +-
 automation/build/centos/7.2.dockerfile             |  3 +-
 automation/build/centos/7.dockerfile               |  3 +-
 automation/build/debian/jessie-i386.dockerfile     |  1 -
 automation/build/debian/jessie.dockerfile          |  1 -
 automation/build/debian/stretch-i386.dockerfile    |  1 -
 automation/build/debian/stretch.dockerfile         |  1 -
 .../build/debian/unstable-arm64v8.dockerfile       |  1 -
 automation/build/debian/unstable-i386.dockerfile   |  1 -
 automation/build/debian/unstable.dockerfile        |  1 -
Quoted 8 lines
 automation/build/ubuntu/bionic.dockerfile          |  1 -
 automation/build/ubuntu/trusty.dockerfile          |  1 -
 automation/build/ubuntu/xenial.dockerfile          |  1 -
 config/Docs.mk.in                                  |  1 -
 docs/Makefile                                      | 22 +--------
 docs/configure                                     | 57 ----------------------
 docs/configure.ac                                  |  1 -
 18 files changed, 8 insertions(+), 93 deletions(-)

Having discussed this with Wei, the docker containers are also used by staging-4.11, so markdown should be.  It is an optional dependency, but we should still try building the docs in older branches.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel