Skip to content

feat: introduce GoDoc-based documentation generation and initial docs#649

Open
JrSchmidtt wants to merge 2 commits into
KaijuEngine:masterfrom
JrSchmidtt:feat/add-godoc-for-this-project
Open

feat: introduce GoDoc-based documentation generation and initial docs#649
JrSchmidtt wants to merge 2 commits into
KaijuEngine:masterfrom
JrSchmidtt:feat/add-godoc-for-this-project

Conversation

@JrSchmidtt
Copy link
Copy Markdown
Contributor

This merge request introduces the use of GoDoc to automatically generate documentation for public methods and interfaces.

This is a proposal for a standardized documentation format. GoDoc was chosen because it is the official documentation tool for Go, widely adopted by the community, and designed to keep documentation close to the source code.

Using GoDoc reduces manual maintenance, improves consistency, and ensures documentation remains up to date as the code evolves.

It also enables exporting the generated documentation to Markdown format for external usage.

For more details on GoDoc and its benefits, see: https://go.dev/doc/comment

How to Review

  • Start from the index.md file, which contains links to all auto-generated module documentation.
  • The file src/tools/gendocs.go is responsible for generating the documentation in Markdown format.
  • In this version, each module has a single documentation file.
  • In the future, each module may contain multiple documentation files as the structure evolves.
image image

- Introduced a new tool for generating API documentation from Go source code.
- Created a `gendocs.go` file that processes specified packages and generates Markdown files.
- Added an initial API documentation file for the root package.
@jvkabum
Copy link
Copy Markdown

jvkabum commented Mar 26, 2026

Has anyone thought about creating a mind map on https://obsidian.md/?

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.

2 participants