Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 2.26 KB

CONTRIBUTING.md

File metadata and controls

40 lines (29 loc) · 2.26 KB

Contributing to Baksia

The Baksia site is generated from markdown using the Hugo static site generator. We use YAML as front matter.

Initial setup

  1. Download and install Git and clone the baksia repository to a local folder:
git clone https://github.com/digdir/baksia --recurse-submodules --remote-submodules
  1. We recommend downloading and using visual studio code with
  2. Download the latest Hugo (extended) for your platform, and place the executable in the baksia-folder.

Build / Edit / Test locally

  1. Open the baksia repo-folder in visual studio code
  2. Run ./hugo server --navigateToChanged. Now baksia is running locally at http://localhost:1313/
  3. Edit and save files in the content-folder to automatically get a new local build of the site refreshed in your browser, so you can test your changes locally.

Push your changes to GitHub

We recommend that you create a pull request when you want to share your changes with the rest of the world.

  1. Create a branch for your changes
  2. Create a pull request

Deploy

Whenever changes from your pull request are merged into the baksia main-branch, an automatic deploy is updating https://baksia.digdir.no

PS: If you don't have direct write access to the repo, you need to create a fork and submit a pull request from your fork.

Links