docs: Add feature build to publish script 97/25797/2
authorJohn DeNisco <jdenisco@cisco.com>
Wed, 11 Mar 2020 13:47:21 +0000 (09:47 -0400)
committerDave Barach <openvpp@barachs.net>
Wed, 11 Mar 2020 16:14:30 +0000 (16:14 +0000)
Signed-off-by: John DeNisco <jdenisco@cisco.com>
Change-Id: I6a938f426b9a8e1242fa5c6f9716a3f9db4d4976

docs/etc/requirements.txt
docs/scripts/publish-docs.sh

index 5b037c6..3c49148 100644 (file)
@@ -1,4 +1,5 @@
 alabaster==0.7.12
+attrs==19.3.0
 Babel==2.8.0
 certifi==2019.11.28
 chardet==3.0.4
@@ -6,12 +7,17 @@ commonmark==0.9.1
 docutils==0.16
 idna==2.8
 imagesize==1.2.0
+importlib-metadata==1.5.0
 Jinja2==2.10.3
+jsonschema==3.2.0
 MarkupSafe==1.1.1
 packaging==20.0
+pyaml==20.3.1
 Pygments==2.5.2
 pyparsing==2.4.6
+pyrsistent==0.15.7
 pytz==2019.3
+PyYAML==5.3
 recommonmark==0.6.0
 requests==2.22.0
 six==1.14.0
@@ -25,3 +31,4 @@ sphinxcontrib-jsmath==1.0.1
 sphinxcontrib-qthelp==1.0.2
 sphinxcontrib-serializinghtml==1.1.3
 urllib3==1.25.8
+zipp==3.1.0
index 9cbef8d..bd1a9ea 100755 (executable)
@@ -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