Skip to content

Commit 7904fee

Browse files
author
Alexander Refsum Jensenius
committed
Set up GitHub Pages with MkDocs
- Add GitHub Pages deployment workflow (.github/workflows/docs.yml) - Configure MkDocs for GitHub Pages with site_url and plugins - Update documentation badges to point to GitHub Pages - Streamline navigation for existing content - Ready for deployment at https://fourms.github.io/MGT-python/
1 parent f58c59e commit 7904fee

File tree

153 files changed

+72532
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+72532
-14
lines changed

.github/workflows/docs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Python
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.9'
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install mkdocs mkdocs-material mkdocs-git-revision-date-localized-plugin
36+
37+
- name: Build documentation
38+
run: mkdocs build --clean
39+
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v3
42+
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v2
45+
with:
46+
path: './site'
47+
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
if: github.ref == 'refs/heads/master'
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v2

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
[![PyPi version](https://badgen.net/pypi/v/musicalgestures/)](https://pypi.org/project/musicalgestures)
44
[![GitHub license](https://img.shields.io/github/license/fourMs/MGT-python.svg)](https://github.com/fourMs/MGT-python/blob/master/LICENSE)
55
[![CI](https://github.com/fourMs/MGT-python/actions/workflows/ci.yml/badge.svg)](https://github.com/fourMs/MGT-python/actions/workflows/ci.yml)
6-
[![Documentation Status](https://readthedocs.org/projects/mgt-python/badge/?version=latest)](https://mgt-python.readthedocs.io/en/latest/?badge=latest)
6+
[![Documentation](https://github.com/fourMs/MGT-python/actions/workflows/docs.yml/badge.svg)](https://fourms.github.io/MGT-python/)
77

88
The **Musical Gestures Toolbox for Python** is a comprehensive collection of tools for visualization and analysis of audio and video, with a focus on motion capture and musical gesture analysis.
99

1010
![MGT python](https://raw.githubusercontent.com/fourMs/MGT-python/master/musicalgestures/documentation/figures/promo/ipython_example.gif)
1111

12+
📖 **[📚 Full Documentation & Examples](https://fourms.github.io/MGT-python/)**
13+
1214
## Quick Start
1315

1416
### Installation

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![PyPi version](https://badgen.net/pypi/v/musicalgestures/)](https://pypi.org/project/musicalgestures)
44
[![GitHub license](https://img.shields.io/github/license/fourMs/MGT-python.svg)](https://github.com/fourMs/MGT-python/blob/master/LICENSE)
55
[![CI](https://github.com/fourMs/MGT-python/actions/workflows/ci.yml/badge.svg)](https://github.com/fourMs/MGT-python/actions/workflows/ci.yml)
6-
[![Documentation Status](https://readthedocs.org/projects/mgt-python/badge/?version=latest)](https://mgt-python.readthedocs.io/en/latest/?badge=latest)
6+
[![Documentation](https://github.com/fourMs/MGT-python/actions/workflows/docs.yml/badge.svg)](https://fourms.github.io/MGT-python/)
77

88
The **Musical Gestures Toolbox for Python** is a comprehensive collection of tools for visualization and analysis of audio and video, with a focus on motion capture and musical gesture analysis.
99

@@ -111,7 +111,7 @@ If you use MGT-python in your research, please cite:
111111
@software{mgt_python,
112112
title={Musical Gestures Toolbox for Python},
113113
author={University of Oslo fourMs Lab},
114-
url={https://github.com/fourMs/MGT-python},
114+
url={https://fourms.github.io/MGT-python/},
115115
version={1.3.2},
116116
year={2024}
117117
}

mkdocs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
site_name: "MGT-python: Musical Gestures Toolbox"
22
site_description: "Musical Gestures Toolbox for Python - Tools for visualization and analysis of audio and video"
3+
site_url: "https://fourms.github.io/MGT-python/"
34
repo_url: "https://github.com/fourMs/MGT-python/"
45
edit_uri: "edit/master/docs/"
56
site_dir: "site"
@@ -15,6 +16,8 @@ theme:
1516
- navigation.top
1617
- search.highlight
1718
- content.code.copy
19+
- content.action.edit
20+
- content.action.view
1821
palette:
1922
- scheme: default
2023
primary: indigo
@@ -29,6 +32,11 @@ theme:
2932
icon: material/brightness-4
3033
name: Switch to light mode
3134

35+
plugins:
36+
- search
37+
- git-revision-date-localized:
38+
enable_creation_date: true
39+
3240
nav:
3341
- Home: index.md
3442
- Getting Started:
@@ -37,12 +45,8 @@ nav:
3745
- Examples: examples.md
3846
- User Guide:
3947
- Core Classes: user-guide/core-classes.md
40-
- Video Processing: user-guide/video-processing.md
41-
- Audio Analysis: user-guide/audio-analysis.md
42-
- Motion Analysis: user-guide/motion-analysis.md
43-
- Visualization: user-guide/visualization.md
4448
- API Reference:
45-
- musicalgestures/index.md
49+
- Overview: musicalgestures/index.md
4650
- Video: musicalgestures/_video.md
4751
- Audio: musicalgestures/_audio.md
4852
- Flow: musicalgestures/_flow.md
@@ -51,15 +55,11 @@ nav:
5155
- Complete Reference: MODULES.md
5256
- Development:
5357
- Contributing: contributing.md
54-
- Testing: testing.md
55-
- Release Notes: releases.md
5658

5759
plugins:
5860
- search
59-
- mkdocstrings:
60-
handlers:
61-
python:
62-
paths: [musicalgestures]
61+
- git-revision-date-localized:
62+
enable_creation_date: true
6363

6464
markdown_extensions:
6565
- admonition

0 commit comments

Comments
 (0)