Skip to content

Commit

Permalink
Merge pull request #913 from RedHatInsights/psav/remove_antora_docs
Browse files Browse the repository at this point in the history
Removing Antora
  • Loading branch information
psav authored Aug 29, 2024
2 parents 5918419 + fad796d commit 261d088
Show file tree
Hide file tree
Showing 204 changed files with 2,673 additions and 19,368 deletions.
159 changes: 0 additions & 159 deletions README.adoc

This file was deleted.

1 change: 1 addition & 0 deletions README.md
12 changes: 2 additions & 10 deletions build/build_api_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ if [ ! -d docs/build/crd-ref-docs ]; then
cd -
fi

if ! command -v asciidoctor; then
echo "ERROR: 'asciidoctor' not found."
echo " "
echo "Please install 'asciidoctor'. On Fedora use 'sudo dnf install -y asciidoctor'"
echo "For others, see: https://docs.asciidoctor.org/asciidoctor/latest/install/"
exit 1
fi

docs/build/crd-ref-docs/crd-ref-docs --source-path=./apis --config=docs/config.yaml \
--renderer=asciidoctor --templates-dir=docs/build/crd-ref-docs/templates/asciidoctor \
--output-path=docs/antora/modules/ROOT/pages/api_reference.adoc
--renderer=markdown \
--output-path=docs/api_reference.md
25 changes: 4 additions & 21 deletions build/build_config_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,7 @@

set -e


if [ ! -f docs/build/node_modules/.bin/jsonschema2md ]; then
echo "You don't have jsonschema2md, installing it..."
cd docs/build/
if [ ! -d node_modules ]; then
mkdir node_modules
fi
npm install @adobe/[email protected]
cd -
fi


if [ ! -f docs/build/node_modules/.bin/jsonschema2md ]; then
echo "ERROR: Could not find jsonschema2md, please check installation above"
exit 1
fi

./docs/build/node_modules/.bin/jsonschema2md -d controllers/cloud.redhat.com/config/ -o docs/appconfig -e json

rm out/schema.json
rmdir out
python -m venv docs/build/venv
source docs/build/venv/bin/activate
pip install json-schema-for-humans==0.47
generate-schema-doc --config template_name=md controllers/cloud.redhat.com/config/schema.json docs/api_ref.md
5 changes: 0 additions & 5 deletions docs/antora/antora.yml

This file was deleted.

28 changes: 0 additions & 28 deletions docs/antora/modules/ROOT/nav.adoc

This file was deleted.

Loading

0 comments on commit 261d088

Please sign in to comment.