Skip to content

About

JupiterBroadcasting.com, hugo-based and community-driven!

Topics

Resources

Contributing

Stars

105 stars

Watchers

9 watching

Forks

Repository files navigation

JupiterBroadcasting.com, et al. Websites

E2E Status Periodic Test Status Deploy Status

Repo here includes issue tracking for:

Contributing

Firstly - thank you for being here! We appreciate you.

Please read our Contributor Guidelines on how to contribute wisely for all to benefit.

Discussions via Matrix

Our base of operations for group discussions: Jupiter Web Site on Matrix


Built with Hugo and deployed with Github Actions

Demo: https://jupiterbroadcasting.com - currently the production site!

Development Environment Setup

The site is deployed to production as a container and therefore we recommend development is done using docker. A convenient command in the makefile is provided to help you get started. If you're new to docker start here.

To build and run the site run

make dev

This will build the site (all 28000+ pages) and takes anywhere from 30s - 5 minutes depending on your hardware. This is expected due to the size of the site.

Search

Search is Pagefind, run against the built site (pagefind_extended --site) in both the production Dockerfile and make dev. In make dev the first start also builds the index, so /search/ works after about 2 to 5 minutes, and edits to content, data or themes re-index automatically (a few minutes after each change).

Picks (data/picks/*.yaml) and sponsors have no pages of their own to index, so content/search-index/_content.gotmpl (a content adapter) renders one index-only page per data/picks/*.yaml, and sponsors use their /sponsors/<name>/ page. The pick pages are removed from the production image after indexing; a new pick is indexed with no extra file.

Transcripts

Episode pages render a collapsed transcript when the episode's front matter has a transcripts list, which comes from the RSS podcast:transcript tags. The files are fetched at build time with resources.GetRemote; VTT is preferred over SRT, and HTML or plain-text transcripts are not parsed. The block links every transcript file the episode lists (VTT, SRT, HTML, text). A failed or empty fetch is a build warning, and the page shows those links instead of the text. Transcript text is indexed by Pagefind at a low weight, so title matches still rank first.

Builds need network access, since every build fetches the transcript files (about 170). make dev runs with docker run --rm, so each start loses Hugo's remote cache and re-fetches them all; hot reloads reuse the in-memory copy. A host that accepts the connection but never answers delays the build by about 110 seconds per affected file (Hugo's timeout setting has no effect on this), but the build still finishes with a warning.

Deployment

Deployment is done with Github Actions, see workflow file in .github/workflows/deploy-prod.yml At the moment it is only triggered when something in the main branch is changing, but it can also be set up to run at certain times. This would also enable scheduled publishing, since Hugo per default only builds pages which have set date in frontmatter to <= now.

When upgrading the hugo version these are the locations whicht it needs to be updated at:

  • Dockerfile
  • Dockerfile.dev
  • render.yaml (HUGO_VERSION, and DART_SASS_VERSION to match the Sass bundled in the Hugo image)

Currently we're at hugo version 0.169.0

Credits

Content Migration and Scraper

We moved the scraper to it's own repository here: https://github.com/JupiterBroadcasting/show-scraper Much love to https://github.com/kbondarev aka Kiro in Matrix <3!

About

JupiterBroadcasting.com, hugo-based and community-driven!

Topics

Resources

Contributing

Stars

105 stars

Watchers

9 watching

Forks

Packages

Used by

Contributors

Languages