An attempt to convert the main API header file of the dear ImGui library into a group of markdown files.
These files are then processed and presented by mkdocs-material.
-
Clone
clone github.com/pixtur/mkdocs-for-imgui cd mkdocs-for-imgui
-
Install packages
npm install
-
Convert
npm run convert
-
Download and install docker: https://download.docker.com/mac/stable/Docker.dmg
-
Install mkdocs-material
docker pull squidfunk/mkdocs-material
-
Start a local Lokaler Server
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
-
Build (needs to be fixed)
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material build
Documentation extracted from imgui v1.77
The is a work in progress. Although the complicated step of parsing the header file seems to work more or less stable, the following steps need additional work:
- The current version was only tested on the IMGUI namespace
- all enum definitions are missing
- many other definitions needs clean up
- the navigation structure on the left needs more work
- the API-markdown file should probably be broken down into smaller files
- the quality of the built in search seems to be lacking
- some aspects of the original header file would need be adjusted