Skip to content

Commit 605f2c4

Browse files
committed
Copy parcels website
0 parents  commit 605f2c4

File tree

138 files changed

+17187
-0
lines changed

Some content is hidden

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

138 files changed

+17187
-0
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+
}

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
72033c5c10a22296d5fcb64c2d5b1d4a0a0809b9
2+
484cb6f878c3ebfee7b37ba6100d1dd37cfbeeab

.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: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment
17+
concurrency:
18+
group: branch-${{ github.head_ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '20'
32+
cache: 'npm'
33+
- name: Restore cache
34+
uses: actions/cache@v4
35+
with:
36+
path: |
37+
.next/cache
38+
# Generate a new cache whenever packages or source files change.
39+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
40+
# If source files changed but packages didn't, rebuild from a prior cache.
41+
restore-keys: |
42+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
43+
- name: Install dependencies
44+
run: npm ci
45+
46+
- name: Build with Next.js
47+
run: npm run build
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: ./out
53+
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
if: github.ref == 'refs/heads/main'
61+
steps:
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/deploy-pages@v4

.github/workflows/linkcheck.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Check URL Status
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: 0 0 * * 0 # run at midnight every Sunday
7+
8+
env:
9+
LINK_TRACKING_ISSUE_NUMBER: 85
10+
11+
permissions:
12+
issues: write
13+
14+
jobs:
15+
check-urls:
16+
if: ${{ !github.event.repository.fork }}
17+
env:
18+
LYCHEE_REPORT_FILE: ./lychee/out.md
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Link Checker
24+
id: lychee
25+
uses: lycheeverse/[email protected]
26+
27+
- name: Read Lychee report
28+
if: env.lychee_exit_code != 0
29+
id: readReport
30+
run: |
31+
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
32+
echo "FILE_CONTENT<<$EOF" >> $GITHUB_OUTPUT
33+
echo "$(cat ${{ env.LYCHEE_REPORT_FILE }})" >> $GITHUB_OUTPUT
34+
echo "$EOF" >> $GITHUB_OUTPUT
35+
- run: echo "${{ steps.readReport.outputs.FILE_CONTENT }}"
36+
- name: Update link tracking issue (update invalid links)
37+
if: env.lychee_exit_code != 0
38+
uses: actions-cool/issues-helper@v3
39+
with:
40+
actions: 'update-issue'
41+
token: ${{ secrets.GITHUB_TOKEN }}
42+
issue-number: ${{ env.LINK_TRACKING_ISSUE_NUMBER }}
43+
state: 'open'
44+
body: ${{ steps.readReport.outputs.FILE_CONTENT }}
45+
update-mode: 'replace'
46+
47+
- name: Update link tracking issue (no invalid links)
48+
if: env.lychee_exit_code == 0
49+
uses: actions-cool/issues-helper@v3
50+
with:
51+
actions: 'update-issue'
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
issue-number: ${{ env.LINK_TRACKING_ISSUE_NUMBER }}
54+
state: 'closed'
55+
body: 'No invalid links found! 🤖'
56+
update-mode: 'replace'
57+
58+
- name: Upload artifact
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: lychee-report
62+
path: ${{ env.LYCHEE_REPORT_FILE }}

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
5+
hooks:
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'
18+
hooks:
19+
- 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
**/node_modules
3+
**/lib
4+
.next/

0 commit comments

Comments
 (0)