diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2009-12-02 03:25:23 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@gnome.org> | 2009-12-03 06:22:59 +0800 |
commit | daed8eebfd5a141b9717ec1e8e64f89c76e1558d (patch) | |
tree | a9d190fafb0b20ef369ad0ed5de1bf774ebab1d7 | |
parent | e8824fe156f428de11613a2c1535103a6a28bdfb (diff) | |
download | gsoc2013-epiphany-daed8eebfd5a141b9717ec1e8e64f89c76e1558d.tar gsoc2013-epiphany-daed8eebfd5a141b9717ec1e8e64f89c76e1558d.tar.gz gsoc2013-epiphany-daed8eebfd5a141b9717ec1e8e64f89c76e1558d.tar.bz2 gsoc2013-epiphany-daed8eebfd5a141b9717ec1e8e64f89c76e1558d.tar.lz gsoc2013-epiphany-daed8eebfd5a141b9717ec1e8e64f89c76e1558d.tar.xz gsoc2013-epiphany-daed8eebfd5a141b9717ec1e8e64f89c76e1558d.tar.zst gsoc2013-epiphany-daed8eebfd5a141b9717ec1e8e64f89c76e1558d.zip |
docs: update reference-howto
-rw-r--r-- | doc/reference-howto.txt | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/doc/reference-howto.txt b/doc/reference-howto.txt index 66dc14f22..a9926e051 100644 --- a/doc/reference-howto.txt +++ b/doc/reference-howto.txt @@ -1,31 +1,28 @@ -If you want to document one of the epiphany files you can do it -by the following steps: +Documenting Epiphany Reference +============================== -- Add documentation headers to the .c file public functions +Documenting Epiphany's API is fairly trivial following these instructions: -For example: +- Add documentation headers to the .c file public functions, some pointers: + + good examples can be found in WebKit/WebKit/gtk/ files and epiphany itself + + don't forget to match arg names in the .c and .h files + + add a SECTION comment at the beginning of the file -/** - * ephy_session_autoresume: - * @session: a #EphySession - * - * Resume a crashed session when necessary (interactive) - * - * Return value: %TRUE if at least a window has been opened - **/ -gboolean -ephy_session_autoresume (EphySession *session) +- If it's a GObject add the get_type function and include the .h in + doc/reference/epiphany.types in case it's not there already -I dont think gtk-doc has a syntax document, though gtk is -a good example to look at. +- Remove the .h from the IGNORE_HFILES section of doc/reference/Makefile.am -- If it's a GObject add the get_type function and include -the .h in doc/reference/epiphany.types. +- Clean current docs build using: + + make maintainer-clean-local -- Remove the .h from the IGNORE_HFILES section of -doc/reference/Makefile.am +- Build and commit: + + modified .c and .h files + + modified Makefile.am + + modified epiphany-docs.sgml + + modified epiphany.types -- Clean current docs build using "make maintainer-clean-local" + Remember that the generated files shouldn't be committed. + Don't forget to prefix your commit with 'docs:' -- Build and commit both the modified .c and the sgml generated -in doc/reference/tmpl. +Last updated: December 1st, 2009 by diegoe. |