aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripts/publish-docs.sh
diff options
context:
space:
mode:
authorJohn DeNisco <jdenisco@cisco.com>2020-03-11 09:47:21 -0400
committerDave Barach <openvpp@barachs.net>2020-03-11 16:14:30 +0000
commit92a6ac24f36dcc7e22682c0ce448cefc23d58e5e (patch)
tree840e0b602829a20730a0a66de725c568a3371ddc /docs/scripts/publish-docs.sh
parent437e33f1f9b9b2b2842d16f4aebacd79583cf338 (diff)
docs: Add feature build to publish script
Signed-off-by: John DeNisco <jdenisco@cisco.com> Change-Id: I6a938f426b9a8e1242fa5c6f9716a3f9db4d4976
Diffstat (limited to 'docs/scripts/publish-docs.sh')
-rwxr-xr-xdocs/scripts/publish-docs.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/scripts/publish-docs.sh b/docs/scripts/publish-docs.sh
index 9cbef8ddc9a..bd1a9eae3b3 100755
--- a/docs/scripts/publish-docs.sh
+++ b/docs/scripts/publish-docs.sh
@@ -35,6 +35,7 @@ make docs
# Clone the site repo
rm -fr site
+rm -fr sphinx_env
git clone ssh://git@github.com/$SITE_USERNAME/site
cd site
git submodule update --init --recursive
@@ -68,9 +69,16 @@ git branch
# Copy the docs
cp -r $SRC_DIR $TARGET_DIR
+# Create the feature list
+pushd ..
+source ./sphinx_venv/bin/activate
+find . -name FEATURE.yaml | ./src/scripts/fts.py --markdown > site/content/vppProject/vppfeatures/features.md
+deactivate
+popd
+
# Push the new docs
-#git add "*"
-#git commit -s -m "Publish docs from VPP $VERSION"
-#git push origin "$VERSION"
+git add "*"
+git commit -s -m "Publish docs from VPP $VERSION"
+git push origin "$VERSION"
exit 0