Ok, great. xdoc::save already has some arguments controlling strictness (see
below). So I propose adding more such options. Probably we should make the
defaults be non-strict (like :the current defaults of error nil and
:broken-links-limit nil) but transition to using the strict options when
building the main manual. Sound ok?
Here is the current usage:
(save <target-dir>
[:redef-okp bool] ;; default is nil
[:zip-p bool] ;; default is t
[:logo-image path] ;; default is nil
[:error bool] ;; default is nil
[:broken-links-limit nil-or-nat] ;; default is nil
)
I'm working on adding a new option, :error-on-non-existent-parents, in my PR #1909.
Thanks,
-Eric
On 3/3/26 10:44 AM, Sol Swords wrote:
> Yes, xdoc::save.
>
> On Tue, Mar 3, 2026 at 12:35 PM Eric Smith <
eric....@kestrel.edu
> <mailto:
eric....@kestrel.edu>> wrote:
>
> Sol,
>
> What command do you use to build these small manuals? xdoc::save or some
> variant of that?
>
> Thanks,
> -Eric
>
> On 3/3/26 9:37 AM, Sol Swords wrote:
> > I think this makes sense, but I would like there to be an easy way to
> turn off
> > the strictness. Sometimes I just want to build a small manual to see what a
> > topic looks like and I don't care if there are problems in other topics or
> > connectivity or whatever.
> > -Sol
> >
> > On Mon, Mar 2, 2026 at 6:12 PM Matt Kaufmann
> <
matthew.j...@gmail.com <mailto:
matthew.j...@gmail.com>
> > <mailto:
matthew.j...@gmail.com
> <mailto:
matthew.j...@gmail.com>>> wrote:
> >
> > Hi Eric,
> >
> > You've got my vote. I'm pretty sure that building the acl2-only manual
> > isn't generating any such warnings (I just checked my copy of
> > books/system/doc/render-doc.cert.out).
> >
> > Maybe there's no loss in removing the tests that deliberately
> > exercise the current warnings, as an easy way to prevent them
> > from turning into errors.
> >
> > But I think your concern about custom manuals is valid. You
> > could document the use of set-warnings-as-errors (which is
> > documented) to avoid errors -- I think.
> >
> > -- Matt
> >
> > On Mon, Mar 2, 2026 at 4:05 PM Eric Smith <
eric....@kestrel.edu
> <mailto:
eric....@kestrel.edu>
> pull/1909> <
https://github.com/acl2/acl2/ <
https://github.com/acl2/acl2/>
> > pull/1909>
> >
> > Other things that probably should be errors:
> > - topics with no parents
> > - links to topics that don't exist
> > - subtopic ordering declarations that mention things that are not
> subtopics
> > - shadowed topics
> >
> > For some of these, there are deliberate instances used for testing
> > and/or known instances that will be whitelisted. But it would be
> good
> > to ensure that more of these issues are not introduced by accident.
> >
> > Thoughts? One thing to think about would be the impact on custom
> > manuals and/or the "ACL2 only" manual (without the books). (I
> suppose
> > we could
> > do something like adding a strictp flag that is nil for manuals other
> > than the
> > main one.)
> >
> > Thanks,
> > -Eric
> >
> > --
> > --
> > ACL2-books help:
> > To post new messages:
acl2-...@googlegroups.com <mailto:
acl2-
>
bo...@googlegroups.com> <mailto:
acl2- <mailto:
acl2->
> >
bo...@googlegroups.com <mailto:
bo...@googlegroups.com>>
>
books-un...@googlegroups.com> <mailto:
acl2-books- <mailto:
acl2-books->
> >
unsub...@googlegroups.com <mailto:
unsub...@googlegroups.com>>
> > More options:
http://groups.google.com/group/acl2-books?hl=en
> <
http://groups.google.com/group/acl2-books?hl=en> <http://
>
books%2Bunsu...@googlegroups.com> <mailto:
acl2- <mailto:
acl2->
> >
books+un...@googlegroups.com
> <mailto:
books%2Bunsu...@googlegroups.com>>.
> books/ <
https://groups.google.com/d/msgid/acl2-books/>
> >
> CAOQvmW%2BjeBTtJdZFfPyyjPjBS5EXwrgw_zg6idFmgOyO2sz07Q%
40mail.gmail.com
> <
http://40mail.gmail.com>
> > <
https://groups.google.com/d/msgid/acl2-books/ <https://
>
groups.google.com/d/msgid/acl2-books/>
> >
> CAOQvmW%2BjeBTtJdZFfPyyjPjBS5EXwrgw_zg6idFmgOyO2sz07Q%
40mail.gmail.com
> <
http://40mail.gmail.com>?
> > utm_medium=email&utm_source=footer>.
> >
>