Skip to content

Commit 4456846

Browse files
committed
fix mkdocs error
1 parent 54ae85c commit 4456846

2 files changed

Lines changed: 72 additions & 50 deletions

File tree

.github/workflows/docs.yml

Lines changed: 11 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,31 @@ name: Deploy MkDocs to GitHub Pages
33
on:
44
push:
55
branches: [ main, master, feature/doc_use_case ]
6-
pull_request:
7-
branches: [ main, master ]
86
workflow_dispatch:
97

10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
14-
15-
concurrency:
16-
group: "pages"
17-
cancel-in-progress: false
18-
198
jobs:
20-
build:
9+
deploy:
2110
runs-on: ubuntu-latest
2211
steps:
23-
- name: Checkout
12+
- name: Checkout code
2413
uses: actions/checkout@v4
25-
with:
26-
fetch-depth: 0
2714

28-
- name: Setup Python
29-
uses: actions/setup-python@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
3017
with:
3118
python-version: '3.11'
3219

33-
- name: Install uv
34-
uses: astral-sh/setup-uv@v3
35-
3620
- name: Install dependencies
3721
run: |
38-
uv pip install -r docs-requirements.txt --system
22+
python -m pip install --upgrade pip
23+
pip install -r docs-requirements.txt
3924
40-
- name: Build documentation
25+
- name: Build MkDocs site
4126
run: |
4227
mkdocs build --clean --strict
4328
44-
- name: Setup Pages
45-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
46-
uses: actions/configure-pages@v3
47-
48-
- name: Upload artifact
49-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
50-
uses: actions/upload-pages-artifact@v2
51-
with:
52-
path: ./site
53-
54-
deploy:
55-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
56-
environment:
57-
name: github-pages
58-
url: ${{ steps.deployment.outputs.page_url }}
59-
runs-on: ubuntu-latest
60-
needs: build
61-
steps:
6229
- name: Deploy to GitHub Pages
63-
id: deployment
64-
uses: actions/deploy-pages@v2
30+
uses: peaceiris/actions-gh-pages@v4
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./site

mkdocs.yml

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
site_name: HPC-Inference
22
site_description: Batch inference solution for large-scale image datasets on HPC
3+
site_author: Imageomics Institute
34
site_url: https://imageomics.github.io/hpc-inference
45
repo_url: https://github.com/Imageomics/hpc-inference
56
repo_name: Imageomics/hpc-inference
@@ -14,26 +15,35 @@ nav:
1415

1516
theme:
1617
name: material
18+
logo: docs/imgs/Imageomics_logo_butterfly.png
19+
favicon: docs/imgs/Imageomics_logo_butterfly.png
1720
palette:
18-
- scheme: default
19-
primary: teal
20-
accent: cyan
21+
# Palette toggle for automatic mode
22+
- media: "(prefers-color-scheme)"
23+
toggle:
24+
icon: material/brightness-auto
25+
name: Switch to light mode
26+
# Palette toggle for light mode
27+
- media: "(prefers-color-scheme: light)"
28+
scheme: default
2129
toggle:
2230
icon: material/brightness-7
2331
name: Switch to dark mode
24-
- scheme: slate
25-
primary: teal
26-
accent: cyan
32+
# Palette toggle for dark mode
33+
- media: "(prefers-color-scheme: dark)"
34+
scheme: slate
2735
toggle:
2836
icon: material/brightness-4
29-
name: Switch to light mode
37+
name: Switch to system preference
3038
features:
39+
- content.action.view
40+
- content.code.copy
3141
- navigation.tabs
42+
- navigation.tabs.sticky
3243
- navigation.sections
3344
- navigation.expand
3445
- navigation.top
3546
- search.highlight
36-
- content.code.copy
3747

3848
markdown_extensions:
3949
- admonition
@@ -58,3 +68,46 @@ plugins:
5868
handlers:
5969
python:
6070
paths: [src]
71+
72+
extra:
73+
social:
74+
- icon: fontawesome/brands/github
75+
link: https://github.com/Imageomics
76+
- icon: simple/huggingface
77+
link: https://huggingface.co/imageomics
78+
- icon: fontawesome/brands/linkedin
79+
link: https://www.linkedin.com/company/imageomics-institute
80+
- icon: fontawesome/brands/bluesky
81+
link: https://bsky.app/profile/imageomics.bsky.social
82+
- icon: fontawesome/brands/x-twitter
83+
link: https://twitter.com/imageomics
84+
- icon: fontawesome/brands/instagram
85+
link: https://www.instagram.com/imageomics/
86+
- icon: fontawesome/brands/youtube
87+
link: https://www.youtube.com/@ImageomicsInstitute/videos
88+
- icon: octicons/link-16
89+
link: https://imageomics.org
90+
91+
copyright: >
92+
This work was supported by both the <a
93+
href="https://imageomics.org" target="_blank"><u>Imageomics Institute</u></a> and the <a
94+
href="http://abcresearchcenter.org/" target="_blank"><u>AI and Biodiversity Change (ABC) Global
95+
Center</u></a>.
96+
97+
The Imageomics Institute is funded by the US National
98+
Science Foundation's Harnessing the Data Revolution (HDR) program under <a
99+
href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118240" target="_blank"><u>Award
100+
#2118240</u></a> (Imageomics: A New Frontier of Biological Information Powered by
101+
Knowledge-Guided Machine Learning).
102+
103+
The ABC Global Center is funded by the US
104+
National Science Foundation under <a
105+
href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2330423&HistoricalAwards=false" target="_blank"><u>Award No.
106+
2330423</u></a> and the Natural Sciences and Engineering Research Council of Canada
107+
under <a
108+
href="https://www.nserc-crsng.gc.ca/ase-oro/Details-Detailles_eng.asp?id=782440" target="_blank"><u>Award No. 585136</u></a>.
109+
110+
Any opinions, findings,
111+
conclusions, or recommendations expressed in this material are those of the
112+
author(s) and do not necessarily reflect the views of the National Science
113+
Foundation or the Natural Sciences and Engineering Research Council of Canada.

0 commit comments

Comments
 (0)