This directory contains a Hugo web site published via Netlify to https://tag-app-delivery.cncf.io/.
When the main
branch of this repo is updated a fresh build and deploy of the
website is executed. Recent Netlify builds and deployments are listed at
https://app.netlify.com/sites/tag-app-delivery.
A preview site is generated for each PR too, with a link and other info on the PR build added as a comment to the related issue.
We feature 3 types of content on the site:
- Projects looking for contributions: These are strictly scoped in both time and content. People can contribute without the need for committing long-term.
- Blogposts: Updates about the TAG.
- Working Groups: Long-running interest groups, the scope of which might change. A working group can create multiple projects.
Here's how to create templates for each type of content.
cd website
hugo new content contribute/<project title>.md
cd website
AUTHOR=ll hugo new content blog/<post title>.md
cd website
hugo new wgs/<working group name>
To run the site from your local OS:
- Install Hugo Extended and npm
- Run
git clone [email protected]:cncf/tag-app-delivery.git && cd tag-app-delivery
- Initialize submodules with
git submodule update --init --recursive
- Change into the website directory:
cd website
- Install dependencies with
npm install
- Run the site using
hugo server -D
- Output from the previous command includes the address to browse to preview the site, by default http://localhost:1313/.
Alternatively, once you've cloned this repo you can directly invoke the included
startup script: ./.devcontainer/start-server.sh
You can create a special "development container", that includes all dependencies required to build and run the site. This reduces potential differences between local developer environments.
To run the site from a development container:
- Install DevPod
- Install a DevPod provider
such as docker, using
devpod provider add docker
. - Start the devcontainer (See options below)
- Open a terminal and execute
.devcontainer/start-server.sh
to start the Hugo server.
The startup script updates gitmodules for the theme and installs all necessary dependencies to run hugo.
- Output from the previous command includes the address to browse to preview the site, by default http://localhost:1313/.
You can open the devcontainer directly in the DevPod Gui byt pressing the below button:
Then follow above steps 4 and 5 to run the website
Or you can start the dev environment via CLI:
- Run
git clone [email protected]:cncf/tag-app-delivery.git && cd tag-app-delivery
- Start the workspace:
devpod up .
- Follow above steps 4 and 5 to run the website
Alternatively, create a workspace directly from the repo: devpod up github.com/cncf/tag-app-delivery
Once the workspace has been created on your machine you can open up it any time
with devpod up tag-app-delivery --ide openvscode