brigadecore / brigade

Event-driven scripting for Kubernetes
https://brigade.sh/
Apache License 2.0
2.41k stars 246 forks source link

Code highlighting fixes #1845

Closed krancour closed 2 years ago

krancour commented 2 years ago

I recently bumped the version of Hugo that we're using on Netlify to a much newer one and all doc preview deployments since have poor contrast in the code blocks.

Digging into this, the reason is that Hugo, at some point, changed the component they use internally for source code highlighting. This PR does two things:

  1. Explicitly select the code syntax highlighting style that most closely resembles what Hugo previously used (pyment).
  2. Updates "code fences" in all content because console is not a valid/supported language in the new syntax highlighter.

No other doc PRs can be merged until this one is or else we'll be deploying with the poor contrast issue.

netlify[bot] commented 2 years ago

✔️ Deploy Preview for brigade-docs ready!

🔨 Explore the source changes: 8d048bbed5ea9f03234f0416d6504ebb509457f6

🔍 Inspect the deploy log: https://app.netlify.com/sites/brigade-docs/deploys/6217d5f86ad8380008c358e3

😎 Browse the preview: https://deploy-preview-1845--brigade-docs.netlify.app/intro/quickstart