Skip to content

Commit

Permalink
Docs for build and deployment of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKs committed Sep 1, 2021
1 parent 68c6307 commit e3b6e37
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ $ yarn build

This command generates static content into the `build` directory and can be served using any static contents hosting service.

### Deployment
It's important that you build the documentation using `yarn build` **before pushing to `main`**. After building,
check that everything works, such as syntax highlighting etc.

```
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
```
If there are issues, please try
* to run `npm run clear` or `yarn clear`
* delete `package-lock.json` and re-.install packages


### Deployment

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.
GitHub actions takes care of deployment. Any changes to the `docs` folder on the `main` branch will trigger
the pipeline. You can see the documentation live at https://intility.github.io/fastapi-azure-auth/

0 comments on commit e3b6e37

Please sign in to comment.