diff options
author | 2018-05-22 14:24:19 -0400 | |
---|---|---|
committer | 2018-05-22 14:24:19 -0400 | |
commit | 35e8196dad53a84692c3488b705b0623de2b961a (patch) | |
tree | 9847912568ae3e5a136ffe16de1f1ea636c26a25 | |
parent | 3ec82a9a80f79e2468e8b415ac8d835ffff5d210 (diff) | |
download | textadept-35e8196dad53a84692c3488b705b0623de2b961a.tar.gz textadept-35e8196dad53a84692c3488b705b0623de2b961a.zip |
Insert version numbers into manual and API documentation.
This should result in less confusion between stable and unstable release
documentation, depending on which version is on the website.
-rw-r--r-- | src/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index ffac47e6..962a4676 100644 --- a/src/Makefile +++ b/src/Makefile @@ -99,6 +99,8 @@ else install_targets = ../textadept-curses endif endif +version = $(shell grep -m 1 _RELEASE ../core/init.lua | cut -d ' ' -f4- | \ + tr ' ' '_' | tr -d '"') # Scintilla. @@ -258,15 +260,20 @@ clean: ; rm -f *.o ../textadept* 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 + sed -i -e "s/Textadept Manual/Textadept $(subst _, ,$(version)) Manual/;" \ + ../doc/manual.html luadoc: ../modules ../core ../lexers cd ../doc && luadoc -d . -t . --doclet markdowndoc $^/lexer.lua + sed -i -e "s/Textadept API/Textadept $(subst _, ,$(version)) API/;" \ + ../doc/api.html cd ../modules && luadoc -d lua --doclet lua/tadoc $^/lexer.lua # Releases. ifndef NIGHTLY - basedir = textadept_$(shell grep -m 1 _RELEASE ../core/init.lua | \ - cut -d ' ' -f4- | tr ' ' '_' | tr -d '"') + basedir = textadept_$(version) else basedir = textadept_NIGHTLY_$(shell date +"%F") endif |