This site is based off of the Sendit Hugo theme and powers chipsalliance.org.
This theme was built with Hugo version v0.108.0+extended, but should support newer versions as well.
Start site: hugo server. The site will be at: http://localhost:1313/
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/tacIn the top level directory of this project. To update the module simply pull the latest code of the TAC repository.
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.mjsfetches the active CHIPS members from LFX and writesdata/lfx_members.json. Logos that come from LFX are saved tostatic/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 theautomation/sync-membersbranch. 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 setname,url,logo(a file instatic/images/members/, e.g."amd.svg") or"hide": true.manuallists organizations shown on the page that aren't LFX members, each withname,level,urlandlogo.
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/.
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):
- 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.
- In this repo's settings, add the app's Client ID as the Actions variable
APP_CLIENT_IDand a private key as the Actions secretAPP_PRIVATE_KEY. - Run the workflow once from the Actions tab to check it.