From e6feddc952ecb232ac0304ffa698ae707ac39cdb Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Fri, 4 Sep 2020 22:50:04 -0400 Subject: Renamed doc/ to docs/ and removed bombay dependency. Added some documentation infrastructure for eventual migration to a new build service. Use a simple Lua script for generating documentation offline. --- src/Makefile | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index c10c0a06..bd49890c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -238,7 +238,7 @@ textadept-curses.exe: $(sci_objs) $(sci_lex_objs) LexLPeg-curses.o \ # Install/uninstall. -install: $(install_targets) | ../core ../doc ../init.lua ../lexers ../LICENSE \ +install: $(install_targets) | ../core ../docs ../init.lua ../lexers ../LICENSE \ ../modules ../themes install -d $(DESTDIR)$(bin_dir) $(DESTDIR)$(data_dir) install $^ $(DESTDIR)$(data_dir) @@ -269,17 +269,18 @@ clean: ; rm -f *.o ../textadept* ta_home = $(shell dirname `pwd`) -doc: manual luadoc -manual: ../*.md ../doc/manual.md | ../doc/bombay - $| -d ../doc -t ../doc --title Textadept $^ - sed -i -e "s/manual - Textadept/Textadept $(subst _, ,$(version)) Manual/;" \ - ../doc/manual.html +docs: manual luadoc +manual: ../*.md ../docs/manual.md + for file in $^; do \ + markdown $$file | ../scripts/gen_doc.lua > \ + ../docs/`basename $$file .md`.html; \ + done sed -i -e "s/Textadept Manual/Textadept $(subst _, ,$(version)) Manual/;" \ - ../doc/manual.html + ../docs/manual.html luadoc: ../modules ../core ../lexers/lexer.lua | ../modules/lua/lua.luadoc - cd ../doc && luadoc -d . -t . --doclet markdowndoc $^ + cd ../docs && luadoc -d . -t . --doclet markdowndoc $^ sed -i -e "s/Textadept API/Textadept $(subst _, ,$(version)) API/;" \ - ../doc/api.html + ../docs/api.html cd ../modules && luadoc -d lua --doclet lua/tadoc $^ --ta-home=$(ta_home) cd ../modules/lua && mv tags ta_tags && mv api ta_api cd ../modules && luadoc -d lua --doclet lua/tadoc $| --ta-home=$(ta_home) @@ -315,14 +316,14 @@ endif $(basedir).linux: ; $(call archive,$@) release: $(basedir).linux - make deps clean doc sign-deps + make deps clean docs sign-deps PKG_CONFIG_PATH=/opt/gtk64/lib/pkgconfig make -j4 CFLAGS="$(CFLAGS) -m64" \ CXXFLAGS="$(CXXFLAGS) -m64 -static-libstdc++" make -j4 CFLAGS="$(CFLAGS) -m64" \ CXXFLAGS="$(CXXFLAGS) -m64 -static-libstdc++" \ CURSES_CFLAGS=-I/opt/ncursesw64/include/ncursesw \ CURSES_LIBS="-L/opt/ncursesw64/lib -lncursesw" curses - cp -rL ../doc ../lexers ../textadept* $< && cp *.asc $