Skip to main content

Documentation tool for GObject-based libraries

Project description

GI-DocGen: Documentation tool for GObject-based libraries

GI-DocGen is a document generator for GObject-based libraries. GObject is the base type system of the GNOME project. GI-Docgen reuses the introspection data generated by GObject-based libraries to generate the API reference of these libraries, as well as other ancillary documentation.

Installation

Running GI-DocGen uninstalled

You can run GI-DocGen from its repository, by calling:

./gi-docgen.py

GI-DocGen will automatically detect this case.

Installing GI-DocGen via pip

To install GI-DocGen, you will need to have the following pieces of software available on your computer:

  • Python 3.6, or later
  • pip

Run the following command:

pip3 install --user gi-docgen

After running the command above, make sure to have the ~/.local/bin directory listed in your $PATH environment variable.

To update GI-DocGen, run the following command:

pip3 install --user --upgrade gi-docgen

Usage

First, read the GI-DocGen tutorial.

The documentation for GI-DocGen is available online.

The examples directory in the repository contains simple project files for various GNOME libraries.

Disclaimer

GI-DocGen is not a general purpose documentation tool for C libraries.

While GI-DocGen can be used to generate API references for most GObject/C libraries that expose introspection data, its main goal is to generate the reference for GTK and its immediate dependencies. Any and all attempts at making this tool more generic, or to cover more use cases, will be weighted heavily against its primary goal.

GI-DocGen is still in development. The recommended use of GI-DocGen is to add it as a sub-project to your Meson build system, and vendor it when releasing dist archives.

You should not depend on a system-wide installation until GI-DocGen is declared stable.

If you need a general purpose documentation tool, I strongly recommend:

Copyright and Licensing terms

Copyright 2021 GNOME Foundation

GI-DocGen is released under the terms of the Apache License, version 2.0, or under the terms of the GNU General Public License, either version 3.0 or, at your option, any later version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gi-docgen-2023.2.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

gi_docgen-2023.2-py2.py3-none-any.whl (1.3 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file gi-docgen-2023.2.tar.gz.

File metadata

  • Download URL: gi-docgen-2023.2.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for gi-docgen-2023.2.tar.gz
Algorithm Hash digest
SHA256 1836b6496fdc27aff345d12bac8d4b024416a23e0745c8fe0fd38884437a1fc7
MD5 9449be230cb7353f6d728213e1537577
BLAKE2b-256 e56e9f05646d0dbfa537c9328204212e7d22942e656b9279d1d36d8efedf5dec

See more details on using hashes here.

File details

Details for the file gi_docgen-2023.2-py2.py3-none-any.whl.

File metadata

  • Download URL: gi_docgen-2023.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for gi_docgen-2023.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 790e8b28a8b79f7fb57baf43b88c7b691863f1358ff4d6939024388d2c69a064
MD5 b0473c1bd4b5df06e474c80d02083cf3
BLAKE2b-256 6d6e869429a8a413d7779e986aa23b661bb96042a65263921df360ec089ccdb0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page