Skip to content

Commit bea2ccf

Browse files
committed
temporary redirect to /pixano
1 parent a16f2f2 commit bea2ccf

3 files changed

Lines changed: 45 additions & 43 deletions

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,39 @@
1-
# @Copyright: CEA-LIST/DIASI/SIALV/LVA (2023)
2-
# @Author: CEA-LIST/DIASI/SIALV/LVA <pixano@cea.fr>
3-
# @License: CECILL-C
4-
#
5-
# This software is a collaborative computer program whose purpose is to
6-
# generate and explore labeled data for computer vision applications.
7-
# This software is governed by the CeCILL-C license under French law and
8-
# abiding by the rules of distribution of free software. You can use,
9-
# modify and/ or redistribute the software under the terms of the CeCILL-C
10-
# license as circulated by CEA, CNRS and INRIA at the following URL
11-
#
12-
# http://www.cecill.info
13-
14-
# This workflow will publish the new version of Pixano to PyPI when a release is created
15-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
16-
17-
name: Publish
1+
name: Deploy redirect
182

193
on:
204
push:
215
branches:
226
- "main"
237

248
permissions:
25-
contents: write
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
2616

2717
jobs:
28-
deploy_docs:
29-
name: Publish documentation website
18+
deploy:
19+
name: Deploy redirect page
3020
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
3124

3225
steps:
3326
- name: Checkout repository
3427
uses: actions/checkout@v4
3528

36-
- name: Configure git credentials
37-
run: |
38-
git config user.name github-actions[bot]
39-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v5
4031

41-
- name: Set up Python 3.10
42-
uses: actions/setup-python@v5
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v3
4334
with:
44-
python-version: "3.10"
45-
46-
- name: Create cache_id for key creation
47-
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
48-
49-
- name: Create cache key with cache_id
50-
uses: actions/cache@v4
51-
with:
52-
key: mkdocs-material-${{ env.cache_id }}
53-
path: .cache
54-
restore-keys: |
55-
mkdocs-material-
56-
57-
- name: Install dependencies
58-
run: pip install .
35+
path: public
5936

60-
- name: Publish documentation website
61-
run: mkdocs gh-deploy --force
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

public/404.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="refresh" content="0;url=https://pixano.github.io/pixano">
6+
<title>Redirecting to Pixano</title>
7+
</head>
8+
<body>
9+
<p>Redirecting to <a href="https://pixano.github.io/pixano">Pixano documentation</a>...</p>
10+
<script>window.location.replace("https://pixano.github.io/pixano");</script>
11+
</body>
12+
</html>

public/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="refresh" content="0;url=https://pixano.github.io/pixano">
6+
<title>Redirecting to Pixano</title>
7+
</head>
8+
<body>
9+
<p>Redirecting to <a href="https://pixano.github.io/pixano">Pixano documentation</a>...</p>
10+
<script>window.location.replace("https://pixano.github.io/pixano");</script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)