How to Contribute

Last modified: 2026-03-19 05:27av bruker: erikhag1git (Erik Hagen) ID: 1e0d2050-f885-496d-8ab4-8bdc287697e8

This website is open to contributions from all partners in the SAMT-BU project. There are several ways to contribute – see the overview below. For most subject-matter experts and editors, the built-in browser editor is the recommended starting point.

MethodSuitable forRequires
Built-in editorSubject-matter experts and editorsGitHub account + write access
GitHub editingMinor changes, technical usersGitHub account + Markdown
Local setupStructural changes, developersHugo + Git installed

You edit content directly in the browser using a visual text editor – no knowledge of Markdown or Git required.

What You Need

  • A GitHub account (create one for free at github.com)
  • Write access to the correct repository – contact an administrator to obtain this the first time

Editing an Existing Page

  1. Go to the page you wish to edit
  2. Click the “Edit” menu in the top-right corner of the header
  3. Select “Edit this chapter”
  4. Log in with your GitHub account if you are not already logged in (pop-up window)
  5. Make your changes in the text field
  6. Click “Save”

Tip: Images can be pasted directly into the text field (Ctrl+V or right-click → Paste) – there is currently no dedicated image button in the toolbar.

The website updates automatically within approximately 1 minute. A status indicator at the bottom left of the screen shows that the update is in progress.

Creating a New Page

  1. Navigate to the page you want to place the new page next to (sibling) or beneath (sub-chapter)
  2. Click “Edit” and select:
    • “New chapter after this” – new page at the same level
    • “New sub-chapter” – new page one level down
  3. Fill in the title and any content in the dialog
  4. Click “Save”

Note: Work is ongoing to provide a better overview of active editing across users. The solution is fully usable as it stands today, but pages may take approximately 1 minute to update after saving, and it may not always be visible whether others are editing the same page at the same time.


Alternative: Editing Directly on GitHub

Suitable for individual changes and minor corrections without a local installation. Requires a GitHub account and familiarity with Markdown.

How to do it:

  1. Go to the page you wish to edit at samt-x.github.io/samt-bu-docs
  2. Click the “Edit on GitHub” link at the bottom of the page
  3. Make your changes in the Markdown field
  4. Scroll down to “Commit changes”
  5. Write a brief description of what you changed
  6. Select “Create a new branch and start a pull request” (recommended), or commit directly to main if you have the necessary permissions
  7. Click “Propose changes” – an editor will review and approve it

The page is published automatically within a minute of the change being approved.


Alternative: Local Setup (for Developers)

This option gives you a full local working environment in which you can preview all changes in the browser as you write. Recommended for structural changes, larger amounts of new content, or technical development.

What You Need

ToolVersionPurpose
GitLatest stableVersion control
Hugo Extended0.155.3 or laterSite generator
Go1.21 or laterRequired by Hugo Modules
Text editorVS Code recommended

Installation on Windows

winget install --id Git.Git
winget install --id Hugo.Hugo.Extended
winget install --id GoLang.Go
winget install --id Microsoft.VisualStudioCode

Restart the terminal afterwards so that the newly installed programmes are available in PATH.

Verify the installation:

git --version
hugo version
go version

Installation on macOS

brew install git hugo go

Installation on Linux (Ubuntu/Debian)

sudo apt install git golang
# Hugo Extended is obtained from GitHub Releases (the apt version is often too old):
wget https://github.com/gohugoio/hugo/releases/download/v0.155.3/hugo_extended_0.155.3_linux-amd64.deb
sudo dpkg -i hugo_extended_0.155.3_linux-amd64.deb

Clone the Repository

git clone --recurse-submodules https://github.com/SAMT-X/samt-bu-docs.git
cd samt-bu-docs
hugo mod download

--recurse-submodules ensures that the theme (hugo-theme-samt-bu) is downloaded at the same time. hugo mod download fetches content modules from the other repositories.

Start Local Preview

hugo server

Open http://localhost:1313/samt-bu-docs/ in the browser. The page updates automatically when you save a file.

File Structure – Where the Content Lives

content/
  om/                    ← "About" section
  behov/                 ← Needs (use cases)
  pilotering/            ← Pilots
  arkitektur/            ← Architecture
  loesning/              ← Solutions
  rammeverk/             ← Framework
  informasjonsmodeller/  ← Information Models
  innsikt/               ← Shared Insight
  teams/                 ← Teams (content module)
  utkast/                ← Drafts and inputs (content module)

Each chapter is a folder containing two files:

content/om/om-samt-bu/
  _index.nb.md    ← Norwegian content
  _index.en.md    ← English content

Writing Content

Content files are standard Markdown files with a small header at the top (frontmatter):

---
title: "Page title"
weight: 30
---

Your content begins here in standard Markdown.

## Heading

A paragraph with **bold text** and *italic text*.
  • title – page title displayed in the menu and at the top of the page
  • weight – sort order (lower number = higher in the menu)
  • draft: true – add this to hide the page from publication until it is ready

Saving and Publishing Changes

git add content/path/to/file/_index.en.md
git commit -m "Brief description of what you changed"
git push

GitHub Actions builds and publishes automatically after 1–2 minutes.

No write access to the repository? Create a pull request instead: git checkout -b my-contribution → make changes → git push origin my-contribution → open a PR on GitHub.

Useful Commands

CommandDescription
hugo serverStart local server with live reload
hugo server -DInclude pages marked with draft: true
hugoBuild to the public/ folder (check for errors)
git pullFetch the latest changes from GitHub
hugo mod get -uUpdate all content modules to the latest version