Skip to main content

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 Publice License, either version 3.0 or, at your option, any later version.

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-2021.3.tar.gz (71.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gi_docgen-2021.3-py2.py3-none-any.whl (1.2 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gi-docgen-2021.3.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for gi-docgen-2021.3.tar.gz
Algorithm Hash digest
SHA256 2190d013a38347c1556aadcdb3069a42d4d147daac39fee0e29013f1c9a45c7f
MD5 daba3c7b4f0b2872fcf17e79616c093d
BLAKE2b-256 2745111d77ca55720af5d962743febe87d4143d8c7877d14b56c8eaf3f7e75ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gi_docgen-2021.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for gi_docgen-2021.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3939a9524da442b470e37a787758e635a92fffd7f4577144107717c1d458bb13
MD5 eb0eaecaeaaaf979634b110ad2e0af3e
BLAKE2b-256 75ba3512ad38f31883b19f206208f0fa2c6a4b121066db2c046060ed353eada4

See more details on using hashes here.

Release history Release notifications | RSS feed

2026.1

2 files

2025.5

2 files

2025.4

2 files

2025.3

2 files

2024.1

2 files

2023.3

2 files

2023.2

2 files

2023.1

2 files

2022.2

2 files

2022.1

2 files

2021.8

2 files

2021.7

2 files

2021.6

2 files

2021.5

2 files

2021.4

2 files

This release

2021.3 This release

2 files

2021.2

2 files

2021.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page