Compare commits

...

3 Commits

Author SHA1 Message Date
60c44f2939 docs fix generation for libs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m44s
2026-03-15 22:26:49 +01:00
20ff8788b8 libaux include libsystem 2026-03-15 22:17:05 +01:00
8f971dca5c Fix spaces tgraphics.h 2026-03-15 22:15:43 +01:00
4 changed files with 24 additions and 14 deletions

View File

@@ -1,6 +1,9 @@
include ../make/ufuncs.mk
$(eval $(call add_include,libsystem))
libname := libaux
cflags += -DPRINTF_INCLUDE_CONFIG_H=1
include ../make/lib.mk

View File

@@ -5,6 +5,8 @@ $(eval $(call add_include,libstring))
cflags += -D"FAT_PRINTF(a)"
DOCS_COLLECT = $(git ls-files '*.c' '*.h' ':!_fat.*' ':!_fatctx.h')
libname := libfat
include ../make/lib.mk

View File

@@ -100,14 +100,14 @@
// color only)
/* Text styles */
#define ANSIQ_TXT_BLD";1" // bold
#define ANSIQ_TXT_DIM";2" // dim/faint
#define ANSIQ_TXT_ITL";3" // italic
#define ANSIQ_TXT_UNL";4" // underline
#define ANSIQ_TXT_BLK";5" // blinking mode (idk what it does)
#define ANSIQ_TXT_REV";7" // reversed
#define ANSIQ_TXT_HID";8" // hidden/invisible
#define ANSIQ_TXT_STK";9" // strikethrough
#define ANSIQ_TXT_BLD ";1" // bold
#define ANSIQ_TXT_DIM ";2" // dim/faint
#define ANSIQ_TXT_ITL ";3" // italic
#define ANSIQ_TXT_UNL ";4" // underline
#define ANSIQ_TXT_BLK ";5" // blinking mode (idk what it does)
#define ANSIQ_TXT_REV ";7" // reversed
#define ANSIQ_TXT_HID ";8" // hidden/invisible
#define ANSIQ_TXT_STK ";9" // strikethrough
#define ANSIQ_SETTXT_BLD ANSIQ_ESC"["ANSIQ_TXT_BLD"m"
#define ANSIQ_SETTXT_DIM ANSIQ_ESC"["ANSIQ_TXT_DIM"m"

View File

@@ -10,6 +10,16 @@ include ../$(platform)/flags.mk
FORMAT ?= clang-format -i $$(git ls-files '*.c' '*.h')
DOCS_COLLECT ?= $$(git ls-files '*.c' '*.h')
DOCS ?= \
rm -rf docs; \
clang-doc --format=md --output docs -p . $(DOCS_COLLECT); \
for f in ./docs/GlobalNamespace/*.md; do sed -i '/^\# Global Namespace/d' "$$f"; done; \
rm -rf ../docs/libs/$(libname); \
mkdir -p ../docs/libs/$(libname); \
cp ./docs/GlobalNamespace/*.md ../docs/libs/$(libname);
all: build/$(libname).a
build/$(libname).a: $(o)
@@ -28,11 +38,6 @@ format:
$(FORMAT)
docs:
rm -rf docs
clang-doc --format=md --output docs -p . $$(git ls-files '*.h')
for f in ./docs/GlobalNamespace/*.md; do sed -i '/^# Global Namespace/d' "$$f"; done
rm -rf ../docs/libs/$(libname)
mkdir -p ../docs/libs/$(libname)
cp ./docs/GlobalNamespace/*.md ../docs/libs/$(libname)
$(DOCS)
.PHONY: all clean format