Skip to content

Commit

Permalink
docs(framework) Update path dynamically for versioned script (#4661)
Browse files Browse the repository at this point in the history
charlesbvll authored Dec 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0730b12 commit d7004b8
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -22,10 +22,10 @@ README.md @jafermarq @tanertopal @danieljanes
/src/py/flwr/cli/new/templates @jafermarq @tanertopal @danieljanes

# Changelog
/doc/source/ref-changelog.md @jafermarq @tanertopal @danieljanes
/framework/docs/source/ref-changelog.md @jafermarq @tanertopal @danieljanes

# Translations
/doc/locales @charlesbvll @tanertopal @danieljanes
/framework/docs/locales @charlesbvll @tanertopal @danieljanes

# GitHub Actions and Workflows
/.github/workflows @Robert-Steiner @tanertopal @danieljanes
10 changes: 7 additions & 3 deletions framework/docs/build-versioned-docs.sh
Original file line number Diff line number Diff line change
@@ -15,8 +15,6 @@ tmp_dir=`mktemp -d`
cp -r framework/docs/locales ${tmp_dir}/locales
cp -r framework/docs/source/_templates ${tmp_dir}/_templates

cd framework/docs

# Get a list of languages based on the folders in locales
languages="en `find locales/ -mindepth 1 -maxdepth 1 -type d -exec basename '{}' \;`"
# Get a list of tags, excluding those before v1.0.0
@@ -46,7 +44,13 @@ for current_version in ${versions}; do
pip install "numpy==${numpy_version_2}"
fi
echo "INFO: Building sites for ${current_version}"


if [ -d "framework/docs" ]; then
cd framework/docs
else
cd doc
fi

for current_language in ${languages}; do

# Make the current language available to conf.py

0 comments on commit d7004b8

Please sign in to comment.