From c436febaf7f7b7605bf61777931e97831d956d83 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Sun, 13 Sep 2020 18:20:00 -0400 Subject: Lots of documentation updates. Updated header id generation, anchors, links, and header levels. Added dedicated book page and support data. Removed extra module autocompletion and documentation from Lua module. Removed GPG signing and verification, as everything is built and distributed on GitHub. Removed all release links prior to 10.8 since there is no point in uploading the relevant files to GitHub. --- src/Makefile | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 1f7ff2ed..d4f65e8f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -268,19 +268,22 @@ clean: ; rm -f *.o ../textadept* # Documentation. -lua_src = ../core ../modules ../lexers/lexer.lua +ifndef ALL_MODULES + modules = $(addprefix ../modules/,ansi_c lua textadept) +else + modules = ../modules +endif ta_home = $(shell dirname `pwd`) -docs: manual luadoc +docs: luadoc manual manual: ../docs/api.md $(wildcard ../docs/*.md) | ../docs/_layouts/default.html for file in $(basename $^); do \ cat $| | ../scripts/fill_layout.lua $$file.md > $$file.html; \ done sed -i "s/Textadept \(Manual\|API\)/Textadept $(subst _, ,$(version)) \1/;" \ ../docs/*.html -docs/api.md: $(lua_src) - cd ../docs && luadoc --doclet markdowndoc $^ > $(notdir $@) -luadoc: $(lua_src) | ../modules/lua/lua.luadoc +luadoc: ../core $(modules) ../lexers/lexer.lua | ../modules/lua/lua.luadoc + cd ../docs && luadoc --doclet markdowndoc $^ > api.md 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) @@ -316,11 +319,11 @@ endif $(basedir).linux: ; $(call archive,$@) release: $(basedir).linux - make deps clean docs sign-deps + make deps clean docs make -j4 CXXFLAGS="$(CXXFLAGS) -static-libstdc++" make -j4 CXXFLAGS="$(CXXFLAGS) -static-libstdc++" curses - cp -rL ../docs ../lexers ../textadept* $< && cp *.asc $