Skip to content

Commit d534aab

Browse files
committed
Merge branch 'main' into paper/JOSS-submission
2 parents bbbe70c + 339bd73 commit d534aab

54 files changed

Lines changed: 3104 additions & 843 deletions

Some content is hidden

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

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docs/source/tutorial_data/three_nights.bin filter=lfs diff=lfs merge=lfs -text
2+
*.ipynb filter=lfs diff=lfs merge=lfs -text

.github/workflows/docs.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ on:
1313

1414
jobs:
1515
build-and-publish-docs:
16-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1716
runs-on: ubuntu-latest
1817
steps:
19-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
2019
- name: Fetch LFS files
2120
run: git lfs pull
2221
- uses: actions/setup-python@v5
@@ -26,10 +25,16 @@ jobs:
2625
run: |
2726
python -m pip install poetry
2827
poetry install --with docs
29-
- name: Build docs
28+
- name: Build Sphinx docs
29+
working-directory: docs
3030
run: |
31-
poetry run pdoc src/wristpy -o docs_build -t docs/pdoc-theme --docformat google
32-
touch docs_build/.nojekyll
33-
- uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8
31+
poetry run make html
32+
touch build/html/.nojekyll
33+
ls -la build/html | sed 's/^/BUILD: /'
34+
- name: Deploy to gh-pages
35+
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8
3436
with:
35-
folder: docs_build
37+
branch: gh-pages
38+
folder: docs/build/html
39+
clean: true
40+
single-commit: true

.github/workflows/pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
with:
2222
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
2323
- uses: actions/setup-python@v5

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Check out the repo
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
with:
2222
lfs: true
2323

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
python_version: ['3.10', '3.11', '3.12', '3.13']
2222
resolution: [lowest-direct, highest]
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525
- name: Install poetry
2626
run: pipx install poetry
2727

@@ -57,7 +57,7 @@ jobs:
5757
ruff:
5858
runs-on: ubuntu-latest
5959
steps:
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v5
6161
- name: Install poetry
6262
run: pipx install poetry
6363
- uses: actions/setup-python@v5
@@ -75,7 +75,7 @@ jobs:
7575
mypy:
7676
runs-on: ubuntu-latest
7777
steps:
78-
- uses: actions/checkout@v4
78+
- uses: actions/checkout@v5
7979
- name: Install poetry
8080
run: pipx install poetry
8181
- uses: actions/setup-python@v5

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ instance/
7676

7777
# Sphinx documentation
7878
docs/_build/
79+
docs/build/
80+
7981

8082
# PyBuilder
8183
.pybuilder/

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ repos:
4141
- --fix=lf
4242
- id: trailing-whitespace
4343
- id: pretty-format-json
44+
exclude: ^docs/source/.*\.ipynb$
4445
args:
4546
- --autofix
4647
- --indent=4
4748
- --no-sort-keys
4849
- id: check-merge-conflict
4950
- id: check-yaml
5051
- id: check-json
52+
exclude: ^docs/source/.*\.ipynb$
5153
- id: check-toml
5254

5355
- repo: local

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13883190.svg)](https://doi.org/10.5281/zenodo.13883190)
22

3-
# `wristpy` <img src="https://media.githubusercontent.com/media/childmindresearch/wristpy/main/docs/wristpy_logo.png" align="right" width="25%"/>
3+
# `wristpy` <picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://media.githubusercontent.com/media/childmindresearch/wristpy/main/docs/source/_static/images/wristpy_logo_dark.png">
5+
<source media="(prefers-color-scheme: light)" srcset="https://media.githubusercontent.com/media/childmindresearch/wristpy/main/docs/source/_static/images/wristpy_logo_light.png">
6+
<img src="https://media.githubusercontent.com/media/childmindresearch/wristpy/main/docs/source/_static/images/wristpy_logo_light.png" align="right" width="25%" alt="wristpy logo"/>
7+
</picture>
48

59
A Python package for wrist-worn accelerometer data processing.
610

docs/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
3+
4+
SPHINXOPTS ?=
5+
SPHINXBUILD ?= sphinx-build
6+
SOURCEDIR = source
7+
BUILDDIR = build
8+
9+
10+
help:
11+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
12+
13+
.PHONY: help Makefile
14+
15+
%: Makefile
16+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
17+
18+
19+
clean:
20+
@if [ -z "$(BUILDDIR)" ]; then \
21+
echo "Error: BUILDDIR is not set."; \
22+
exit 1; \
23+
fi
24+
rm -rf $(BUILDDIR)/*
25+
26+
livehtml:
27+
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/enmo_anglez_example3.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)