Skip to content

Commit e2b5afc

Browse files
Merge pull request #113 from OceanParcels/migration
New OceanParcels website
2 parents c722a93 + 2bc4da7 commit e2b5afc

File tree

748 files changed

+106237
-64019
lines changed

Some content is hidden

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

748 files changed

+106237
-64019
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["next", "next/core-web-vitals"]
3+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html linguist-generated=true

.github/dependabot.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Basic set up for three package managers
2+
3+
version: 2
4+
updates:
5+
# Maintain dependencies for GitHub Actions
6+
- package-ecosystem: 'github-actions'
7+
directory: '/'
8+
schedule:
9+
interval: 'monthly'
10+
11+
# Maintain dependencies for npm
12+
- package-ecosystem: 'npm'
13+
directory: '/'
14+
schedule:
15+
interval: 'monthly'
16+
17+
groups:
18+
dependencies:
19+
patterns:
20+
- '@chakra-ui*'
21+
- '@emotion*'
22+
- '@mdx-js*'
23+
- '@next*'
24+
- 'apexcharts'
25+
- 'd3'
26+
- 'date*'
27+
- 'framer*'
28+
- 'isomorphic*'
29+
- 'next*'
30+
- 'react*'
31+
- 'rehype*'
32+
- 'swr'
33+
dev-dependencies:
34+
patterns:
35+
- '@types/*'
36+
- 'eslint*'
37+
- 'playwright'

.github/workflows/deploy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
# Allow only one concurrent deployment
16+
concurrency:
17+
group: 'pages'
18+
cancel-in-progress: true
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '20'
31+
cache: 'npm'
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Build with Next.js
37+
run: npm run build
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: ./out
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
if: github.ref == 'refs/heads/main'
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

.github/workflows/linkcheck.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ jobs:
3737
if: env.lychee_exit_code != 0
3838
uses: actions-cool/issues-helper@v3
3939
with:
40-
actions: "update-issue"
40+
actions: 'update-issue'
4141
token: ${{ secrets.GITHUB_TOKEN }}
4242
issue-number: ${{ env.LINK_TRACKING_ISSUE_NUMBER }}
43-
state: "open"
43+
state: 'open'
4444
body: ${{ steps.readReport.outputs.FILE_CONTENT }}
45-
update-mode: "replace"
45+
update-mode: 'replace'
4646

4747
- name: Update link tracking issue (no invalid links)
4848
if: env.lychee_exit_code == 0
4949
uses: actions-cool/issues-helper@v3
5050
with:
51-
actions: "update-issue"
51+
actions: 'update-issue'
5252
token: ${{ secrets.GITHUB_TOKEN }}
5353
issue-number: ${{ env.LINK_TRACKING_ISSUE_NUMBER }}
54-
state: "closed"
55-
body: "No invalid links found! 🤖"
56-
update-mode: "replace"
54+
state: 'closed'
55+
body: 'No invalid links found! 🤖'
56+
update-mode: 'replace'
5757

5858
- name: Upload artifact
5959
uses: actions/upload-artifact@v3

.gitignore

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
.idea*
2-
.DS_Store
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# Jupyter Notebook
34+
.ipynb_checkpoints
35+
36+
.yarn
37+
.vscode/
38+
39+
public/atom.xml
40+
public/rss.json
41+
public/rss.xml

.imgbotconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"ignoredFiles": ["public/parcels-assets/*", "public/cards/*"],
3+
"schedule": "monthly"
4+
}

.pre-commit-config.yaml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: "25.1.0"
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
45
hooks:
5-
- id: black
6-
- repo: https://github.com/rbubley/mirrors-prettier # Update mirror as official mirror is deprecated
7-
rev: v3.5.3
6+
- id: trailing-whitespace
7+
exclude: \.html$
8+
- id: end-of-file-fixer
9+
exclude: \.html$
10+
- id: check-added-large-files
11+
args: ['--maxkb=20000']
12+
- id: check-yaml
13+
- id: double-quote-string-fixer
14+
exclude: \.html$
15+
16+
- repo: https://github.com/pre-commit/mirrors-prettier
17+
rev: 'v4.0.0-alpha.8'
818
hooks:
919
- id: prettier
20+
exclude: \.html$
21+
22+
files: "\\.(\
23+
css|less|scss\
24+
|graphql|gql\
25+
|html\
26+
|js|jsx\
27+
|json\
28+
|ts|tsx\
29+
|vue\
30+
|yaml|yml\
31+
)$"
32+
- repo: https://github.com/pre-commit/mirrors-prettier
33+
rev: 'v4.0.0-alpha.8'
34+
hooks:
35+
- id: prettier
36+
37+
name: prettier-markdown
38+
entry: prettier --write --parser mdx
39+
files: "\\.(\
40+
|md|markdown|mdown|mkdn\
41+
|mdx\
42+
)$"
43+
# exclude files ending with .html
44+
exclude: \.html$

.prettierignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
*
2-
3-
# Ignore all except...
4-
!index.html
5-
!utrechtteam.html
1+
node_modules
2+
**/node_modules
3+
**/lib
4+
.next/

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 2,
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"quoteProps": "as-needed",
7+
"jsxSingleQuote": true,
8+
"importOrder": ["^components/(.*)$", "^data/(.*)$", "^lib/(.*)$", "^[./]"],
9+
"importOrderSeparation": true,
10+
"importOrderSortSpecifiers": true
11+
}

0 commit comments

Comments
 (0)