Skip to content

Commit d4463f5

Browse files
committed
New website based on astro
1 parent 3bde0aa commit d4463f5

File tree

236 files changed

+20462
-4154
lines changed

Some content is hidden

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

236 files changed

+20462
-4154
lines changed

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist/
2+
node_modules/
3+
.vscode/
4+
.github/

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 2
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = false

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'monthly'
7+
8+
- package-ecosystem: 'github-actions'
9+
directory: '/'
10+
schedule:
11+
interval: 'monthly'

.github/workflows/actions.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: GitHub Actions
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
- astro # TODO: remove
11+
schedule:
12+
# Rebuild every day to update dynamic content
13+
- cron: '0 0 * * *'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Use Node.js 22
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
cache: npm
25+
- run: npm ci
26+
- run: npm run check
27+
- run: npm run build -- --base '/signalk.github.io'
28+
- name: Upload Artifact
29+
# if: github.ref == 'refs/heads/main'
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: './dist'
33+
34+
deploy:
35+
needs: build
36+
37+
permissions:
38+
pages: write # to deploy to Pages
39+
id-token: write # to verify the deployment originates from an appropriate source
40+
41+
# Deploy to the github-pages environment
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
46+
# Specify runner + deployment step
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

.gitignore

+24-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
_site
2-
.pygments-cache
3-
*.swp
4-
*.iml
1+
# build output
2+
dist/
3+
.output/
4+
5+
# dependencies
6+
node_modules/
7+
8+
# logs
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
14+
15+
# environment variables
16+
.env
17+
.env.production
18+
19+
# macOS-specific files
20+
.DS_Store
21+
22+
pnpm-lock.yaml
23+
24+
.astro

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
.changeset

.prettierrc.cjs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/** @type {import('prettier').Config} */
2+
module.exports = {
3+
printWidth: 120,
4+
semi: true,
5+
singleQuote: true,
6+
tabWidth: 2,
7+
trailingComma: 'es5',
8+
useTabs: false,
9+
10+
plugins: [require.resolve('prettier-plugin-astro')],
11+
12+
overrides: [{ files: '*.astro', options: { parser: 'astro' } }],
13+
};

0 commit comments

Comments
 (0)