Skip to content

Commit

Permalink
Revert "docs: add script to generate cli api docs"
Browse files Browse the repository at this point in the history
This reverts commit 44811f7.
  • Loading branch information
mvidalgarcia committed Jul 23, 2020
1 parent 1e69bc3 commit 54b5aa0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 52 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,3 @@ target/

# Visual Studio Code files
.vscode/*

# Docs autogeneration
cmd_list.txt
cli_api.md
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ recursive-include docs *.py
recursive-include docs *.png
recursive-include docs *.rst
recursive-include tests *.py
recursive-include scripts *.py
13 changes: 1 addition & 12 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
#!/bin/bash
#!/bin/sh
#
# This file is part of REANA.
# Copyright (C) 2017, 2018 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


cli_docs_url=https://raw.githubusercontent.com/reanahub/docs.reana.io/master/docs/reference/reana-client-cli-api/index.md
docs_differ_error_msg='Current reana-client differs with the documentation. Please update http://docs.reana.io/reference/reana-client-cli-api/.'
python_version=$(python -c 'import sys; print(sys.version_info.major)')

pydocstyle reana_client && \
black --check . && \
reana-client --help > cmd_list.txt && \
diff -q -w docs/cmd_list.txt cmd_list.txt && \
rm cmd_list.txt && \
if [ "$python_version" -eq 3 ]
then
python scripts/generate_cli_api.py > cli_api.md && \
(diff -q -w cli_api.md <(curl -s $cli_docs_url) || (echo $docs_differ_error_msg && exit 1)) && \
rm cli_api.md
fi
check-manifest --ignore ".travis-*" && \
sphinx-build -qnNW docs docs/_build/html && \
python setup.py test && \
Expand Down
35 changes: 0 additions & 35 deletions scripts/generate_cli_api.py

This file was deleted.

0 comments on commit 54b5aa0

Please sign in to comment.