Skip to content

Commit 360f3ee

Browse files
committed
chore: update astro pages
1 parent f21fffb commit 360f3ee

Some content is hidden

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

68 files changed

+7999
-1492
lines changed

.github/workflows/deploy-page.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [main]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
with:
26+
path: apps/starlight # The root location of your Astro project inside the repository. (optional)
27+
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28+
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

.gitignore

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.DS_Store
2-
31
# Logs
42
logs
53
*.log
@@ -73,8 +71,10 @@ coverage
7371
out/
7472
build
7573

76-
# misc
74+
# macOS-specific files
7775
.DS_Store
76+
77+
# misc
7878
*.pem
7979

8080
# debug
@@ -83,11 +83,15 @@ yarn-debug.log*
8383
yarn-error.log*
8484
.pnpm-debug.log*
8585

86-
# local env files
86+
# environment variables
87+
.env
88+
.env.production
8789
.env.local
8890
.env.development.local
8991
.env.test.local
9092
.env.production.local
9193

9294
# turbo
9395
.turbo
96+
97+
.astro

.markdownlint-cli2.jsonc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"ignores": [
3+
".changeset/*.md",
4+
"**/CHANGELOG.md",
5+
"**/docs",
6+
"**/LICENSE",
7+
"flow-types.md",
8+
"github-page",
9+
"slides/*.slides.md"
10+
],
11+
"config": {
12+
"line-length": false,
13+
"hard-tab": false,
14+
"no-missing-space-atx": false,
15+
"no-duplicate-heading": false,
16+
"no-trailing-punctuation": false,
17+
"no-inline-html": false,
18+
"no-space-in-emphasis": false
19+
}
20+
}

.markdownlint.json

-8
This file was deleted.

.markdownlintignore

-6
This file was deleted.

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Expose Astro dependencies for `pnpm` users
2+
shamefully-hoist=true

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
dist
2+
node_modules
3+
.github
4+
.changeset
5+
16
*.json
27
*.md
38
*.mdx

.prettierrc.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ module.exports = {
77
// For ES5, trailing commas cannot be used in function parameters; it is counterintuitive
88
// to use them for arrays only
99
trailingComma: 'none',
10-
useTabs: true
10+
useTabs: true,
11+
plugins: [require.resolve('prettier-plugin-astro')],
12+
overrides: [{ files: '*.astro', options: { parser: 'astro' } }]
1113
}

0 commit comments

Comments
 (0)