-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Deploy documentation artifacts to S3 (#745)
- Replace the use of `gh-pages` by S3 bucket: the commits history remains light and clean, - Create a new version of the documentation after each release of `skore`, - Add a drop-down list allowing user to select the last 10 versions (+ `dev`) of the documentation of `skore`, - Running locally `make html` build documentation with a `dev` tag. --- After each __commit__ on the `main` branch, the documentation is build and deployed on the `S3:dev/` directory. After each __release__, the documentation is build and deployed to the `S3:version/` directory, the version being a subpart of the tag `MAJOR.MINOR.BUGFIX`: `MAJOR.MINOR`. For instance, with the following timeline: ``` dev/ dev/ dev/ dev/ dev/ 0.1/ 0.2/ main -- x -- x -- x -- x -- x -- > | | tag 0.1 0.2 ``` The S3 bucket looks like: ``` . ├── 0.1/ ├── 0.2/ ├── dev/ ├── index.html └── versions.json ```
- Loading branch information
1 parent
a58e9fd
commit 462c041
Showing
54 changed files
with
2,965 additions
and
681 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
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 |
---|---|---|
@@ -1,19 +1,38 @@ | ||
name: Deploy sphinx documentation | ||
permissions: | ||
contents: write | ||
|
||
inputs: | ||
CONFIGURATION: | ||
required: true | ||
ACTION: | ||
required: false | ||
default: sync | ||
type: choice | ||
options: | ||
- copy | ||
- sync | ||
PROVIDER: | ||
required: false | ||
default: scaleway | ||
BUCKET: | ||
required: false | ||
default: prod-probabl-skore | ||
SOURCE: | ||
required: true | ||
DESTINATION: | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
rm -rf docs/latest | ||
mv sphinx/build/html docs/latest | ||
sudo apt-get update | ||
sudo apt-get install -y rclone | ||
- shell: bash | ||
run: echo "${{ inputs.CONFIGURATION }}" > rclone.configuration | ||
- shell: bash | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
git config commit.cleanup 'verbatim' | ||
git add docs/latest | ||
git commit -m $'docs: Build documentation triggered by ${{ github.sha }}\n\n\nskip-checks:true' | ||
git push | ||
rclone --config rclone.configuration \ | ||
${{ inputs.ACTION }} \ | ||
${{ inputs.SOURCE }} \ | ||
${{ inputs.PROVIDER }}:${{ inputs.BUCKET }}/${{ inputs.DESTINATION }} |
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
File renamed without changes.
Binary file modified
BIN
+122 Bytes
(100%)
docs/latest/_downloads/07fcc19ba03226cd3d83d4e40ec44385/auto_examples_python.zip
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file renamed
BIN
+15 KB
...66ced5b7bc6a6d/plot_03_cross_validate.zip → ...127bb963835935/plot_01_cross_validate.zip
Binary file not shown.
Binary file modified
BIN
+122 Bytes
(100%)
docs/latest/_downloads/6f1e7a639e0699d6164445b55e6c116d/auto_examples_jupyter.zip
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file renamed
BIN
+23.7 KB
...aaa53a/plot_02_overview_skore_project.zip → ...6ea016/plot_01_overview_skore_project.zip
Binary file not shown.
Binary file renamed
BIN
+19.6 KB
...d8a4588515de/plot_05_train_test_split.zip → ...6f41dc43832c/plot_02_train_test_split.zip
Binary file not shown.
Binary file renamed
BIN
+15.4 KB
...269d4d66baefe0/plot_04_tracking_items.zip → ...7fe85f16458c1e/plot_02_tracking_items.zip
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file renamed
BIN
+18.9 KB
...cbe5e4682d2a1/plot_01_getting_started.zip → ...aa974f7c36c1d/plot_01_getting_started.zip
Binary file not shown.
File renamed without changes
Binary file modified
BIN
+0 Bytes
(100%)
docs/latest/_images/sphx_glr_plot_01_getting_started_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+68.8 KB
...lr_plot_02_overview_skore_project_001.png → ...lr_plot_01_overview_skore_project_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
47 changes: 47 additions & 0 deletions
47
docs/latest/_sources/auto_examples/00_getting_started/index.rst.txt
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
|
||
.. _sphx_glr_auto_examples_00_getting_started: | ||
|
||
Getting started | ||
--------------- | ||
|
||
We recommend first having a look at this example that serves as an overall and gentle | ||
introduction to skore. | ||
|
||
|
||
|
||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbnails"> | ||
|
||
.. thumbnail-parent-div-open | ||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbcontainer" tooltip="Getting started with skore"> | ||
|
||
.. only:: html | ||
|
||
.. image:: /auto_examples/00_getting_started/images/thumb/sphx_glr_plot_01_getting_started_thumb.png | ||
:alt: | ||
|
||
:ref:`sphx_glr_auto_examples_00_getting_started_plot_01_getting_started.py` | ||
|
||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbnail-title">Getting started with skore</div> | ||
</div> | ||
|
||
|
||
.. thumbnail-parent-div-close | ||
.. raw:: html | ||
|
||
</div> | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
/auto_examples/00_getting_started/plot_01_getting_started | ||
|
22 changes: 11 additions & 11 deletions
22
..._examples/plot_01_getting_started.rst.txt → ...g_started/plot_01_getting_started.rst.txt
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
|
||
.. _sphx_glr_auto_examples_01_track: | ||
|
||
Track | ||
----- | ||
|
||
These examples illustrate the skore Project and UI. | ||
|
||
|
||
|
||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbnails"> | ||
|
||
.. thumbnail-parent-div-open | ||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbcontainer" tooltip="This example provides an overview of the functionalities and the different types of items that we can store in a skore Project."> | ||
|
||
.. only:: html | ||
|
||
.. image:: /auto_examples/01_track/images/thumb/sphx_glr_plot_01_overview_skore_project_thumb.png | ||
:alt: | ||
|
||
:ref:`sphx_glr_auto_examples_01_track_plot_01_overview_skore_project.py` | ||
|
||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbnail-title">Overview of the skore project</div> | ||
</div> | ||
|
||
|
||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbcontainer" tooltip="This example illustrates how skore can be used to track some items using their history, for example tracking some ML metrics over time."> | ||
|
||
.. only:: html | ||
|
||
.. image:: /auto_examples/01_track/images/thumb/sphx_glr_plot_02_tracking_items_thumb.png | ||
:alt: | ||
|
||
:ref:`sphx_glr_auto_examples_01_track_plot_02_tracking_items.py` | ||
|
||
.. raw:: html | ||
|
||
<div class="sphx-glr-thumbnail-title">Tracking items using their history</div> | ||
</div> | ||
|
||
|
||
.. thumbnail-parent-div-close | ||
.. raw:: html | ||
|
||
</div> | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
/auto_examples/01_track/plot_01_overview_skore_project | ||
/auto_examples/01_track/plot_02_tracking_items | ||
|
Oops, something went wrong.