docs-matrix-spec/scripts/generate-matrix-org-assets
Richard van der Hoff cc6b16b63c Generate the swagger for export
We may as well generate the unstable version of the C-S swagger.
2017-10-25 12:09:08 +01:00

21 lines
605 B
Bash
Executable file

#!/bin/sh
#
# generate a tarball of assets suitable for the matrix.org site
cd `dirname $0`/..
mkdir -p assets
# generate the spec docs
./scripts/gendoc.py -d assets/spec
# and the swagger
./scripts/dump-swagger.py -o assets/spec/client_server/unstable.json
# also need the supporting-docs, which become the jekyll posts.
cp -rT supporting-docs assets/jekyll-posts
# create a tarball of the assets. Exclude the spec index for now, as
# we want to leave it pointing at the release versions of the specs.
# (XXX: how to maintain this?)
tar -czf assets.tar.gz --exclude="assets/spec/index.html" assets