forked from ConcealNetwork/conceal-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ConcealNetwork#330 from ConcealNetwork/development
Version 6.7.3
- Loading branch information
Showing
101 changed files
with
13,403 additions
and
1,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,4 @@ compile_commands.json | |
*.ipch | ||
*.bin | ||
*.json | ||
*.json | ||
*.json | ||
cmake-build* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
input_folder="" | ||
output_folder="" | ||
|
||
display_help() { | ||
echo "Usage: $0 [OPTIONS]" | ||
echo "Options:" | ||
echo " -i, --input INPUT_FOLDER Specify the input folder (default: rpc/openapi)" | ||
echo " -o, --output OUTPUT_FOLDER Specify the output folder (default: rpc)" | ||
echo " -h, --help Display this help message" | ||
exit 0 | ||
} | ||
|
||
if [ $# -ne 4 ]; then | ||
display_help | ||
fi | ||
|
||
# Parse command-line arguments | ||
while [[ $# -gt 0 ]]; do | ||
key="$1" | ||
case $key in | ||
-i) | ||
input_folder="$2" | ||
shift | ||
shift | ||
;; | ||
-o) | ||
output_folder="$2" | ||
shift | ||
shift | ||
;; | ||
*) | ||
display_help | ||
;; | ||
esac | ||
done | ||
|
||
if [ -z "$input_folder" ] || [ -z "$output_folder" ]; then | ||
display_help | ||
fi | ||
|
||
if [ ! -d "$input_folder" ]; then | ||
echo "Input folder '$input_folder' does not exist." | ||
exit 1 | ||
fi | ||
|
||
mkdir -p "$output_folder" | ||
|
||
for yaml_file in "$input_folder"/*.yaml; do | ||
if [[ -f "$yaml_file" ]]; then | ||
filename=$(basename "$yaml_file" .yaml) | ||
redocly build-docs "$yaml_file" -o "$output_folder/$filename.html" | ||
fi | ||
done |
Oops, something went wrong.