This repo is for deploying the VuePress page using vercel. Every commitment to main branch will trigger the CD action and update the deployed site.
Follow this section to set up your development environment.
- git
- Download git from the official Git website
- Node
- Download node from Node download page (find the green button labeled "Windows Installer (.msi)")
- pnpm
- After installing Node, use
npm install -g pnpm@latest-10to install pnpm - Then use
pnpm config set registry https://registry.npmmirror.comto configure pnpm to use packages from a domestic mirror hosted by alibaba.
- After installing Node, use
- Run
git clone [email protected]:loctempt/engineering-math-vuepress.gitto pull the repository; - Then cd to the project directory using
cd engineering-math-vuepress; - Now run
pnpm ito install dependencies; - Finally, execute
pnpm run docs:devto run a dev server on your local machine. The server process will print one or more urls on your terminal. You can use them to access your website.
Vercel hosted sites are blocked by technical measures in our region. Therefore, we have to find alternative methods to let our users access the website without unnecessary effort.
To achieve this, we utilize CloudFlare's free CDN as a proxy to the vercel server.
We recomand you use Visual Studio Code as your editor. The following settings are based on Visual Studio Code.
- Git commit
- Install
redjue.git-commit-pluginplugin, which will enforce the Angular Team Commit Specification for you when you edit a commit message.
- Install
- Code format
- Install
Wscats.vueplugin and let it handle code formatting for you.
- Install
- Naming convention
- Use pascal case for filename and identifiers (e.g.,
FunctionOne.vue,const showButton;)
- Use pascal case for filename and identifiers (e.g.,
The main branch is protected, so you cannot push to it directly. All changes must go through code review via pull/merge requests.
-
Always create a feature or fix branch from the latest
main:git checkout main git pull origin main git checkout -b <your-meaningful-branch-name>
-
Name your branch clearly and descriptively, using one of the following prefixes:
feat/– for new features (e.g.,feat/user-authentication)fix/– for bug fixes (e.g.,fix/login-button-alignment)refactor/– for code improvements without behavior change (e.g.,refactor/api-client)docs/– for documentation updates (e.g.,docs/update-readme)chore/– for maintenance tasks (e.g.,chore/upgrade-dependencies)
🔹 Use kebab-case (lowercase with hyphens).
❌ Avoid generic names likepatch-1,update, ormy-work. -
Keep branches small and focused—one branch per logical change or issue.
- Open a pull request (PR) (GitHub) or merge request (MR) (GitLab) before merging.
- Target the
mainbranch. - Assign at least one reviewer.
- Ensure all CI checks pass (linting, tests, build).
- Squash and merge unless a detailed history is needed (team decision).
- Delete the branch after merging.
- Write clear, concise commit messages (e.g.,
fix: prevent null pointer in user store). - Run
npm run lintandnpm run formatbefore pushing. - Keep your branch up to date with
mainif the PR takes time (rebase or merge).
- Force-push to shared branches.
- Merge your own PR without approval (unless emergency + team agreement).
- Commit secrets, build artifacts, or unrelated changes.
- Add feature list
- Add project diagram