WPEBackend-fdo icon indicating copy to clipboard operation
WPEBackend-fdo copied to clipboard

Add documentation for the public API

Open aperezdc opened this issue 6 years ago • 5 comments

Probably we would want to use GTK-Doc, which despite the name does not need GTK+ at all. That would allow cross-linking to the WPE WebKit API reference if needed.

See also https://github.com/WebPlatformForEmbedded/libwpe/issues/37 and BWO#178900.

aperezdc avatar Nov 22 '18 13:11 aperezdc

Or Hotdoc?

philn avatar Nov 22 '18 14:11 philn

@philn Is that this HotDoc? I didn't know about it, looks like a good option as well!

aperezdc avatar Nov 22 '18 14:11 aperezdc

Yes! GStreamer is migrating to it as well.

philn avatar Nov 22 '18 14:11 philn

@aperezdc is this issue up for grabs from beginners? If yes, please provide me with some more help about how to start with the work.

In-vincible avatar Feb 08 '19 12:02 In-vincible

@In-vincible Some help documenting the public API would definitely be appreciated. The tricky bit is to have the support for building the documentation; I have just posted #29 to wire HotDoc into the build system, once that patch merged, you should be able to do:

cmake -DBUILD_DOCS=ON
make Documentation
xdg-open Documentation/html/c-index.html 

Once that is working, you can start adding documentation next to function declarations using the GTK-Doc syntax (HotDoc uses the same syntax for C code), and re-run make Documentation to regenerate the HTML pages with your changes.

Please do ask if you need some more help from that point on, and remember that you can find us in the #webkit channel in the Freenode IRC :wave:

aperezdc avatar Feb 08 '19 12:02 aperezdc