cncf / tag-contributor-strategy

CNCF Technical Advisory Group on Contributor Strategy -- maintainer relations, building up contributors, governance, graduation, and more.
https://contribute.cncf.io/
Apache License 2.0
175 stars 113 forks source link

Website Hugo+Docsy revamp #402

Open aliok opened 1 year ago

aliok commented 1 year ago

I suggest we don't use Docsy as a Git submodule anymore but as a Hugo module.

Git submodules are complicated to maintain.

Docsy and Hugo recommends using Hugo modules, instead of Git submodules. See https://www.docsy.dev/docs/get-started/#installation-options

I've tried this with https://github.com/cncf/tag-contributor-strategy/issues/397, but that plan didn't work because switching to Hugo modules don't work without upgrading Docsy (and possibly Hugo too).

Plan:

UPDATE: I want to add some instructions here...

cjyabraham commented 1 year ago

Just a few comments:

For step 3, I suspect that if you upgrade Docsy there will be some significant render issues with the site due to changes in the underlying CSS, so just be prepared for that. I think I looked into this at one point but decided to stay on the current version as we didn't need any of the new features in the new version of Docsy.

I think Hugo modules and git submodules both have their pros, cons and idiosyncrasies. I'm not sure if one is really any better than the other but don't mind either way.

There's no doubt that the structure of this site build can be simplified somewhat so appreciate the work being done here overall if it leads to a more manageable codebase.

aliok commented 1 year ago

For step 3, I suspect that if you upgrade Docsy there will be some significant render issues with the site due to changes in the underlying CSS, so just be prepared for that. I think I looked into this at one point but decided to stay on the current version as we didn't need any of the new features in the new version of Docsy.

Yes, I made a quick trial and it is not easy. Current Docsy version is 3 years old though, so, we need to update at some point I think. I will still try this.

aliok commented 8 months ago

FYI,

I think there are tasks to do in this TAG which have higher priority and I have a limited bandwidth. I won't be able to go with this work.

Keeping it open for now.

iiamabby commented 4 months ago

I've migrated the site to use Hugo modules with the newest version of Docsy: github.com/google/docsy@v0.9.1 as expected there is significant styling changes with this version, is there a preferred updated tag / ref that's not far from the current version but still an update?

Below v0.7.0 has errors, presumably due to the recent update of Hugo, above 7 also has significant styling changes

ERROR render of "section" failed: "~/repos/tag-contributor-strategy/website/layouts/docs/baseof.html:32:7": 
execute of template failed: template: about/list.html:32:7: executing "about/list.html" at
<partial "scripts.html" .>: error calling partial: 
"/Users/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.6.0/layouts/partials/scripts.html:82:30": 
execute of template failed: template: partials/scripts.html:82:30: executing "partials/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat