Skip to content

About

Resources

Code of conduct

Security policy

Stars

5 stars

Watchers

9 watching

Forks

Repository files navigation

CHIPS Alliance Website

This site is based off of the Sendit Hugo theme and powers chipsalliance.org.

Develop

This theme was built with Hugo version v0.108.0+extended, but should support newer versions as well.

Prerequisites

Install Hugo

Quickstart

Start site: hugo server. The site will be at: http://localhost:1313/

Update Modules

The Workgroups and Projects pages are created from files in the TAC repo and pulled in to the site via Hugo Modules. The build system assumes that the TAC repository is used as a local module. Prior building the website, the TAC repository has to be cloned into the themes/tac directory. To do so, run the following command:

git clone https://github.com/chipsalliance/tac themes/tac

In the top level directory of this project. To update the module simply pull the latest code of the TAC repository.

Members Page

The logos on /about/members/ and the homepage "Member Organizations" count come from LFX, using the same public API as the LF membership landscapes.

  • scripts/sync-members.mjs fetches the active CHIPS members from LFX and writes data/lfx_members.json. Logos that come from LFX are saved to static/images/members/lfx/.
  • The Sync members from LFX workflow (.github/workflows/sync-members.yml) runs this daily. When something changed, it opens or updates one pull request on the automation/sync-members branch. The PR lists who was added, removed or moved level, and gets a preview link like any other PR. Merge it to publish.
  • Members that chose not to be listed publicly in LFX don't appear in the API, so they are never shown.

To fix a member's name, website or logo, update it in LFX. For site-only tweaks, edit data/lfx_members_overrides.json:

  • overrides, keyed by LFX organization ID, can set name, url, logo (a file in static/images/members/, e.g. "amd.svg") or "hide": true.
  • manual lists organizations shown on the page that aren't LFX members, each with name, level, url and logo.

To run the sync locally (Node 20+): node scripts/sync-members.mjs. It refuses to write anything if LFX returns an error, no members, or fewer than half the current number.

data/board.yaml holds the Governing Board shown on /about/governance/: company name, level, board_rep and optional role. It is still edited by hand and is not synced from LFX. Board photos go in static/images/team/.

One-time setup for the workflow

The workflow needs a GitHub App so that its PRs trigger the build and preview (PRs opened with the default GITHUB_TOKEN don't run other workflows):

  1. Create a GitHub App (or reuse an org one) with repository permissions Contents: Read and write and Pull requests: Read and write, and install it on this repository.
  2. In this repo's settings, add the app's Client ID as the Actions variable APP_CLIENT_ID and a private key as the Actions secret APP_PRIVATE_KEY.
  3. Run the workflow once from the Actions tab to check it.

About

Resources

Code of conduct

Security policy

Stars

5 stars

Watchers

9 watching

Forks

Used by

Contributors

Languages