Testing new or revised XDOC strings
Contributors to the XDOC manual should check that their XDOC strings are well-formed. This topic shows an easy way to check well-formedness of XDOC strings, without the need to build the manual. Also discussed is a way to check for the absence of broken links by building the manual.
To test a topic, first submit a suitable in-package form if
necessary, and then to test your topic named, say,
(include-book "xdoc/top" :dir :system) (defxdoc ...) ; or whatever form you have that includes an XDOC string :doc foo ; a bit noisy and slow the first time, but could do this twice
The output should be free of obvious errors. Otherwise, you can use the
error message to debug the error; then submit your form and
A XDOC feature (the second ``NEW'' feature in the xdoc
documentation) avoids the need to invoke
Checking for broken links requires you to build the manual; for
instructions, see the section ``Building the manual'' in the topic ACL2::books-certification. This build will create a file
;;; ACL2____SOME-BROKEN-LINK: ;;; from ACL2-DOC
If any other broken links are reported, you can modify the parent topic
(e.g.,
The