summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
62e237b)
Use simpler git submodule status summary
Remove automatic use in master branch
Change-Id: Ib2e300bc2eabd3a6aed8fbd6805234f5d6a4ee7c
Issue-ID: DOC-332
Signed-off-by: Rich Bennett <rb2745@att.com>
# Copyright (c) 2018 Open Network Automation Platform and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Copyright (c) 2018 Open Network Automation Platform and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Usage: sh smsummary.sh output_file
#
# Usage: sh smsummary.sh output_file
#
-echo "************************************************************************************" > $1
-echo "* Submodule branches used to build this version of the documentation. *" >> $1
-echo "************************************************************************************" >> $1
-
-git submodule foreach git for-each-ref \
- --format='%(committerdate:iso8601) %(objectname) %(HEAD) %(refname) %(subject)' \
- --sort -committerdate refs/heads/ | \
- sed -e 's:^: :' -e 's: Entering .docs/submodules/::' -e 's:.git.$::' -e 's:refs/heads/::' >> $1
+git submodule status | sed -e 's:^ ::' -e 's: :,:' -e 's: :,:' -e 's:[()]::g' -e 's:\.git::' > $1
[testenv:docs]
deps = -r{toxinidir}/etc/requirements.txt
commands =
[testenv:docs]
deps = -r{toxinidir}/etc/requirements.txt
commands =
- sh {toxinidir}/shell/smsummary.sh {toxinidir}/docs/_static/smsummary.out
- echo "Summary of submodule versions used in html build in {toxinidir}/docs/_static/smsummary.out"
sphinx-build -j 1 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals =
sphinx-build -j 1 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals =