feat: Configure GitHub Pages deployment for Docusaurus website#68
feat: Configure GitHub Pages deployment for Docusaurus website#68
Conversation
- Removed astro.config.mjs (conflicts with Docusaurus) - Removed Astro page components from src/pages/ - Removed rss.xml.js that imports Astro dependencies - Verified Docusaurus build succeeds after cleanup These Astro files were causing build errors with Docusaurus. The site now builds successfully with pure Docusaurus setup. Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Nliver <34496563+Nliver@users.noreply.github.com>
|
/code 1. Slug FormatCorrect: → Slugs must be plain kebab-case strings without path prefixes or year segments. 2. Image Resources Migration
📤 Expected Output
|
✅ Task CompletedI've successfully completed all the requirements from your request. Summary of Changes1. Slug Format ✅
2. Image Resources ✅
3. Verification ✅
Files Modified21 blog post files in Next StepsThe changes have been committed and pushed to the
|
- Changed slug format from '/blog/2025/slug-name' to 'slug-name' - Updated 21 blog posts to use clean kebab-case slugs - Images already correctly placed in website/static/img/blog/ - Build and dev server verified successfully Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Nliver <34496563+Nliver@users.noreply.github.com>
|
/code Resolve the merge conflicts by keeping your commits and removing the old content. |
✅ Merge Conflicts ResolvedSuccessfully merged What Was Done1. Conflict Resolution Strategy
2. Files Affected
3. Verification
SummaryThe merge conflicts have been resolved by keeping your commits (slug standardization) and removing the old content from PR #57. The branch is now ready for the PR to be merged into |
- Kept slug format changes from this branch (kebab-case without /blog/2025/ prefix) - Removed old content and migration scripts from origin/blog - Resolved all merge conflicts by keeping our changes Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Nliver <34496563+Nliver@users.noreply.github.com>
Requested by @Nliver
This PR sets up automated GitHub Pages deployment for the Docusaurus website. It removes PR #57 commits as requested and provides a clean deployment configuration.
Changes
1. Clean Branch State
27a0af1(before PR feat: standardize blog post slugs and improve website structure #57 changes)92dce5c- feat: standardize blog post slugs to kebab-case format14f309f- feat: migrate 2025 articles to Docusaurus with English slugs2. Removed Conflicting Files
astro.config.mjs(conflicts with Docusaurus)src/pages/:blog/[slug].astroblog/index.astroblog/tag/[tag].astroindex.astrorss.xml.js(imports Astro dependencies)These files were causing build errors. The Docusaurus build now succeeds.
3. GitHub Actions Workflow
Note: Due to GitHub App permissions, the workflow file cannot be pushed via this PR. A repository maintainer with workflow permissions needs to manually create the file.
Please create
.github/workflows/deploy.ymlwith the following content:Repository Settings Required
After merging this PR, a repository administrator needs to:
Add the workflow file (see above)
Configure GitHub Pages:
Trigger deployment:
blogbranch, orSite URL
After deployment, the site will be available at:
Verification
What This PR Does NOT Include
This PR does not include:
The focus is purely on enabling GitHub Pages deployment infrastructure.