|
|
1 day ago | |
|---|---|---|
| .. | ||
| blog | 1 day ago | |
| contents | 1 day ago | |
| experimental | 1 day ago | |
| functions/grind75 | 2 years ago | |
| src | 1 day ago | |
| static | 9 months ago | |
| .gitignore | 2 years ago | |
| .npmrc | 2 years ago | |
| README.md | 1 day ago | |
| docusaurus.config.js | 1 day ago | |
| package.json | 1 day ago | |
| sidebars.js | 7 months ago | |
README.md
Website
This website is built using Docusaurus 2, a modern static website generator. It is part of the repository's Vite+ monorepo setup.
Installation
Vite+ manages installs through the repository's declared package manager. At the root of the repository, run vp install to install the monorepo dependencies.
$ vp install
Local Development
Also at the root of the repository, run:
$ vp run dev
This command starts a local development server and opens up a browser window. Most changes made to JavaScript and Markdown files will be reflected instantly without having to restart the server.
Build
From the repository root, run:
$ vp run --filter @tih/website build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
$ cd apps/website
$ GIT_USER=<Your GitHub username> USE_SSH=1 vp run deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.