diff options
author | 2020-09-25 12:08:09 -0400 | |
---|---|---|
committer | 2020-09-25 12:08:09 -0400 | |
commit | 8d72505692acec93fce91560623f7cfe714e4f9e (patch) | |
tree | 30824cf462da05c5a1437672687805a6358a00f7 | |
parent | 5fab12c305f3db43f6c93e8f70564017f252a8cb (diff) | |
download | textadept-8d72505692acec93fce91560623f7cfe714e4f9e.tar.gz textadept-8d72505692acec93fce91560623f7cfe714e4f9e.zip |
Ensure version is included in Manual and API Documentation headers.
-rw-r--r-- | docs/api.md | 2 | ||||
-rw-r--r-- | docs/manual.md | 2 | ||||
-rw-r--r-- | src/Makefile | 5 |
3 files changed, 5 insertions, 4 deletions
diff --git a/docs/api.md b/docs/api.md index b6f96cf4..dbc23f70 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1,4 +1,4 @@ -## Textadept API Documentation +## Textadept 11.0 alpha 3 API Documentation 1. [_G](#_G) 1. [_L](#_L) diff --git a/docs/manual.md b/docs/manual.md index b0d6cc9b..dac4c904 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -1,4 +1,4 @@ -## Textadept Manual +## Textadept 11.0 alpha 3 Manual **Contents** 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) |