X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=docs%2Fscripts%2Fpublish-docs.sh;h=bd1a9eae3b3bd3ec6e48f46053e369fc67dc9377;hb=refs%2Fchanges%2F97%2F25797%2F2;hp=9cbef8ddc9a6e9ea4780ee63542181c824684a77;hpb=437e33f1f9b9b2b2842d16f4aebacd79583cf338;p=vpp.git 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