tinygo-org / tinygo-site

Web site for TinyGo project.
https://tinygo.org
57 stars 112 forks source link

Update to Docsy v0.10.0 #407

Closed aykevl closed 5 months ago

aykevl commented 5 months ago

This adds support for light/dark mode, which I've waited for for a while. (I wish we could just make it automatic without menu entry, but this is already better than nothing).

There are a few small visual changes, which I think are generally an improvement:

I did a quick browse through the website and couldn't find any breaking changes.

aykevl commented 5 months ago

And now it actually builds, after a few changes. It looks like it uses a rather old build environment, @deadprogram do you know anything about that? I had to pick a different Go version because by default it would use Go 1.12.

deadprogram commented 5 months ago

We need to update the netlify.toml file:

I think this is what we need to have in there:

[build.environment]
  HUGO_VERSION = "0.127.0"
  GO_VERSION = "1.21"
  NODE_VERSION = "v20.x"
aykevl commented 5 months ago

@deadprogram I mean the build image: https://docs.netlify.com/configure-builds/overview/#build-image-selection Apparently this can be configured from the web UI somewhere.

deadprogram commented 5 months ago

I think we are already using the latest image:

image

aykevl commented 5 months ago

Oh, okay. I think I saw Go 1.12 in there, which is kinda old, but 20.04 ships Go 1.13 so it's not that far off. Then I think there's nothing we need to update.

(That means this PR is ready for merge in my opinion).

deadprogram commented 5 months ago

OK, now merging. Thanks for the update @aykevl