kiwi-el8/helper/schema_docs.sh
Marcus Schäfer ab59d4d217
Delete obsolete repository types
Deleted red-carpet, slack-site, up2date-mirrors, urpmi and yast2
from the allowed values list of the repository type attribute.
This Fixes #1029
2019-04-22 23:15:42 +02:00

27 lines
794 B
Bash
Executable File

#!/bin/bash
if [ -z "$oxygen_tool" ];then
echo "Oxygen schema tool not found"
echo "Please make sure you have a valid Oxygen license and call:"
echo
echo "export oxygen_tool=/path/to/Oxygen/schemaDocumentation.sh"
echo
echo "Switching to fallback schema documentation creator"
echo
./schema_parser.py ../kiwi/schema/kiwi.rng \
--output ../doc/source/development/schema.rst
else
cat > ../doc/source/development/schema.rst <<- EOF
.. _schema-docs:
Schema Documentation 7.1
========================
.. raw:: html
:file: schema/schema.html
EOF
trang -I rnc -O xsd ../kiwi/schema/kiwi.rnc kiwi.xsd && \
bash $oxygen_tool kiwi.xsd -cfg:schema_docs.conf
rm -f kiwi.xsd xsi.xsd ../doc/source/development/schema/xsdDocHtml.css
fi