Commits on Source (52)
-
Emmanuele Bassi authored5cdacc10
-
Simon McVittie authored
This was added by !60, so wasn't included in !59. Signed-off-by: Simon McVittie <smcv@debian.org>
5fcaba6f -
Emmanuele Bassi authored
build: Add meson_options.txt to setuptools sdist See merge request GNOME/gi-docgen!61
0b0c237a -
Emmanuele Bassi authored
When walking the ancestor tree we might end up resolving an unqualified type name. This usually implies that the type comes from the same namespace. If the namespace has a type with the same name of the parent, for instance: Foo.Device inherits from Bar.Device and we get "Device" from the Foo namespace, instead of "Foo.Device", then we're going to look for "Device" in the "Bar" namespace, thus ending up in a loop.
f10e9bca -
Emmanuele Bassi authored
gir: Deal with unqualified ancestor names See merge request GNOME/gi-docgen!62
98655442 -
Emmanuele Bassi authored34624f80
-
Marc-André Lureau authored
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
cf5ddaa4 -
Emmanuele Bassi authored
main.js: bind 's' key to focus on search input See merge request GNOME/gi-docgen!63
faabcc2e -
Emmanuele Bassi authored39dee9f0
-
Emmanuele Bassi authored
We know that the namespace object is not None.
b54db08f -
Emmanuele Bassi authored
Fix issues found by Coverity Closes #78 See merge request GNOME/gi-docgen!65
184f6d3c -
Emmanuele Bassi authored1c56104e
-
Emmanuele Bassi authored6ba143ca
-
Emmanuele Bassi authored
Missing comma in the middle of an array. Fixes: #79
98ca321c -
Emmanuele Bassi authored
The dot can be confused with actual syntax, so we should use something else to separate the clickable elements of the heading. Instead of hard coding the separator, we can use an empty <span> and then use CSS to fill it out. Fixes: #81
ee630c37 -
Emmanuele Bassi authored
template: Use a stylable separator for the heading Closes #81 See merge request GNOME/gi-docgen!66
13bead22 -
Emmanuele Bassi authored
There are far, far too many false positives. Fixes: #80
50c71788 -
Emmanuele Bassi authored
Remove gtk-doc function matching Closes #80 See merge request GNOME/gi-docgen!67
323294c9 -
Matthias Clasen authored
We were parsing them out of the gir file, but not handing them into the templates.
794a7b51 -
Emmanuele Bassi authored
Make (optional) annotations work See merge request GNOME/gi-docgen!68
cb2466b7 -
Emmanuele Bassi authored
Tweak the text for the generated rows.
f6c1f1ee -
Emmanuele Bassi authoredba8229c6
-
Emmanuele Bassi authoredaa3be1a9
-
Emmanuele Bassi authored
The introspection data turns GError** arguments into a `throws` attribute. We already add the argument when generating the declaration of a method or function, so we also need to generate the corresponding argument description. Fixes: #86
2d419872 -
Emmanuele Bassi authored
Capitalise the first character of the first line, and add a period at the end if one isn't found.
b17b01d7 -
Emmanuele Bassi authored
Reword the generated content: - expand the "direction" using a proper explanation instead of in, out, or in-out - refer to argument or return value - structure the return value table like the arguments one - add style classes to the tables - check for array or list independently from the generated link We also make sure that every callable template follows the same pattern for the arguments and return value section.
ed5928f5 -
Emmanuele Bassi authored
Use the muted text color for the generated content, while keeping the full text color for the description and name.
edfa3a1c -
Emmanuele Bassi authored
Methods refer to an instance, so we can have a different blurb for the ownership transfer note.
422e4918 -
Emmanuele Bassi authored
Rework the arguments and return value tables for callables Closes #84 and #86 See merge request GNOME/gi-docgen!69
e55b814b -
Emmanuele Bassi authored
If 'dot' is not available there's no point in checking the show_class_hierarchy configuration key: we know it won't work. Fixes: #88
2420f1a2 -
Emmanuele Bassi authored
config: Handle missing dot Closes #88 See merge request GNOME/gi-docgen!70
4ec3fdb1 -
Emmanuele Bassi authored
We can determine a type ourselves, just like we can determine symbols. Of course, using a generic `type` fragment will require a type resolution pass from any other tool parsing the documentation embedded into the GIR data.
a8721ad2 -
Emmanuele Bassi authored
The type names are either fully qualified, or relative to the current *namespace*.
a34a7341 -
Emmanuele Bassi authored
Specify a minimum width for the cell with the argument name. Fixes: #88
973d9b05 -
Emmanuele Bassi authored
Constructors, type functions, and signals are all callables and they should have the same layout as methods, functions, and virtual functions.
09100155 -
Emmanuele Bassi authored
template: Add missing callables from the arguments refactor See merge request GNOME/gi-docgen!73
ba6aa5b7 -
Emmanuele Bassi authored
template: Give more room to argument names Closes #88 See merge request GNOME/gi-docgen!72
af6547b7 -
Emmanuele Bassi authored
Support generic type fragment for linking types See merge request GNOME/gi-docgen!71
4a75b91c -
Emmanuele Bassi authored
We want to hide it into the ast.Repository class, so we can access the various bits and blobs from the GIR. This commit has no functional change.
1e9c00b6 -
Emmanuele Bassi authored
Use the ancestors list of each class to build up the types hierarchy, to avoid stopping midway through the hierarchy of a type that inherits from a type in a different namespace. This allows us to drop the intermediate `GInitiallyUnowned` hierarchy, as now `GObject.InitiallyUnowned` is a recognised type. Fixes: #48
30e0df53 -
Emmanuele Bassi authored
Improve the type hierarchy generation Closes #48 See merge request GNOME/gi-docgen!74
cf65fb3d -
Emmanuele Bassi authored
If the fragment is not recognised, we should warn about it. Fixes: #89
4ad8f0f4 -
Emmanuele Bassi authored64bfb3b5
-
Emmanuele Bassi authored
A callback can have a type, so we should map the same protocol as ast.Type.
aef47aaa -
Emmanuele Bassi authored
Just like other types.
aea09901 -
Emmanuele Bassi authored0d0d239b
-
Emmanuele Bassi authored
And handle callback types as part of the "type" fragment.
1f376885 -
Emmanuele Bassi authored
Emit warning for invalid link fragments Closes #89 See merge request GNOME/gi-docgen!75
016b502a -
Emmanuele Bassi authored
We use the `callback` fragment to link to callback types.
0503d27e -
Emmanuele Bassi authored
The `type` fragment can be used with any type.
1a713a4b -
Emmanuele Bassi authored
If the documentation block ends with something that is not a letter then it's likely we're going to break something, like a code block marker.
cb76996b -
Simon McVittie authored05942f25