45 Commits

Author SHA1 Message Date
Colomban Wendling
958974338d Remove redundant and erroneous file patterns from Doxygen 2017-10-16 00:33:01 -07:00
Thomas Martitz
169feae90e api: export tm_tag_get_type()
This indicates that TMTag is GBoxed-derived, and can be copied/ref'd.

This helps plugins that must store a tag pointer for later usage while the
tagmanager might let it go in the meantime (can happen quickly if the user
comments a function out when starting a doxygen-comment).

Closes #1465
2017-08-04 00:17:11 -07:00
Jiří Techet
03becc7789 Update paths for doxygen 2016-07-21 13:14:21 +02:00
Colomban Wendling
f9ea9c4e26 Merge pull request #1093 from kugel-/api-tmtag
Properly expose TMTag which already contains documented members.
2016-06-29 17:45:51 +02:00
Colomban Wendling
987124d417 autotools: Fix circular dependencies in doc/ when building in srcdir
Don't use wildcards that can catch generated files.

While at it, also avoid Doxygen picking up those generated files.
2016-06-29 16:54:37 +02:00
Thomas Martitz
cef4751fa4 doxygen: make doxygen scan necessary tagmanager files
tm_tag.h and tm_parser.h contain documented symbols so doxygen shall process
them.
2016-06-28 22:52:40 +02:00
Thomas Martitz
c3c67c96d4 doc: Generate geany-sciwrappers-gtkdoc.h along geany-gtkdoc.h
geany-sciwrappers-gtkdoc.h contains all scintilla_object_* methods. It is
intended that they are going to be exposed through a separate .gir file,
therefore a separate header makes things easier.

This is useful when you want scintlla-related stuff in a separate .gir file or
oarse it specially otherwise.

gen-api-gtkdoc.py: Add switch to write out scintilla_object methods
2016-03-09 23:42:09 +01:00
Thomas Martitz
d868130d78 tagmanager: make doxygen comments and typedefs gtkdoc generation friendly
Because of the missing "typedef struct TMFoo" it was missing from the gtkdoc
header (the struct listings are always without typedef). This is also
consistent with the rest of geany.

@gironly for TMParserType so it's picked up as well.
2016-03-09 22:49:51 +01:00
Colomban Wendling
85f556b381 Make Doxygen happy about signallist.i
Doesn't alter the documentation output in anyway, but shuts Doxygen up
about it not finiding the file.
2016-03-01 20:34:46 +01:00
Colomban Wendling
47816339b6 Merge pull request #911 from b4n/deprecations
Deprecations cleanup and improvement
2016-03-01 19:25:53 +01:00
Colomban Wendling
b70dbc44bd Use our own deprecation macros
This allows us to conditionally enable our deprecation warnings, like
when building Geany itself or when `GEANY_DISABLE_DEPRECATION_WARNINGS`
is defined.
2016-03-01 19:21:41 +01:00
Colomban Wendling
d7c2a38509 Merge pull request #925 from techee/doxygen_warning
Comment-out some options not available on older Doxygen versions
2016-03-01 19:11:21 +01:00
Colomban Wendling
9ce7c22ad7 Fix Doxygen generation instead of working around incorrect output
Make Doxygen ignore `G_{BEGIN,END}_DECLS` and `GEANY_API_SYMBOL` itself
instead of stripping those manually when parsing the XML output.

This makes Doxygen parsing more robust by ignoring some odd C syntax,
and also improves the HTML version removing some incorrect C code
references.
2016-03-01 16:34:05 +01:00
Jiří Techet
e9dd2269c2 Comment-out some options not available on older doxygen versions
This eliminates some warnings with doxygen 1.8.7 on Ubuntu 14.04.4 LTS
based system. The default values of these options are equal to the
commented-out values so nothing should be broken by this change.
2016-02-29 21:28:46 +01:00
Colomban Wendling
871c562589 Further improve annotations rendition in HTML output 2016-02-28 02:35:43 +01:00
Colomban Wendling
e4bdf45cc6 Add support for out and optional GI annotations 2016-02-28 01:58:48 +01:00
Colomban Wendling
f69c72f486 Improve HTML rendition of some annotations 2016-02-28 01:58:04 +01:00
Colomban Wendling
d57ca1daef Fix inclusion of spurious @s in the GtkDoc header
Apparently Doxygen doesn't like `\<type>only` tags when not preceded by
another command.  But use a no-op instead of `\a`.
2016-02-28 00:03:12 +01:00
Colomban Wendling
7af832da80 Avoid confusing Doxygen with function attributes 2016-02-24 23:03:35 +01:00
Thomas Martitz
f2ebd288b3 doc: gir annotations cleanup
- @skip -> @girskip
- @null -> @nullable
- @addtogir -> @gironly
- changed internal xml representation of @cb, @cbdata, @cbfree
- @girskip keybindings_set_item() too
2016-02-16 07:14:27 +01:00
Thomas Martitz
658821d2dd api: add script to generate {geany,geany-scintilla}-gtkdoc.h
The script reads the doxygen xml output and generates two headers (optionally
a single header) that contains all of the plugin API in gtk-doc format.

Two headers because it's preferrable to group Scintilla related stuff
into its own namespace. This is a lot easier if g-ir-scanner can
work with a separate header file. If we change minds later on the script is
prepared to generate only one header.
2016-02-07 17:50:23 +01:00
Thomas Martitz
bfa0946420 doxygen: various doxygen-related fixes in preparation for gtkdoc generation 2016-02-07 17:50:23 +01:00
Ben Wiederhake
29a6b9c003 Fix typos
All of these typos were found by codespell, so credits go the
the authors of this incredibly useful tool.

