# HG changeset patch # User David Demelier # Date 1585822200 -7200 # Node ID 22014be670577ba318e4ad21a55b17f01c3739dd # Parent 5e38f88cb9aba0a44e7fd050384f1f12507a9ec3 doc: add examples page diff -r 5e38f88cb9ab -r 22014be67057 doxygen/Doxyfile --- a/doxygen/Doxyfile Wed Apr 01 20:05:00 2020 +0200 +++ b/doxygen/Doxyfile Thu Apr 02 12:10:00 2020 +0200 @@ -35,6 +35,7 @@ doxygen/mainpage.c \ doxygen/page-howto-initialization.c \ doxygen/page-faq.c \ + doxygen/page-examples.c \ src INPUT_ENCODING = UTF-8 FILE_PATTERNS = *.h @@ -43,3 +44,4 @@ GENERATE_LATEX = NO GENERATE_MAN = YES MAX_INITIALIZER_LINES = 0 +EXAMPLE_PATH = examples diff -r 5e38f88cb9ab -r 22014be67057 doxygen/page-examples.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doxygen/page-examples.c Thu Apr 02 12:10:00 2020 +0200 @@ -0,0 +1,7 @@ +/** + * \page examples Examples + * \tableofcontents + * \example examples/example-inventory.c + * \example examples/example-message.c + * \example examples/example-sound.c + */ diff -r 5e38f88cb9ab -r 22014be67057 examples/example-inventory.c --- a/examples/example-inventory.c Wed Apr 01 20:05:00 2020 +0200 +++ b/examples/example-inventory.c Thu Apr 02 12:10:00 2020 +0200 @@ -77,7 +77,7 @@ init(void) { if (!sys_init() || - !window_init("Example - Message", W, H) || + !window_init("Example - Inventory", W, H) || !theme_init()) panic();