Skip to content

Commit

Permalink
added more documentation (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatospob authored Apr 19, 2021
1 parent a3c511a commit 02a51fd
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ We're using github pages to release documentation to public.
- yarn
- vuepress (installed by yarn)

### Content

Content is a mix of markdown files and other assets like images. Found in folder `docs/`.
Vuepress documentation has details on how to use.

### Branches

- `master` contains the source used to generate the live website
- `develop` contains work in progress before publishing, example a new version 3.1.9

### Setup

To set up this project:
Expand Down Expand Up @@ -51,9 +61,26 @@ Running the script `build.sh` will generate all HTML in `docs/.vuepress/dist/` f
./build.sh
```

### Staging
There is no staging environment at the moment. If you really need to pre-publish follow these steps:

- Create a repository that will host the staging github pages ex: `site3`
- Change vuepress config file, property base to the name of the new repository ex: base: '/site3/'
- Generate the content with yarn docs:build
- Copy the generated content in docs/.vuepress/dist to the new repository on branch gh-pages
- Enable github pages on the new repository, and it should become visible the website

### Manual checks

- Verify links on left navigation menu work
- Verify that images are not broken
- General website style looks normal and all aligned

## Deploy

Deployment is achieved using github actions to copy the generated html files into github pages branch, making it live.
Deployment is done on a separate repository

Check file [.github/workflows/deploy.yml](.github/workflows/deploy.yml) for details on CI/CD pipeline.
- Generate the HTML with `./build.sh`
- Checkout branch `gh-pages` on repository `https://github.com/OpenBankingUK/read-write-api-site3`
- Copy the content of `docs/.vuepress/dist/` on this repository to `read-write-api-site3` repository branch `gh-pages`
- Push force, and it will be published under `https://openbankinguk.github.io/read-write-api-site3/`

0 comments on commit 02a51fd

Please sign in to comment.