Requirements:
Steps:
- Clone this repository:
git clone [email protected]:upsun/devcenter.git && cd devcenter/dev
git submodule init
git submodule update
npm install
hugo serve
- Start Docker
git submodule init
git submodule update
docker-compose up --remove-orphans
Visit the site at http://localhost:1313.
Cleaning up:
docker-compose down
docker container prune
Before merging a PR, it's a good idea to run the following tests.
-
Checking internal links
./tests/check_links/test.sh
-
Lint markdown/prose
./tests/check_lint/test.sh
-
(Scheduled) link checker
./tests/linkchecker/test.sh https://devcenter.upsun.com/
-
Testing for vulnerabilities
./tests/check_deps/test.sh
-
Upgrading dependencies
./tests/check_deps/upgrade.sh