Skip to content

Commit 407cfb2

Browse files
committed
Merge branch 'landing_page' of github.com:julia-pfarr/bids-website into landing_page
2 parents 6ff0239 + e5cbc5c commit 407cfb2

File tree

99 files changed

+8859
-1009
lines changed

Some content is hidden

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

99 files changed

+8859
-1009
lines changed

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,36 @@
22
# Documentation
33
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
44
version: 2
5+
enable-beta-ecosystems: true
56
updates:
67
- package-ecosystem: github-actions
78
directory: /
89
schedule:
910
interval: monthly
11+
groups:
12+
actions-infrastructure:
13+
patterns:
14+
- actions/*
1015

1116
- package-ecosystem: gitsubmodule
1217
directory: /
1318
schedule:
1419
interval: monthly
20+
21+
- package-ecosystem: uv
22+
directory: /
23+
schedule:
24+
interval: monthly
25+
groups:
26+
python:
27+
patterns:
28+
- '*'
29+
30+
- package-ecosystem: npm
31+
directory: /
32+
schedule:
33+
interval: weekly
34+
groups:
35+
npm:
36+
patterns:
37+
- '*'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Read the Docs PR preview
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
pr-preview-link:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: readthedocs/actions/preview@v1
16+
with:
17+
project-slug: bids-website

.github/workflows/deploy.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
name: Publish docs via GitHub Pages
2+
name: Build for gh-pages
33

44
on:
55
push:
66
branches:
77
- main
8+
pull_request:
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.ref }}
@@ -20,27 +21,32 @@ jobs:
2021
runs-on: ubuntu-latest
2122
steps:
2223
- name: Checkout
23-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2425
with:
2526
submodules: recursive
2627
fetch-depth: 0
2728

2829
- name: Set up Python
29-
uses: actions/setup-python@v5
30+
uses: astral-sh/setup-uv@v6
3031
with:
3132
python-version: 3.12
3233

3334
- name: Set up node
34-
uses: actions/setup-node@v4
35+
uses: actions/setup-node@v5
3536
with:
36-
node-version: 14
37+
node-version: 24
3738

3839
- name: Install dependencies and update content from submodules
3940
run: make all
4041

41-
- name: Deploy docs
42-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
42+
- name: Build site
43+
run: uv run mkdocs build
44+
45+
- name: Deploy pages
46+
if: github.event_name == 'push'
47+
run: |
48+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
49+
uv run mkdocs gh-deploy --force
4350
env:
4451
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
CONFIG_FILE: mkdocs.yml
46-
REQUIREMENTS: requirements.txt
52+
GITHUB_REPOSITORY: bids-standard/bids-website

.github/workflows/linkcheck.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
steps:
2222

2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525
with:
2626
submodules: recursive
2727
fetch-depth: 0
2828

2929
- name: Set up Python
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@v6
3131
with:
3232
python-version: 3.12
3333

3434
- name: Set up node
35-
uses: actions/setup-node@v4
35+
uses: actions/setup-node@v5
3636
with:
37-
node-version: 14
37+
node-version: 22
3838

3939
- name: Install dependencies and update content from submodules
4040
run: make all

.github/workflows/validation.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
latin-phrases:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
23-
- uses: actions/setup-python@v5
22+
- uses: actions/checkout@v5
23+
- uses: actions/setup-python@v6
2424
with:
2525
python-version: 3.12
2626
- name: Install dependencies
@@ -33,21 +33,21 @@ jobs:
3333
remark:
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v4
37-
- uses: actions/setup-node@v4
36+
- uses: actions/checkout@v5
37+
- uses: actions/setup-node@v5
3838
with:
39-
node-version: 14
39+
node-version: 22
4040
- name: Run markdown style checks
4141
run: make remark
4242

4343
# validate bep leads metadata
4444
bep-leads:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@v5
4848
with:
4949
submodules: true
50-
- uses: actions/setup-python@v5
50+
- uses: actions/setup-python@v6
5151
with:
5252
python-version: 3.12
5353
- name: Install dependencies
@@ -56,12 +56,12 @@ jobs:
5656
run: python validate_people.py
5757
working-directory: tools/ci
5858

59-
# validate bep leads metadata
59+
# validate apps metadata
6060
apps:
6161
runs-on: ubuntu-latest
6262
steps:
63-
- uses: actions/checkout@v4
64-
- uses: actions/setup-python@v5
63+
- uses: actions/checkout@v5
64+
- uses: actions/setup-python@v6
6565
with:
6666
python-version: 3.12
6767
- name: Install dependencies

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ vendor/
3131

3232
# node
3333
node_modules
34-
package*json

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exclude: |
88
)$
99
repos:
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v5.0.0
11+
rev: v6.0.0
1212
hooks:
1313
- id: trailing-whitespace
1414
- id: end-of-file-fixer
@@ -45,15 +45,15 @@ repos:
4545
rev: v2.15.0
4646
hooks:
4747
- id: pretty-format-toml
48-
args: [--autofix, --indent, '4']
48+
args: [--autofix, --indent, '4', --no-sort, --trailing-commas]
4949

5050
- repo: https://github.com/psf/black-pre-commit-mirror
51-
rev: 25.1.0
51+
rev: 25.9.0
5252
hooks:
5353
- id: black
5454

5555
- repo: https://github.com/pycqa/isort
56-
rev: 6.0.1
56+
rev: 7.0.0
5757
hooks:
5858
- id: isort
5959

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
- uv venv $READTHEDOCS_VIRTUALENV_PATH
1616
install:
1717
# Use a cache dir in the same mount to halve the install time
18-
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache -r requirements.txt
18+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv sync --active --frozen --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache
1919
pre_build:
2020
- make update
2121

.remarkrc

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
11
{
2+
"settings": {
3+
"bullet": "-",
4+
"commonmark": true,
5+
"emphasis": "*",
6+
"fences": true,
7+
"incrementListMarker": false,
8+
"listItemIndent": "tab",
9+
"rule": "-",
10+
"strong": "*"
11+
},
212
"plugins": [
313
"preset-lint-markdown-style-guide",
414
"preset-lint-recommended",
515
"remark-gfm",
6-
["lint-no-duplicate-headings", false],
7-
["lint-list-item-indent", "tab-size"],
816
["lint-emphasis-marker", "consistent"],
17+
["lint-list-item-indent", "tab"],
918
["lint-maximum-line-length", 500],
1019
["lint-maximum-heading-length", false],
20+
["lint-no-duplicate-headings", false],
1121
["lint-no-shortcut-reference-link", false],
12-
["remark-lint-unordered-list-marker-style", "-"],
1322
["lint-no-trailing-spaces"],
14-
["remark-lint-code-block-style", false],
1523
["lint-no-undefined-references", false],
16-
["remark-lint-heading-style", false]
24+
["remark-lint-code-block-style", false],
25+
["remark-lint-heading-style", false],
26+
["remark-lint-list-item-spacing", 1],
27+
["remark-lint-unordered-list-marker-style", "-"]
1728
]
1829
}

CONTRIBUTING.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ make sure you also read the instructions below.
1818

1919
### Requirements
2020

21-
- python >= 3.10
22-
- node.js >= ???
21+
- [uv](https://docs.astral.sh/uv/)
22+
- node.js >= 14
2323
- npm >= ???
2424

2525
<!-- TODO find minimal version of node and npm
@@ -36,12 +36,10 @@ Fork and clone the repository and its submodules
3636
git clone https://github.com/YOUR_USER_NAME/bids-website.git --recurse-submodules
3737
```
3838

39-
Create a virtual environment using `conda`, `venv` of what other environment management tool you prefer.
40-
41-
Install all the dependencies.
39+
Run `uv` to create a virtual environment in `.venv/`.
4240

4341
```bash
44-
pip install -r requirements.txt
42+
uv sync --frozen
4543
```
4644

4745
Generate all the content required for the build:
@@ -64,7 +62,7 @@ make update
6462
Serve the website with the mkdocs.
6563

6664
```bash
67-
mkdocs serve
65+
uv run mkdocs serve
6866
```
6967

7068
## Maintenance
@@ -74,7 +72,7 @@ mkdocs serve
7472
Same as for the install but you will also need to install `tox`.
7573

7674
```bash
77-
pip install tox
75+
uv run tox
7876
```
7977

8078
## Update all files
@@ -90,11 +88,21 @@ tox
9088
make remark
9189
```
9290

93-
## Updating the `requirements.txt`
91+
### Using remark to format a file
92+
93+
If you have a completely new file that you want to lint,
94+
you can use the following to get most of the markdown formatting done.
95+
96+
Some will still need some manual work.
97+
98+
```bash
99+
npm run format -- path_to_file --ouput
100+
```
101+
102+
## Upgrading dependencies
94103

95-
Update the appropriate line `requirements.in` and run:
104+
Rerun `uv sync`:
96105

97106
```bash
98-
python -m pip install pip-tools
99-
pip-compile --strip-extras requirements.in
107+
uv sync --upgrade
100108
```

0 commit comments

Comments
 (0)