Observations, Measurements and Samples (OMS) developer website
The theme used is a Node/Pug to Jekyll/Liquid conversion of the Agency one page HTML theme for Bootstrap by Start Bootstrap LLC.
The contributor understands that any contributions, if accepted by the OGC Membership, MAY be incorporated into OGC documents and that all copyright and intellectual property SHALL be vested to the OGC.
The website is automatically built and deployed by GitHub using Jekyll and the source files in the docs
directory of the main
branch. Pushing any committed changes to theses source files will trigger an automatic site build and deployment process and, within a few minutes, result in an updated version of the site.
It's a good idea to test the changes out before pushing them to the main branch in order not to break the site by accident. Docker and the Docker GitHub Pages container can be used to run a Jekyll configuration very similar to the one used by GitHub Pages locally on developers' computers.
Steps to follow:
- Install Docker Engine, ja git command line, if not already done.
- If making any bigger changes, or if you don't have push permission to the OMS Development Website GitHub repo, create your own fork of the repo. It's usually also a good idea to create a feature branch to your forked repo for the intended change.
- Clone the repo or your own fork to your local computer:
$ git clone https://github.com/<your-gh-account>/oms-developer-website.git
- Change to folder
oms-developer-website/docs
- Start Docker Engine if not already running
- Run Docker GitHub Pages container at port 4000:
$ docker run -it --rm -v "$PWD":/usr/src/app -p "4000:4000" starefossen/github-pages
- After a successful build the local development version of the site will become available at http://localhost:4000/ If you see an error message "docker: Cannot connect to the Docker daemon...", make sure your Docker Engine is running in the background.
- Open another terminal or use an editor with a graphical UI to make any necesary changes. Jekyll running in the Docker GitHub Pages container will notice the changes and rebuilt the site automatically (monitor the terminal running the container to see when the rebuilds are done). Make sure no syntax errors were made and the changes look as intended.
- Commit any changes (remember describe what you did in commit comments). Commit as soon as you get the smallest working change done (and while you still remember which files you changed and why).
- When you are finished, push the changes to your fork repo (or directly to the main repo if you are confident and have the necessary permissions)
- If working with a fork repo, create a Pull request from your feature branch to the main repo. Repo admins will check your change and either merge it or ask you to make some changes in order to fix possible problems.