Changes top-level element to chapter instead of book for markdown
builds. Change-Id: Ia9719b96594f5934d3a783bb85078ab474bacb35 Reviewed-on: https://review.openstack.org/16904 Reviewed-by: Monty Taylor <mordred@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
e592a964f7
commit
1b3157aaf1
@ -16,6 +16,6 @@ shopt -s extglob
|
||||
FILENAME=$1
|
||||
FILEPATH=`find ./ -regextype posix-extended -regex ".*${FILENAME}\.(md|markdown|mdown)"`
|
||||
DIRPATH=`dirname $FILEPATH`
|
||||
pandoc -f markdown -t docbook -s ${FILEPATH} | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - | xmllint --format - | sed -e "s,<article,<book xml:id=\"$FILENAME\"," | sed -e 's,</article>,</book>,' > ${DIRPATH}/$FILENAME.xml
|
||||
pandoc -f markdown -t docbook -s ${FILEPATH} | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - | xmllint --format - | sed -e "s,<article,<chapter xml:id=\"$FILENAME\"," | sed -e 's,</article>,</chapter>,' > ${DIRPATH}/$FILENAME.xml
|
||||
|
||||
pwd
|
||||
|
Loading…
Reference in New Issue
Block a user