Skip to content

Commit

Permalink
Separate doc generation and mkdocs used to copy doc in target
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliGautier committed Jan 30, 2025
1 parent 6db270a commit 0378abd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions mkDocs.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh -e

# Generate documentation
python3.10 docs/inject_commands.py docs/docs/*.template

# Copy documentation to target
rm -rf target/generated-docs
mkdir -p target/generated-docs
Expand Down
4 changes: 4 additions & 0 deletions scripts/generate_doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

# Generate documentation
python3.10 docs/inject_commands.py docs/docs/*.template
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cp /tmp/arlas-cli-release.conf ./configuration.yaml
git add configuration.yaml

# Generate and publish documentation
./mkDocs.sh
./scripts/generate_doc.sh
pip3.10 install mkdocs-material termynal
mkdocs gh-deploy -f docs/mkdocs.yml

Expand Down

0 comments on commit 0378abd

Please sign in to comment.