aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-09 15:12:56 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-09 15:12:56 -0400
commitf649c18a6413ebf2ee50130b5cf5e943b86f035e (patch)
tree4abd21409ad6b3ef6afb93c1a99ba0d84e238675 /src
parent377e814d6348ee879f61bf1db2b28fa8dd0e5711 (diff)
downloadtextadept-f649c18a6413ebf2ee50130b5cf5e943b86f035e.tar.gz
textadept-f649c18a6413ebf2ee50130b5cf5e943b86f035e.zip
LuaDoc doclet outputs markdown to stdout now.
Now all markdown to HTML is done in one place. Previously, the doclet generated its own HTML.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Makefile b/src/Makefile
index 2ba21b2b..dacd6d54 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -91,7 +91,7 @@ else
install_targets = ../textadept
else
plat_flag = -DCURSES
- CURSES_CFLAGS = $(shell pkg-config --silence-errors --cflags ncursesw || \
+ CURSES_CFLAGS = $(shell pkg-config --silence-errors --cflags ncursesw || \
pkg-config --silence-errors --cflags ncurses || \
pkg-config --silence-errors --cflags curses)
CURSES_LIBS = $(shell pkg-config --silence-errors --libs ncursesw || \
@@ -267,20 +267,19 @@ clean: ; rm -f *.o ../textadept*
# Documentation.
+lua_src = ../core ../modules ../lexers/lexer.lua
ta_home = $(shell dirname `pwd`)
docs: manual luadoc
-manual: $(addprefix ../docs/,manual.md changelog.md faq.md media.md thanks.md) \
- | ../docs/_layouts/default.html
+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 -e "s/Textadept Manual/Textadept $(subst _, ,$(version)) Manual/;" \
- ../docs/manual.html
-luadoc: ../modules ../core ../lexers/lexer.lua | ../modules/lua/lua.luadoc
- cd ../docs && luadoc -d . -t . --doclet markdowndoc $^
- sed -i -e "s/Textadept API/Textadept $(subst _, ,$(version)) API/;" \
- ../docs/api.html
+ 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
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)