pgi-docgen icon indicating copy to clipboard operation
pgi-docgen copied to clipboard

Make it possible to replace inline code with python version

Open lazka opened this issue 11 years ago • 2 comments

api/Gtk_3.0/classes/TreeModelSort

Possible solution:

Each python code fragment is saved in "Namespace-Version-Attribute-.py" e.g. "Gtk-3.0.TreeModelSort-fcc1cdba86b0c37d532480f7e7e3ecf2.py".

The hash gets computed using the C inline code. pgi-docgen replaces it with the python code or notifies if a code file isn't used anymore and needs updating/review.

lazka avatar Jan 14 '14 10:01 lazka

On a second though, not worth it. Time is better spend on actual documentation with proper examples.

lazka avatar Mar 02 '14 23:03 lazka

And reopen, here is how valadoc does it: https://github.com/flobrosch/valadoc-org/tree/master/examples

lazka avatar Apr 14 '14 21:04 lazka