# HG changeset patch # User David Demelier # Date 1605725020 -3600 # Node ID 6f6c49b95f77b708ae7b298f3c678e52fe9f94a1 # Parent 5603030661200ec47d2fcbd6fe87f6eb9af42661 doc: add libcore API diff -r 560303066120 -r 6f6c49b95f77 doc/CMakeLists.txt --- a/doc/CMakeLists.txt Wed Nov 18 19:09:23 2020 +0100 +++ b/doc/CMakeLists.txt Wed Nov 18 19:43:40 2020 +0100 @@ -35,12 +35,18 @@ ${doc_SOURCE_DIR}/tools.rst ) + configure_file( + ${doc_SOURCE_DIR}/conf.py + ${doc_BINARY_DIR}/conf.py + ) + add_custom_target( doc ALL VERBATIM SOURCES ${SOURCES} - COMMAND ${SPHINX_EXE} -q . ${doc_BINARY_DIR} + COMMAND ${SPHINX_EXE} -c ${doc_BINARY_DIR} -q . ${doc_BINARY_DIR} WORKING_DIRECTORY ${doc_SOURCE_DIR} COMMENT "Generating documentation" + DEPENDS doxygen ) endif () diff -r 560303066120 -r 6f6c49b95f77 doc/api.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,22 @@ +============= +API Reference +============= + +Official C API reference. + +The API is split into individual libraries: + +``libcore`` + Low level access to the library that provides input, sound, animations and + windowing system. + +``libui`` + User interface elements. + +``librpg`` + Every other components that are related to the RPG gameplay. + +.. toctree:: + :maxdepth: 1 + + api/libcore diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/action.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/action.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================== +#include +======================== + +.. doxygenfile:: core/action.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/alloc.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/alloc.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/alloc.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/animation.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/animation.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +=========================== +#include +=========================== + +.. doxygenfile:: core/animation.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/clock.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/clock.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/clock.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/color.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/color.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/color.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/core.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/core.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +====================== +#include +====================== + +.. doxygenfile:: core/core.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/drawable.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/drawable.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +========================== +#include +========================== + +.. doxygenfile:: core/drawable.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/error.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/error.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/error.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/event.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/event.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/event.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/font.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/font.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +====================== +#include +====================== + +.. doxygenfile:: core/font.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/game.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/game.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +====================== +#include +====================== + +.. doxygenfile:: core/game.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/image.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/image.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/image.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/inhibit.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/inhibit.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +========================= +#include +========================= + +.. doxygenfile:: core/inhibit.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/key.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/key.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +===================== +#include +===================== + +.. doxygenfile:: core/key.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/maths.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/maths.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/maths.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/mouse.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/mouse.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/mouse.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/music.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/music.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/music.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/painter.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/painter.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +========================= +#include +========================= + +.. doxygenfile:: core/painter.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/panic.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/panic.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/panic.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/plat.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/plat.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +====================== +#include +====================== + +.. doxygenfile:: core/plat.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/save.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/save.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +====================== +#include +====================== + +.. doxygenfile:: core/save.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/script.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/script.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================== +#include +======================== + +.. doxygenfile:: core/script.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/sound.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/sound.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/sound.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/sprite.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/sprite.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================== +#include +======================== + +.. doxygenfile:: core/sprite.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/state.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/state.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/state.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/sys.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/sys.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +===================== +#include +===================== + +.. doxygenfile:: core/sys.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/texture.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/texture.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +========================= +#include +========================= + +.. doxygenfile:: core/texture.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/trace.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/trace.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================= +#include +======================= + +.. doxygenfile:: core/trace.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/util.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/util.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +====================== +#include +====================== + +.. doxygenfile:: core/util.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/wait.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/wait.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +====================== +#include +====================== + +.. doxygenfile:: core/wait.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/core/window.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/core/window.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,5 @@ +======================== +#include +======================== + +.. doxygenfile:: core/window.h diff -r 560303066120 -r 6f6c49b95f77 doc/api/libcore.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/libcore.rst Wed Nov 18 19:43:40 2020 +0100 @@ -0,0 +1,39 @@ +================ +Library: libcore +================ + +.. toctree:: + :maxdepth: 1 + + core/action + core/alloc + core/animation + core/clock + core/color + core/core + core/drawable + core/error + core/event + core/font + core/game + core/image + core/inhibit + core/key + core/maths + core/mouse + core/music + core/painter + core/panic + core/plat + core/save + core/script + core/sound + core/sprite + core/state + core/sys + core/texture + core/trace + core/util + core/util + core/wait + core/window diff -r 560303066120 -r 6f6c49b95f77 doc/conf.py --- a/doc/conf.py Wed Nov 18 19:09:23 2020 +0100 +++ b/doc/conf.py Wed Nov 18 19:43:40 2020 +0100 @@ -27,5 +27,12 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # HTML output. -html_theme = "sphinx_rtd_theme" +html_theme = "haiku" html_static_path = ["_static"] + +# Doxygen bridge through breathe. +extensions = [ "breathe" ] +breathe_projects = { + "molko": "@doxygen_BINARY_DIR@/doxygen/xml" +} +breathe_default_project = "molko" diff -r 560303066120 -r 6f6c49b95f77 doc/index.rst --- a/doc/index.rst Wed Nov 18 19:09:23 2020 +0100 +++ b/doc/index.rst Wed Nov 18 19:43:40 2020 +0100 @@ -22,6 +22,7 @@ about specifications tools + api Indices and tables ================== diff -r 560303066120 -r 6f6c49b95f77 doxygen/CMakeLists.txt --- a/doxygen/CMakeLists.txt Wed Nov 18 19:09:23 2020 +0100 +++ b/doxygen/CMakeLists.txt Wed Nov 18 19:43:40 2020 +0100 @@ -53,6 +53,8 @@ set(DOXYGEN_FILE_PATTERNS *.h) set(DOXYGEN_GENERATE_LATEX NO) set(DOXYGEN_GENERATE_MAN NO) + set(DOXYGEN_GENERATE_XML YES) + set(DOXYGEN_GENERATE_HTML NO) set(DOXYGEN_INPUT_ENCODING UTF-8) set(DOXYGEN_MAX_INITIALIZER_LINES 0) set(DOXYGEN_OPTIMIZE_OUTPUT_FOR_C YES)