aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-25 12:08:09 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-25 12:08:09 -0400
commit8d72505692acec93fce91560623f7cfe714e4f9e (patch)
tree30824cf462da05c5a1437672687805a6358a00f7 /src/Makefile
parent5fab12c305f3db43f6c93e8f70564017f252a8cb (diff)
downloadtextadept-8d72505692acec93fce91560623f7cfe714e4f9e.tar.gz
textadept-8d72505692acec93fce91560623f7cfe714e4f9e.zip
Ensure version is included in Manual and API Documentation headers.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 396b1b29..d541ff5a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -280,8 +280,9 @@ 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
+ sed -i \
+ "s/\(\# Textadept\).\+\?\(Manual\|API\)/\1 $(subst _, ,$(version)) \2/;" \
+ ../docs/*.md
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)