macOS
brew install gtk-doclocal Homebrew formula metadata
sudo port install gtk-docMacPorts ports tree · gnome/gtk-doc/Portfile · source: api.github.com
brew
GTK+ documentation tool. Version 1.36.1 via Homebrew; verified 2026-04-22.
install
brew install gtk-doclocal Homebrew formula metadata
sudo port install gtk-docMacPorts ports tree · gnome/gtk-doc/Portfile · source: api.github.com
sudo apk add gtk-docAlpine Linux edge package indexes · gtk-doc · source: dl-cdn.alpinelinux.org
sudo apt install gtk-doc-toolsDebian stable package indexes · gtk-doc-tools · source: deb.debian.org
sudo dnf install gtk-docFedora Rawhide package metadata · gtk-doc · source: dl.fedoraproject.org
nix profile install nixpkgs#gtk-docnixpkgs package indexes · pkgs/by-name/gt/gtk-doc/package.nix · source: api.github.com
sudo pacman -S gtk-docArch Linux sync databases · gtk-doc · source: geo.mirror.pkgbuild.com
sudo zypper install gtk-docopenSUSE Tumbleweed package metadata · gtk-doc · source: download.opensuse.org
overview
GTK+ documentation tool
history
GTK-Doc is a documentation generator for C APIs, especially GLib, GObject, GTK, and GNOME-style libraries. It extracts structured comments from C code, understands GObject signals and properties, produces DocBook XML, and transforms that output into HTML and other formats.
For package maintainers, GTK-Doc is the build-time tool that explains why GNOME library packages often have optional documentation flags, gtkdocize steps, DocBook dependencies, scanner binaries, and generated API reference artifacts.
The GTK-Doc repository has a 'start' tag dated 1998-11-24 and a GTK_DOC_1_0 tag dated 2003-01-20. The GNOME source archive also lists gtk-doc-1.0 tarballs dated 2003-01-20, giving a fixed early release anchor.
The project README says GTK-Doc is used to document C code, typically the public API of libraries such as GLib-based libraries, but also application code. It also notes that GTK-Doc was not originally intended as a general-purpose documentation tool and points to Doxygen for that broader role.
The project evolved from a DocBook-oriented GNOME documentation pipeline into a Python/Meson-era maintenance tool. The NEWS file records Python 3-related changes, an experimental gtkdoc-mkhtml2 toolchain in 1.30, Python 3 requirements in 1.29, and the removal of Autotools as a way to build GTK-Doc itself in 1.36.0.
GTK-Doc was adopted across the GNOME C library ecosystem because it understands GObject-specific concepts that generic C documentation tools may not: signals, properties, object scanners, and conventions used by GTK widgets and GObject classes.
The archived GNOME GtkDoc page describes it as a tool for extracting API documentation from C code like Doxygen, with special support for GObject, and describes HTML output by default with PDF and man-page output possible with extra work. GNOME project pages and coding-practice material refer to GTK-Doc annotations as part of documenting public C APIs.
A project using GTK-Doc writes documentation blocks in C comments, keeps section and symbol metadata, runs tools such as gtkdoc-scan, gtkdoc-scangobj, gtkdoc-mkdb, gtkdoc-mkhtml, gtkdoc-fixxref, gtkdoc-mkman, gtkdoc-mkpdf, and often integrates gtkdocize with Autotools-era projects or Meson build definitions.
The README describes generated HTML as browsable in a normal browser or in Devhelp. The manual/wiki workflow also explains the package's role in local developer environments: it is not just a documentation renderer, but a scanner and cross-reference pipeline used while building source distributions.
GTK-Doc is a classic build dependency that users may never run directly but packagers recognize instantly. Enabling API docs in a GNOME library can pull in GTK-Doc, DocBook DTDs, DocBook XSL stylesheets, libxml2/libxslt, Python modules, and sometimes PDF tooling such as dblatex.
Its long tail matters because old projects may still expect gtkdocize and Autotools integration, while the GTK-Doc project itself moved its own build to Meson. That split between being built with Meson and still supporting Autotools integration in downstream projects is package-maintainer lore.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
gtkdoc-check | cli | global executable | |
gtkdoc-depscan | cli | global executable | |
gtkdoc-fixxref | cli | global executable | |
gtkdoc-mkdb | cli | global executable | |
gtkdoc-mkhtml | cli | global executable | |
gtkdoc-mkhtml2 | cli | global executable | |
gtkdoc-mkman | cli | global executable | |
gtkdoc-mkpdf | cli | global executable | |
gtkdoc-rebase | cli | global executable | |
gtkdoc-scan | cli | global executable | |
gtkdoc-scangobj | cli | global executable | |
gtkdocize | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gitlab.gnome.org/GNOME/gtk-doc
install metadata
| Package key | brew:gtk-doc |
|---|---|
| Version | 1.36.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gtk-doc |
| Homepage | https://gitlab.gnome.org/GNOME/gtk-doc |
| Repository | https://gitlab.gnome.org/GNOME/gtk-doc |
| Upstream docs | https://gitlab.gnome.org/GNOME/gtk-doc/-/tree/master/help/manual/C |
| License | GPL-2.0-or-later |
| Source archive | https://download.gnome.org/sources/gtk-doc/1.36/gtk-doc-1.36.1.tar.xz |
| Last updated | 2026-04-22T13:17:23Z |
| Pulse | updated |
| Dependencies | docbook, docbook-xsl, python@3.14 |
| Build dependencies | meson, ninja, pkgconf |
| Uses from macOS | libxml2, libxslt |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gtk-doc |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gtk-doc-tools 1.34.0-2
GTK+ documentation tools
https://gitlab.gnome.org/GNOME/gtk-doc/
sudo apt install gtk-doc-toolsgtk-doc
nix profile install nixpkgs#gtk-docgtk-doc-tools 1.34.0-1
GTK+ documentation tools
https://gitlab.gnome.org/GNOME/gtk-doc/
sudo apt install gtk-doc-toolsgtk-doc 1.36.0-r1
Documentation tool for public library API
https://gitlab.gnome.org/GNOME/gtk-doc
sudo apk add gtk-docgtk-doc 1.36.1-1.fc45
API documentation generation tool for GTK+ and GNOME
https://gitlab.gnome.org/GNOME/gtk-doc/
sudo dnf install gtk-docgtk-doc 1.36.1-1
Documentation tool for public library API
https://gitlab.gnome.org/GNOME/gtk-doc
sudo pacman -S gtk-docgtk-doc 1.36.1-1.1
GTK+ Documentation Generator
sudo zypper install gtk-docgtk-doc-mkpdf 1.36.1-1.1
Gtkdoc PDF Generator
sudo zypper install gtk-doc-mkpdfgtk-doc
sudo port install gtk-docsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.