This folder contains a Jekyll based website which hosts the Coaty JS OPC UA API documentation on GitHub Pages at https://coatyio.github.io/connector.opc-ua.js/.
API Documentation content is hosted in the api
subfolder. It is generated
automatically whenever a release is created.
GitHub Pages has been configured to host the static website content from the
/docs
folder on the master branch. This means that each time, changes to docs
subfolders are pushed on the master branch, GitHub Pages automatically
regenerates the documentation website.
If you'd like to preview the website locally (for example, in the process of proposing a change):
- Install Ruby on your local machine (Jekyll is implemented in Ruby).
- Clone down the website's repository (
git clone https://github.com/coatyio/connector.opc-ua.js.git
). - cd into the website's directory (
/docs
). - Run
bundle install
to install dependencies (Jekyll, etc.). Note that if you are located behind a company proxy, set the environment variableHTTP_PROXY
to this proxy before invoking thebundle
commands. - Run
bundle exec jekyll serve
to start the preview server and point your browser tolocalhost:4000/connector.opc-ua.js/
.
To upgrade a gem dependency to a newer version (e.g. because of a security
alert), add new gem version to Gemfile
(e.g. gem "nokogiri", ">= 1.10.8"
)
and run bundle update
on the dependency (e.g. bundle update nokogiri
).
To update all gem dependencies, run bundle update
.
The documentation website uses the Primer theme, a Jekyll theme for GitHub Pages.