Skip to content
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

docs: use information from the previous release to create pages #4457

Merged
merged 19 commits into from
Mar 11, 2024

Conversation

ldez
Copy link
Member

@ldez ldez commented Mar 4, 2024

use 2 references files:

  • one for the reference of the released version (.golangci.reference.yml)
  • one for the next release (.golangci.next.reference.yml)

I restored .golangci.reference.yml from v1.56.2 tag.

.golangci.next.reference.yml contains the new elements related to the next release.

I also added a workflow to update automatically .golangci.reference.yml with .golangci.next.reference.yml after a release.
The update will be done automatically in the same generated PR that updates the GitHub Action assets.


The target expand_website_templates has been renamed to website_expand_templates.
Previously, the target expand_website_templates was using calls to the Manager and output from help commands.
Now the target website_expand_templates uses the files generated from another target website_dump_info.

website_dump_info uses calls to the Manager and output from help commands to create JSON files.

The update will be done automatically in the same generated PR that updates the GitHub Action assets.


The file .golangci.reference.yml is used to generate the documentation (configuration and linters pages).
Then the documentation about new options will not be published before a release.

If we need to fix something in the current doc, we should update the file .golangci.reference.yml.
If we need to add new options or linters, we should update the file .golangci.next.reference.yml.

If there are fixes to linters information, the generated file assets/linters-info.json should also be updated by hand.

Related to #4450
Related to #4255

@ldez ldez added enhancement New feature or improvement area: docs area: config Related to .golangci.yml and/or cli options labels Mar 4, 2024
@ldez ldez added this to the next milestone Mar 4, 2024
@ldez ldez requested a review from bombsimon March 4, 2024 23:41
@ldez ldez marked this pull request as ready for review March 4, 2024 23:49
@ldez ldez changed the title docs: use 2 references files docs: use 2 references files (current and next) Mar 4, 2024
@ldez ldez changed the title docs: use 2 references files (current and next) docs: use information from the previous release to create pages Mar 5, 2024
.github/workflows/post-release.yml Outdated Show resolved Hide resolved
scripts/website/dump_info/main.go Outdated Show resolved Hide resolved
scripts/website/expand_templates/exclusions.go Outdated Show resolved Hide resolved
scripts/website/expand_templates/linters.go Outdated Show resolved Hide resolved
scripts/website/dump_info/main.go Outdated Show resolved Hide resolved
scripts/website/shared/shared.go Outdated Show resolved Hide resolved
@ldez ldez force-pushed the fix/early-documentaion branch 2 times, most recently from 0a4585f to ff46b7d Compare March 5, 2024 15:44
@ldez ldez requested a review from Antonboom March 6, 2024 18:40
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.

I hope I didn't miss anything but this seems to simply be a split of the old code in a single main.go file to several files and the big diff (additions) is due to the copy of the reference and the new JSON files?

If so, feel free to ignore my comments about any code, this LGTM. Nice with a file that targets the latest release separately!

.github/workflows/post-release.yml Outdated Show resolved Hide resolved
scripts/website/dump_info/main.go Show resolved Hide resolved
scripts/website/expand_templates/exclusions.go Outdated Show resolved Hide resolved
@ldez
Copy link
Member Author

ldez commented Mar 6, 2024

the big diff (additions) is due to the copy of the reference and the new JSON files?

yes exactly

@ldez ldez force-pushed the fix/early-documentaion branch 3 times, most recently from 2dc2134 to 4189280 Compare March 11, 2024 17:47
@ldez ldez merged commit 85e1dee into golangci:master Mar 11, 2024
12 checks passed
@ldez ldez deleted the fix/early-documentaion branch March 11, 2024 19:24
@ldez ldez mentioned this pull request Mar 11, 2024
Copy link
Contributor

@Antonboom Antonboom left a comment

Choose a reason for hiding this comment

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

a lot of code 💥
thank you for your job!

Makefile Show resolved Hide resolved
scripts/website/expand_templates/linters.go Show resolved Hide resolved
scripts/website/expand_templates/linters.go Show resolved Hide resolved
scripts/website/expand_templates/main.go Show resolved Hide resolved
scripts/website/expand_templates/main.go Show resolved Hide resolved
scripts/website/expand_templates/main.go Show resolved Hide resolved
scripts/website/expand_templates/main.go Show resolved Hide resolved
scripts/website/expand_templates/linters.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: config Related to .golangci.yml and/or cli options area: docs enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants