Skip to content

Commit a5ddd42

Browse files
ohprettyhakCopilot
andauthored
v2 (#5)
* feat: add Next.js files * feat: add eslint and prettier configs * build: add contentlayer mdx build system * feat: integrate `vanilla-extract` and implement theme mode with app layout support (#4) * build: add vanilla-extract dependencies * feat: add site metadata and icons * feat: add theme mode and app layout component * chore: apply suggestions from code review * feat: add profile cards and post grid components to the home page (#6) * feat: add profile cards * Update src/app/page.tsx Co-authored-by: Copilot <[email protected]> * fix(contentlayer): resolve sync issue and load latest content * feat: add icon components * feat(contentlayer): support both relative paths and URLs for image handling * feat(mainpage): add time display to post grid * fix: move getSortedPosts above usage to prevent runtime error --------- Co-authored-by: Copilot <[email protected]> * feat(animation): add page transition animations (#7) * style(contentlayer): add custom styles and code highlighting for MDX content (#9) * feat: add h2, h3, h4, h5, h6, list, p tag styles * style(mdx): change li before color * build: add rehype and remark dependencies * Update src/components/ui/mdx-component/styles.css.ts Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]> * feat(posts): implement list page with pagination and configure `copy-webpack-plugin` for SSG build (#10) * feat: add posts page * feat(posts): add pagination and configure copy-webpack-plugin for SSG build * �ci(workflows): add `labeler` workflow for automatic PR labeling (#11) * ci(workflows): add labeler workflow * fix(ci): update labeler permissions * fix(ci): update labeler permissions * fix(ci): remove concurrency option * fix(ci): update labeler on options * fix(ci): update labeler on options * feat(ci): add checkout job to labeler * fix(ci): update labeler config and workflows * fix(ci): fix v2 option labeler config * fix(ci): change working timing * feat(ci): add concurrency option to labeler workflow * feat(ci): add target branch and remove checkout action * feat(post): structure post page with new components and client-side relative time (#12) * feat: add post page header * feat(post): add back button, footer and recommend components * docs: add `2025-04-20-deploy-with-actions` and fix back button component (#13) * docs: add mdx and fix back button * feat: add cover image props * fix(posts): sort posts before rendering * chore(labeler): add documentation label for content folder and sort rules alphabetically * ci(build): add GitHub Actions workflow for automated deployment (#14) * ci: add build workflow * fix(ci): fix deloy 403 error * chore(ci): change push branch * fix(theme): update theme configuration using next-themes * test(build): change deploy push branch * chore(config): test base path config * fix(config): change to empty string * feat(posts): add categories and tags pages for post navigation (#15) * feat: add categories and tags list pages * feat: add url slugify * feat: add categories and tags index pages * Update src/app/categories/[category]/p/[page]/page.tsx Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]> * fix(build): resolve async issue causing build failure on categories/p and tags/p pages * feat(post): add tag list component to header (#16) * feat: add tag list to post header component * chore: add route constants * ci(build): change deploy push branch * build: add husky and lint-staged (#17) --------- Co-authored-by: Copilot <[email protected]>
1 parent 57e18c0 commit a5ddd42

File tree

170 files changed

+8231
-20526
lines changed

Some content is hidden

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

170 files changed

+8231
-20526
lines changed

.editorconfig

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

.eslintrc.js

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

.github/labeler.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
contentlayer:
2+
- any:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- 'contentlayer.config.ts'
6+
- 'config/contentlayer/**'
7+
8+
dependencies:
9+
- any:
10+
- changed-files:
11+
- any-glob-to-any-file:
12+
- 'pnpm-lock.yaml'
13+
14+
documentation:
15+
- any:
16+
- changed-files:
17+
- any-glob-to-any-file:
18+
- 'content/**/*'
19+
20+
eslint:
21+
- any:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- 'eslint.*'
25+
26+
tsconfig:
27+
- any:
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- 'tsconfig.json'
31+
32+
v2:
33+
- any:
34+
- head-branch: [ '^wip/v2$' ]
35+
36+
workflows:
37+
- any:
38+
- changed-files:
39+
- any-glob-to-any-file:
40+
- '.github/workflows/**/*'

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 10
19+
20+
- name: Install dependencies
21+
run: pnpm install
22+
23+
- name: Build static site
24+
run: pnpm build
25+
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v4
28+
with:
29+
publish_dir: ./out
30+
publish_branch: deploy
31+
github_token: ${{ secrets.SEMANTIC_DEPLOY_TOKEN }}

.github/workflows/labeler.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Labeler
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
- wip/*
8+
- release/**
9+
types: [ opened, synchronize, reopened ]
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
labeler:
17+
permissions:
18+
contents: read
19+
pull-requests: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/labeler@v5
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
sync-labels: true

0 commit comments

Comments
 (0)