I manually confirmed and adapted all changes, which includes
reflowing over-long lines or filling up with spaces for alignment.

Some of these typos may need forwarding to their original authors.
codespell reported a lot words where I am unsure; I have not
included those corrections.
2016-01-03 18:33:25 +01:00
Matthew Brush
860df27696 Remove struct/macro/funcptr linkage control for plugin API
Add rest of headers needed for declarations of all public API
functions. Add HAVE_PLUGINS define to geanyplugins.h since some headers
need this and it should always be valid for this header.
geanyfunctions.h left for source-level backwards compatibility for
plugins which might `#include` this header directly. I don't know why
they do it, but some Geany-Plugins do this.
2015-03-10 22:06:47 +01:00
Jiří Techet
26587454b0 Remove TmWorkObject and all the OO related stuff
In addition, rename all functions, parameters, comments etc. mentioning
work_object and remove unnecessary parameters of various functions.
Delete dead code paths.

Also move common functions like tm_get_real_path() from tm_work_object to
tm_source_file.
2014-10-18 21:40:10 +02:00
Colomban Wendling
6e755985a8 Update Doxyfile 2014-08-29 17:06:51 +02:00
Matthew Brush
747be883cd Re-enable Markdown support now that major bugs are fixed
I went through each link from the API docs and everything seems fine
since the extra leading whitespaces were removed in commits
`edaa6f713f1b8e037a56652da15032aac56e2227` and
`67ae7707364ecc09da8675803b48575d61b82fcf`.
2014-04-27 03:16:48 -07:00
Matthew Brush
93560c5e53 Support out-of-tree builds by not hardcoding paths 2014-04-26 23:29:43 -07:00
Colomban Wendling
82f556d2a5 Disable Markdown support in our Doxyfile
At least the "Plugin Writing Guidelines" and "Plugin HowTo" sections
are displaying undesirable side effects of Markdown support, so disable
it at least for now.
2014-04-27 04:05:07 +02:00
Enrico Tröger
bd06d7a102 Update Doxyfile.in for newer doxygen versions
Automatic config file update by running 'doxygen -u'. All previous settings are
kept but old, deprecated settings were removed to avoid annoying warnings
when executing doxygen (e.g. on the nightly cronjob to update the API docs
on geany.org).
Furthermore, the update tool added a lot of comments above the options,
which is probably good.
2014-03-23 15:23:42 +01:00
Nick Treleaven
6f0d015ed2 Fix documentation using old directory tagmanager/include 2012-06-06 15:19:34 +01:00
Nick Treleaven
aa872a4545 Add doc-comments for Stash setting functions.
Add an example file showing usage of Stash.
(Not enabled yet until added to the plugin API).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4769 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-17 17:15:47 +00:00
Nick Treleaven
9021717031 Use full function name for GeanyFunctions function pointers. This
avoids naming conflicts e.g. with C++'s 'new' keyword.
Remove deprecated header pluginmacros.h - use geanyfunctions.h instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-25 15:53:54 +00:00
Nick Treleaven
cf540a712f Deprecate documents_foreach() as it looks more like a function; use
foreach_document() instead.
Generate dox even for GEANY_DISABLE_DEPRECATED declarations.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4399 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-04 15:28:38 +00:00
Nick Treleaven
aa85bcec6a Add geanyfunctions.h to API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4112 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-20 12:16:28 +00:00
Nick Treleaven
c4513eecaf Add geanyplugin.h single include for plugin API; update all core
plugins to use it.
Add sci_set_font() to API.
Update plugin howto.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3966 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 15:06:20 +00:00
Enrico Tröger
2e0a48e9a4 Fix doxygen warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-10 20:36:21 +00:00
Enrico Tröger
44b7d27b50 Add "editor-notify" to the plugin API.
This signal is emitted whenever something in an editor widget changes, e.g. a character was typed.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3391 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-17 16:00:18 +00:00
Enrico Tröger
321b460d10 Remove obsolete tag in Doxyfile.in.
Fix doxygen warnings for undocumented enum in plugindata.h.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3211 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 19:19:26 +00:00
Enrico Tröger
a3b27b3714 Enable generation of API documentation of tagmanager functions which are exposed in the plugin API, hide all others from the API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-27 19:17:28 +00:00
Nick Treleaven
5ee9b5cf14 Generate API documentation for deprecated symbols.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3090 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-14 17:32:38 +00:00
Nick Treleaven
d8d727752e - API changes:
Replace p_ui->get_toolbar_insert_position() with
p_plugin->add_toolbar_item(), which also adds a separator when the
first item is added.
Add 'GeanyPlugin *geany_plugin' plugin symbol, partly to replace
plugin_info (now deprecated), mainly to identify a plugin and hold
private implementation fields for plugin utility functions.
(plugin_info will be removed after the 0.15 release.)
- Code changes:
Add ui_auto_separator_add_ref() to hide separator-like widgets when
their visible group elements are hidden or destroyed.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3074 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-13 12:38:32 +00:00
Nick Treleaven
45ba1bfbac Add API documentation for pluginmacros.h.
Make Doxygen define GEANY_DISABLE_DEPRECATED.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2603 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-19 15:21:31 +00:00
Enrico Tröger
c8d99c4b3c Use doxygen option QUIET to disable non-warning messages instead of redirecting output to /dev/null.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2310 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-07 14:20:25 +00:00
Enrico Tröger
0e65cff820 Add support for generating API reference documentation using doxygen.
This is the first step, it is far away from being complete.
Add make target "api-doc" to generate the reference documentation.
Add documentation comments to a few functions.
Move basic plugin documentation from plugindata.h to doc/plugins.dox.	       


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2263 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-17 18:00:42 +00:00