Skip to content

Commit

Permalink
update docs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Dec 18, 2023
1 parent e4c5e0f commit 56f7708
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ runs:
run: sudo apt-get update -y && sudo apt-get install -y lua-ldoc
- name: Build Documentation
shell: bash
run: ./scripts/build-docs.sh docs
run: ./scripts/build-docs.sh docs-build docs-release
2 changes: 1 addition & 1 deletion .github/actions/publish-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ runs:
- uses: launchdarkly/gh-actions/actions/[email protected]
name: 'Publish to Github pages'
with:
docs_path: docs
docs_path: docs-release
github_token: ${{ inputs.token }}
9 changes: 6 additions & 3 deletions scripts/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
set -e

# The first argument is the directory where the docs should be built.
# The second is where the docs should be copied to when built.

if [ -z "$1" ]; then
echo "Usage: $0 <docs-build-dir>"
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <docs build dir> <docs release dir>"
exit 1
fi

DOCS_BUILD_DIR=$1
DOCS_RELEASE_DIR=$2

mkdir "$DOCS_BUILD_DIR"

cp launchdarkly-server-sdk.c "$DOCS_BUILD_DIR"
cp launchdarkly-server-sdk-redis.c "$DOCS_BUILD_DIR"

ldoc -d "$LD_RELEASE_DOCS_DIR" "$DOCS_BUILD_DIR"
ldoc -d "$DOCS_RELEASE_DIR" "$DOCS_BUILD_DIR"

0 comments on commit 56f7708

Please sign in to comment.