📝 Docs: update contributing file

This commit is contained in:
Cell
2024-01-16 15:54:09 +08:00
parent aaebdfb02c
commit dd4f422dba
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -7,7 +7,7 @@ First, fork this repository by clicking the fork button.
Next, clone your forked repo.
```bash
git clone --recursive https://github.com/hugo-fixit/FixIt.git && cd FixIt
git clone https://github.com/hugo-fixit/FixIt.git && cd FixIt
```
Then, install the dev dependencies.
@@ -27,6 +27,12 @@ npm run server
npm run server:production
```
If you want to do docs-related theme changes, the simplest way is to have both `FixIt` and `fixit-docs` cloned as sibling directories, and then run:
```bash
npm run server:docs
```
Finally, create a new pull request at <https://github.com/hugo-fixit/FixIt/pulls> to submit your contribution 🎉
## Git standard for developers
+1
View File
@@ -22,6 +22,7 @@
"build": "hugo -v --source=demo --gc --minify",
"server": "hugo server --source=demo -D --disableFastRender --navigateToChanged --ignoreCache --bind 0.0.0.0",
"server:production": "npm run server -- -e production",
"server:docs": "hugo server --source=../fixit-docs -D --disableFastRender --navigateToChanged --ignoreCache --bind 0.0.0.0",
"version": "sed -i '' \"s/v$npm_package_version-RC/v$npm_package_version/g\" layouts/partials/init/index.html && git add .",
"postversion": "git push && git push --tags"
}