Max/individual command autodocs (#5018)
* updated autodoc script * updated autodoc script for fix + reintroduced gitignore file for generated markdown * auto commit generated command files * auto commit generated command files * added command-outputs to autodoc script * fix merge conflicts * repush components
This commit is contained in:
@@ -7,7 +7,8 @@ set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# make sure we have all the binaries built
|
||||
cd ../../ && cargo build --release &&
|
||||
cd ../../ && cargo build --release && cd tools/nym-cli && cargo build --release && cd ../../ &&
|
||||
|
||||
|
||||
# run autodoc script
|
||||
cd documentation/autodoc/ && cargo run --release &&
|
||||
@@ -17,9 +18,9 @@ cd ../../ && cargo build --release &&
|
||||
mv autodoc-generated-markdown/commands/* ../docs/components/outputs/command-outputs/ &&
|
||||
|
||||
# commit files to git: needed for remote deployment from branch
|
||||
if ! git diff --quiet -- "../docs/pages/developers/tools" "../docs/pages/developers/clients/websocket" "../docs/pages/developers/clients/socks5"; then
|
||||
if ! git diff --quiet -- "../docs/pages/developers/tools" "../docs/pages/developers/clients/websocket" "../docs/pages/developers/clients/socks5" "../docs/components/outputs/command-outputs/"; then
|
||||
printf "commiting changes"
|
||||
git add ../docs/pages/developers/
|
||||
git add ../docs/pages/developers/ ../docs/components/outputs/command-outputs/
|
||||
git commit -m "auto commit generated command files"
|
||||
git push origin HEAD
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user