Skip to content

Commit 1a43e13

Browse files
author
Patrick M
committed
feat: convert to astro
1 parent 39fb9af commit 1a43e13

File tree

194 files changed

+19353
-2029
lines changed

Some content is hidden

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

194 files changed

+19353
-2029
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore Astro files
2+
*.astro
3+
4+
# Ignore node_modules directory
5+
node_modules/
6+
7+
# Ignore build output
8+
dist/

.editorconfig

Lines changed: 0 additions & 14 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Description
2+
3+
<!-- A clear and concise description of what the pull request does. Include any relevant motivation and background. -->
4+
5+
## Types of changes
6+
7+
<!-- What types of changes does your code introduce to AstroPaper? Put an `x` in the boxes that apply -->
8+
9+
- [ ] Bug Fix (non-breaking change which fixes an issue)
10+
- [ ] New Feature (non-breaking change which adds functionality)
11+
- [ ] Documentation Update (if none of the other choices apply)
12+
- [ ] Others (any other types not listed above)
13+
14+
## Checklist
15+
16+
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. You can also fill these out after creating the PR. This is simply a reminder of what we are going to look for before merging your code. -->
17+
18+
- [ ] I have read the [Contributing Guide](https://github.com/satnaing/astro-paper/blob/main/.github/CONTRIBUTING.md)
19+
- [ ] I have added the necessary documentation (if appropriate)
20+
- [ ] Breaking Change (fix or feature that would cause existing functionality to not work as expected)
21+
22+
## Further comments
23+
24+
<!-- If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... -->
25+
26+
## Related Issue
27+
28+
<!-- If this PR is related to an existing issue, link to it here. -->
29+
30+
Closes: #<!-- Issue number, if applicable -->

.github/workflows/ci.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: "Build and Deploy"
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
paths-ignore:
9+
- .gitignore
10+
- README.md
11+
- LICENSE
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 3
27+
28+
strategy:
29+
matrix:
30+
node-version: [20]
31+
32+
steps:
33+
- name: "☁️ Checkout repository"
34+
uses: actions/checkout@v4
35+
36+
- name: "📦 Install pnpm"
37+
uses: pnpm/action-setup@v4
38+
with:
39+
version: 10.11.1
40+
41+
- name: Use Node.js ${{ matrix.node-version }}
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: ${{ matrix.node-version }}
45+
cache: "pnpm"
46+
47+
- name: "📦 Install dependencies"
48+
run: pnpm install
49+
50+
- name: "🔎 Lint code"
51+
run: pnpm run lint
52+
53+
- name: "📝 Checking code format"
54+
run: pnpm run format:check
55+
56+
- name: "🚀 Build the project"
57+
run: pnpm run build
58+
59+
- name: "Copy to base path"
60+
run: cp dist _site${{ steps.pages.outputs.base_path }}
61+
62+
- name: Upload site artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: "_site${{ steps.pages.outputs.base_path }}"
66+
67+
deploy:
68+
environment:
69+
name: github-pages
70+
url: ${{ steps.deployment.outputs.page_url }}
71+
runs-on: ubuntu-latest
72+
needs: build
73+
steps:
74+
- name: Deploy to GitHub Pages
75+
id: deployment
76+
uses: actions/deploy-pages@v4

.github/workflows/pages-deploy.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.gitignore

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
# hidden files
2-
.*
3-
!.git*
4-
!.editorconfig
5-
!.nojekyll
6-
!.travis.yml
7-
!.husky
8-
!.commitlintrc.json
9-
!.versionrc.json
10-
!.stylelintrc.json
11-
12-
# bundler cache
13-
_site
14-
vendor
15-
16-
# rubygem
17-
*.gem
18-
gemfile.lock
19-
20-
# npm dependencies
21-
node_modules
22-
package-lock.json
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/
25+
26+
# pagefind
27+
28+
public/pagefind

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.nojekyll

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)