Skip to content

docs: new website #5965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Aug 9, 2025
Merged

docs: new website #5965

merged 21 commits into from
Aug 9, 2025

Conversation

ldez
Copy link
Member

@ldez ldez commented Aug 1, 2025

I tried a lot of Hugo themes, but most of them don't fit our needs.

I found hextra: the features and the style are "extra" 😸

There are some constraints for the search feature, so I split some pages.

I also improved the page contents and adapted the scripts.

I think I will replace the scripts in the future with Hugo partials or shortcodes.

Note: URLs are different from the previous site.

URLs

TLDR: adds the path prefix /docs

OLD NEW
https://golangci-lint.run/welcome/install/ https://golangci-lint.run/docs/welcome/install/
https://golangci-lint.run/welcome/quick-start/ https://golangci-lint.run/docs/welcome/quick-start/
https://golangci-lint.run/welcome/integrations/ https://golangci-lint.run/docs/welcome/integrations/
https://golangci-lint.run/welcome/faq/ https://golangci-lint.run/docs/welcome/faq/
https://golangci-lint.run/usage/configuration/ https://golangci-lint.run/docs/configuration/
https://golangci-lint.run/usage/linters/ https://golangci-lint.run/docs/linters/
https://golangci-lint.run/usage/linters/#xxx https://golangci-lint.run/docs/linters/configuration/#xxx
https://golangci-lint.run/usage/false-positives/ https://golangci-lint.run/docs/linters/false-positives/
https://golangci-lint.run/usage/formatters/ https://golangci-lint.run/docs/formatters/
https://golangci-lint.run/usage/formatters/#xxx https://golangci-lint.run/docs/formatters/configuration/#xxx
https://golangci-lint.run/product/thanks/ https://golangci-lint.run/docs/product/thanks/
https://golangci-lint.run/product/changelog/ https://golangci-lint.run/docs/product/changelog/
https://golangci-lint.run/product/migration-guide/ https://golangci-lint.run/docs/product/migration-guide/
https://golangci-lint.run/product/roadmap/ https://golangci-lint.run/docs/product/roadmap/
https://golangci-lint.run/contributing/quick-start/ https://golangci-lint.run/docs/contributing/
https://golangci-lint.run/contributing/workflow/ https://golangci-lint.run/docs/contributing/workflow/
https://golangci-lint.run/contributing/architecture/ https://golangci-lint.run/docs/contributing/architecture/
https://golangci-lint.run/contributing/new-linters/ https://golangci-lint.run/docs/contributing/new-linters/
https://golangci-lint.run/contributing/debug/ https://golangci-lint.run/docs/contributing/debug/
https://golangci-lint.run/contributing/faq/ https://golangci-lint.run/docs/contributing/faq/
https://golangci-lint.run/contributing/website/ https://golangci-lint.run/docs/contributing/website/
https://golangci-lint.run/plugins/module-plugins/ https://golangci-lint.run/docs/plugins/module-plugins/
https://golangci-lint.run/plugins/go-plugins/ https://golangci-lint.run/docs/plugins/go-plugins/
2025-08-03.mp4

Fixes #2288
Fixes #1144

Related to #4947
Related to #5633
Related to #5943
Related to #5725
Related to #3191

@ldez ldez added this to the v2-unreleased milestone Aug 1, 2025
@ldez ldez requested a review from bombsimon August 1, 2025 16:42
@ldez ldez added enhancement New feature or improvement area: docs labels Aug 1, 2025
@ldez ldez force-pushed the feat/new-documentation branch 5 times, most recently from 7ca3ddf to 1f7d472 Compare August 3, 2025 13:29
Copy link
Member

@alexandear alexandear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep the v1 version of the documentation? https://golangci.github.io/legacy-v1-doc/

@ldez ldez force-pushed the feat/new-documentation branch from 3c17f7c to f3c9603 Compare August 6, 2025 06:27
@ldez ldez force-pushed the feat/new-documentation branch from f3c9603 to d9842d4 Compare August 9, 2025 16:33
Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super good work with the new page, feels very nice and easy to work with and looks great! New search is awesome and some really good cross linking!

I didn't spend much time of the content since I see most of it is just moved. I mostly just ran the site locally and pressed every button and menu item to brows through it all!

I think my only real concern or question would be around the /docs path in the URL which doesn't make sense to me (it's all just docs) but not a big deal if it's not an easy fix.

@@ -11,9 +11,9 @@ body:
required: true
- label: Yes, I've searched similar [issues on GitHub](https://github.com/golangci/golangci-lint/issues) and didn't find any.
required: true
- label: Yes, I've read the `typecheck` section of the [FAQ](https://golangci-lint.run/welcome/faq/#why-do-you-have-typecheck-errors).
- label: Yes, I've read the `typecheck` section of the [FAQ](https://golangci-lint.run/docs/welcome/faq/#why-do-you-have-typecheck-errors).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know too much about Hugo but is this new /docs part of the path due to the folder being docs? Can it be removed? As far as I can tell the only page not under /docs is the landing page. If we could drop /docs which is basically the whole site content less links would be broken and URLs would be shorter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The /docs is related to the theme, but this is something positive because we also have /blog, so we will be able to publish tutorials, announcements, etc.

Copy link
Member Author

@ldez ldez Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, globally, all the themes have a landing page and /docs/.
I spent a lot of time looking for themes: it was a recurring task for 2 years.
I dug into GitHub and obscure websites, and good themes are extremely rare.

To define what I call a "good theme":

  • good looking
  • good internal design (maintainability and extensibility)
  • Uses go modules and not git submodules
  • No need for npm
  • Maintained

@ldez ldez merged commit e0c527c into golangci:main Aug 9, 2025
18 checks passed
@ldez ldez deleted the feat/new-documentation branch August 9, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm dependent vulnerabilities in .github/contributors/package-lock.json Add search bar to website
3 participants