From 35e8196dad53a84692c3488b705b0623de2b961a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 22 May 2018 14:24:19 -0400 Subject: 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. --- src/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3