This is using Github pages for public facing website
Public website lives here: https://openbankinguk.github.io/knowledge-base-pub/.
All specification documents are written in markdown and under the folder docs/
The markdown specification files are used as source to convert into the html and then put it somewhere public facing. We're using github pages to release documentation to public.
- node
- yarn
- vuepress (installed by yarn)
Content is a mix of markdown files and other assets like images. Vuepress documentation has details on how to use.
master
contains the source used to generate the live websitedevelop
contains work in progress before publishing, example a new version 3.1.9
To set up this project:
Clone the repo
git clone [email protected]:OpenBankingUK/knowledge-base-pub.git
Install all node dependencies:
yarn install --non-interactive
Run the following command and open your browser at http://:8080/knowledge-base-pub/
to see the generated website.
yarn docs:dev
Running the script build.sh
will generate all HTML in docs/.vuepress/dist/
folder.
./build.sh
Deployment is achieved using GitHub Actions, they generate and copy the content html/assets files into GitHub pages branch, making it live.
Check file .github/workflows/deploy.yml for details on CI/CD pipeline.
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: knowledge-base-pub-stg
- Change vuepress config file, property base to the name of the new repository ex:
base: '/knowledge-base-pub-stg/'
- Generate the content with
yarn docs:build
- Copy the generated content in
docs/.vuepress/dist
to the new repository on branchgh-pages
- Enable github pages on the new repository, and it should become visible the website
- Verify links on left navigation menu work
- Verify that images are not broken
- General website style looks normal and all aligned