-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,207 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,26 +26,26 @@ jobs: | |
# 2. Partie spécifique à Sphinx (installation des | ||
# dépendances et génération de la doc) | ||
- name: "Set up Python" | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: '3.10' | ||
|
||
- name: Install Poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: "Install Python dependencies" | ||
run: | | ||
pip3 install setuptools | ||
pip3 install sphinx | ||
pip3 install sphinx-rtd-theme | ||
pip3 install sphinx-favicon | ||
pip3 install -r requirements.txt | ||
poetry install --with docs --no-root | ||
- name: "Build Sphinx Doc" | ||
- name: Build Sphinx Documentation | ||
working-directory: docs | ||
run: | | ||
make html | ||
poetry run sphinx-build -b html . _build/html | ||
# 3. Déploiement sur les Github Pages | ||
- name: "Deploy Github Pages" | ||
uses: JamesIves/[email protected] | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # <- Branche sur laquelle seront commités les fichiers | ||
FOLDER: build/html/ # <- Dossier contenant notre documentation générée | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.