Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(framework) Update path dynamically for versioned script #4661

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions framework/docs/build-versioned-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down