Embed client and server release numbers
Note that this also removes the changelog - I'm going to re-add the changelog differently soon.
This commit is contained in:
parent
bcead3b0a5
commit
97fd1fdd62
6 changed files with 73 additions and 42 deletions
|
@ -4,6 +4,17 @@
|
|||
# It takes all of the swagger YAML files for the client-server API, and turns
|
||||
# them into API docs, with none of the narrative found in the rst files which
|
||||
# normally wrap these API docs.
|
||||
#
|
||||
# Optionally takes one positional argument, the label of the release, e.g. r1.2.
|
||||
# This falls back to "unstable" if unspecified.
|
||||
|
||||
if [[ $# == 1 ]]; then
|
||||
client_release=$1
|
||||
else
|
||||
client_release="unstable"
|
||||
fi
|
||||
|
||||
client_major_version="$(echo "${client_release}" | perl -pe 's/^(r\d+)\..*$/$1/g')"
|
||||
|
||||
cd "$(dirname $0)"
|
||||
|
||||
|
@ -23,5 +34,5 @@ for f in ../api/client-server/*.yaml; do
|
|||
echo "{{${f/-/_}}}" >> tmp/http_apis
|
||||
done
|
||||
|
||||
(cd ../templating ; python build.py -i matrix_templates -o ../scripts/gen ../scripts/tmp/http_apis)
|
||||
(cd ../templating ; python build.py -i matrix_templates -o ../scripts/gen ../scripts/tmp/http_apis --substitution=%CLIENT_RELEASE_LABEL%="${client_release}" --substitution=%CLIENT_MAJOR_VERSION%="${client_major_version}")
|
||||
rst2html.py --stylesheet-path=$(echo css/*.css | tr ' ' ',') gen/http_apis > gen/http_apis.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue