I'm happy to announce wayfolio, a new Wayland protocol documentation
generator.

You can see an instance of the generated documentation here:
https://wayfolio.github.io.

The generator has the following features:

- The documentation is fully static with no server-side component.
- References to interfaces and enums link to their definitions.
- Such references are automatically detected in descriptions.
- Globals show a compositor-support table.
- Users can paste or link a protocol file to generate docs ad-hoc.
- No JavaScript except for the ad-hoc doc generation.
- Built-in light and dark modes.
- The documentation works equally well on desktops and mobile devices.

Wayfolio consists of three components:

1. https://github.com/wayfolio/wayfolio

   The underlying library used to generate the documentation.

2. https://github.com/wayfolio/compositor-support

   A database describing which compositors support which globals at
   which version.

3. https://github.com/wayfolio/wayfolio.github.io

   The generator for the https://wayfolio.github.io instance.

The compositor-support repository uses a CODEOWNERS file to grant
write access to the per-compositor JSON files. If you are a developer
and want to maintain your file, please open a PR adding yourself as a
code owner. You will then be able to modify the file independently.

The wayfolio.github.io generator uses GitHub actions to automatically
generate the https://wayfolio.github.io instance every 6 hours. It
uses https://github.com/mahkoh/wayland-db to source the protocol
definitions. wayland-db is itself updated every 6 hours, which means
that https://wayfolio.github.io should not lag behind upstream
protocol changes by more than 12 hours.

If there is interest, it should be easy to host documentation on FDO.
Such a generator could source the wayland and wayland-protocols repos
directly instead of relying on wayland-db.

Wayfolio and wayfolio.github.io are GPL 3 licensed.
The compositor-support database is CC0 1.0 licensed.

Reply via email to