Hi, On Mon, Apr 20, 2026 at 12:07 PM Dridi Boukelmoune <[email protected]> wrote:
> On Mon, Apr 20: > > I would really prefer not to author JSON by hand, and the same goes > for YAML. The advantage of generating code from the documentation is > that we can literally "just write" documentation. As of today with > reasonable formatting constraints like "Readable from:" etc in the > vcl-var manual. Adding an indirection would trade a low pain point for > a high one. > Good point. I think we should just rework *vsl2rst.c* into *vsl2rst.py* and add a tbl_parse.py module that reads the X-macro files would solve the problem quite well. That would keep the C code as is, making it still the source of truth, but we'll avoid invoking just compiled binaries to generate the docs, as such skipping any cross-arch problems as python will do the same work on both host and target arch. Is a PR implementing this welcome? Per. -- Per Buer Varnish Software
_______________________________________________ vinyl-dev mailing list [email protected] https://vinyl-cache.org/lists/mailman/listinfo/vinyl-dev
