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 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.

Metadata

Release files for gi-docgen 2023.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gi-docgen 2023.1
File Size Uploaded
gi-docgen-2023.1.tar.gz 2.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gi-docgen 2023.1
File Interpreter ABI Platform
gi_docgen-2023.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 3.8 MB

Release files / gi-docgen-2023.1.tar.gz

Download URL gi-docgen-2023.1.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
88adeda9cbf882569479701eada009afa5d94fa29d728653ec388c32035f7fa3
BLAKE2b-256 checksum
How to use checksums
2972a319bce143e5d10677bc89b66e750c1511ec005c7a8bb098b415cc68ac68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / gi_docgen-2023.1-py2.py3-none-any.whl

Download URL gi_docgen-2023.1-py2.py3-none-any.whl
Size 1.3 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
05959ff3489862a3e0bbef66ac0301c71d47bfe5e99883309e97b0197e50d27a
BLAKE2b-256 checksum
How to use checksums
2c579b927fab538fe9acc932411aaa54785e3911917291773b1a95b7cfcdd0be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

2026.1

2 release files

2025.5

2 release files

2025.3

2 release files

2024.1

2 release files

2023.3

2 release files

2023.2

2 release files

This release

2023.1 This release

2 release files

2022.1

2 release files

2021.8

2 release files

2021.7

2 release files

2021.6

2 release files

2021.5

2 release files

2021.4

2 release files

2021.3

2 release files

2021.2

2 release files

2021.1

2 release 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