Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

opiproject/opiproject.org

Repository files navigation

Open Programmable Infrastructure Project Website

Linters github pages pages-build-deployment

Hugo code for OPI Project website.

Development

There are two ways to test this out:

  • Install hugo locally
  • Use a pre-built docker image with hugo

Install Hugo Locally

To work on the website, make sure you have hugo installed. You can do that by following the instructions here.

Once you have hugo installed, you can make changes to the website. To see them locally, run the following in the root directory of the website:

hugo server --disableFastRender

Docker Image With Hugo

This method requires you to use a Docker image with hugo pre-built and installed inside. This image works well for this purpose.

docker run --user=$(id -u):$(id -g) --rm -it   -v $(pwd):/src   -p 1313:1313   klakegg/hugo:0.107.0-ext-ubuntu   server --disableFastRender

Development Output

Once you have hugo running by either installing it locally or using a Docker image, this should give you something like the following as output:

➜  opiproject.org git:(dev) ✗ hugo server --disableFastRender
Start building sites …
hugo v0.101.0+extended darwin/amd64 BuildDate=unknown

                   | EN
-------------------+-----
  Pages            | 18
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 41
  Processed images |  0
  Aliases          |  1
  Sitemaps         |  1
  Cleaned          |  0

Built in 170 ms
Watching for changes in /Users/kmestery/git/OPI/opiproject.org/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /Users/kmestery/git/OPI/opiproject.org/config.toml, /Users/kmestery/git/OPI/opiproject.org/themes/ananke/config.yaml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

You can then browse to http://localhost:1313/ to see your local changes.

Releases

No releases published

Packages

No packages published

Languages