Skip to content

Populate API reference #303

Merged
khaledhosny merged 13 commits into
mainfrom
populate-docs
Jun 3, 2026
Merged

Populate API reference #303
khaledhosny merged 13 commits into
mainfrom
populate-docs

Conversation

@khaledhosny

Copy link
Copy Markdown
Collaborator

Copy API documentation from HarfBuzz and adapt it to Python code. Fights cython/autodoc a bit, but the end result seems good.

The setup.py will scan the package’s sources for PEP 224-style docstrings
under NamedTuple field annotations and writes a generated file with
Cls.field.__doc__ assignments that we will include at the end.

This is too allow documenting NamedTuple fields inline, which is
otherwise not possible with our current setup.
Enum/class members needed to be documented manually because cython
strips-away there doc strings.
@khaledhosny khaledhosny merged commit deca318 into main Jun 3, 2026
7 checks passed
@khaledhosny khaledhosny deleted the populate-docs branch June 3, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write API documentation

1 participant