Skip to content

Commit e0c527c

Browse files
authored
docs: new website (#5965)
1 parent ef6ead8 commit e0c527c

File tree

143 files changed

+4022
-46489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+4022
-46489
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
See [contributing quick start](https://golangci-lint.run/contributing/quick-start/) on our website.
1+
See [contributing quick start](https://golangci-lint.run/docs/contributing/) on our website.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ body:
1111
required: true
1212
- label: Yes, I've searched similar [issues on GitHub](https://github.com/golangci/golangci-lint/issues) and didn't find any.
1313
required: true
14-
- label: Yes, I've read the `typecheck` section of the [FAQ](https://golangci-lint.run/welcome/faq/#why-do-you-have-typecheck-errors).
14+
- label: Yes, I've read the `typecheck` section of the [FAQ](https://golangci-lint.run/docs/welcome/faq/#why-do-you-have-typecheck-errors).
1515
required: true
16-
- label: Yes, I've tried with the standalone [linter](https://golangci-lint.run/usage/linters/) if available (e.g., gocritic, go vet, etc.).
16+
- label: Yes, I've tried with the standalone [linter](https://golangci-lint.run/docs/linters/) if available (e.g., gocritic, go vet, etc.).
1717
required: true
1818
- label: I agree to follow this project's [Code of Conduct](https://github.com/golangci/golangci-lint?tab=coc-ov-file)
1919
required: true

.github/boring-cyborg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ firstPRWelcomeComment: Hey, thank you for opening your first Pull Request !
33
# Comment to be posted to on first time issues
44
firstIssueWelcomeComment: >
55
Hey, thank you for opening your first Issue ! 🙂
6-
If you would like to contribute we have a [guide for contributors](https://golangci-lint.run/contributing/quick-start/).
6+
If you would like to contribute we have a [guide for contributors](https://golangci-lint.run/docs/contributing/).

.github/new-linter-checklist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In order for a pull request adding a linter to be reviewed, the linter and the P
1313
- [ ] It must have a valid license (AGPL is not allowed), and the file must contain the required information by the license, ex: author, year, etc.
1414
- [ ] It must use Go version <= 1.22.0
1515
- [ ] The linter repository must have a CI and tests.
16-
- [ ] It must use [`go/analysis`](https://golangci-lint.run/contributing/new-linters/).
16+
- [ ] It must use [`go/analysis`](https://golangci-lint.run/docs/contributing/new-linters/).
1717
- [ ] It must have a valid tag, ex: `v1.0.0`, `v0.1.0`.
1818
- [ ] It must not contain `init()`.
1919
- [ ] It must not contain `panic()`.

.github/peril/rules/invite-collaborator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Hey, @${username} — we just merged your PR to \`golangci-lint\`! 🔥🚀
77
This will add you to our team of maintainers. Accept the invite by visiting [this link](https://github.com/orgs/golangci/invitation).
88
99
By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.
10-
More information about contributing is [here](https://golangci-lint.run/contributing/quick-start/).
10+
More information about contributing is [here](https://golangci-lint.run/docs/contributing/).
1111
1212
Thanks again!
1313
`;

.github/workflows/deploy-documentation.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,31 @@ jobs:
1616
# - 1.18beta1 -> 1.18.0-beta.1
1717
# - 1.18rc1 -> 1.18.0-rc.1
1818
GO_VERSION: '1.24'
19-
NODE_VERSION: '20.x'
19+
HUGO_VERSION: 0.148.1
2020
CGO_ENABLED: 0
2121
steps:
2222
- uses: actions/checkout@v4
2323
- uses: actions/setup-go@v5
2424
with:
2525
go-version: ${{ env.GO_VERSION }}
26-
- name: Use Node.js ${{ env.NODE_VERSION }}
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: ${{ env.NODE_VERSION }}
30-
cache: npm
31-
cache-dependency-path: docs/package-lock.json
3226

3327
- run: go mod download
3428

35-
- run: npm install --legacy-peer-deps
36-
working-directory: ./docs
29+
- name: Setup Hugo
30+
run: |
31+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
32+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
3733
3834
- name: Build Documentation
35+
env:
36+
# For maximum backward compatibility with Hugo modules
37+
HUGO_ENVIRONMENT: production
38+
HUGO_ENV: production
3939
working-directory: ./docs
40-
run: npm run build
40+
run: |
41+
hugo \
42+
--gc --minify \
43+
--baseURL "https://golangci-lint.run/"
4144
4245
- name: Deploy to GitHub Pages
4346
uses: peaceiris/actions-gh-pages@v4

.github/workflows/pr-documentation.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,29 @@ jobs:
1414
# - 1.18beta1 -> 1.18.0-beta.1
1515
# - 1.18rc1 -> 1.18.0-rc.1
1616
GO_VERSION: '1.24'
17-
NODE_VERSION: '20.x'
17+
HUGO_VERSION: 0.148.1
1818
CGO_ENABLED: 0
1919

2020
steps:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-go@v5
2323
with:
2424
go-version: ${{ env.GO_VERSION }}
25-
- name: Use Node.js ${{ env.NODE_VERSION }}
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: ${{ env.NODE_VERSION }}
29-
cache: npm
30-
cache-dependency-path: docs/package-lock.json
3125

3226
- run: go mod download
3327

34-
- run: npm install --legacy-peer-deps
35-
working-directory: ./docs
28+
- name: Setup Hugo
29+
run: |
30+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
31+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
3632
3733
- name: Build Documentation
38-
run: npm run build
34+
env:
35+
# For maximum backward compatibility with Hugo modules
36+
HUGO_ENVIRONMENT: production
37+
HUGO_ENV: production
3938
working-directory: ./docs
39+
run: |
40+
hugo \
41+
--gc --minify \
42+
--baseURL "https://golangci-lint.run/"

.golangci.next.reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version: "2"
1111
linters:
1212
# Default set of linters.
1313
# The value can be:
14-
# - `standard`: https://golangci-lint.run/usage/linters/#enabled-by-default
14+
# - `standard`: https://golangci-lint.run/docs/linters/#enabled-by-default
1515
# - `all`: enables all linters by default.
1616
# - `none`: disables all linters by default.
1717
# - `fast`: enables only linters considered as "fast" (`golangci-lint help linters --json | jq '[ .[] | select(.fast==true) ] | map(.name)'`).

.golangci.reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version: "2"
1111
linters:
1212
# Default set of linters.
1313
# The value can be:
14-
# - `standard`: https://golangci-lint.run/usage/linters/#enabled-by-default
14+
# - `standard`: https://golangci-lint.run/docs/linters/#enabled-by-default
1515
# - `all`: enables all linters by default.
1616
# - `none`: disables all linters by default.
1717
# - `fast`: enables only linters considered as "fast" (`golangci-lint help linters --json | jq '[ .[] | select(.fast==true) ] | map(.name)'`).

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ release:
8181
header: |
8282
`golangci-lint` is a free and open-source project built by volunteers.
8383
84-
If you value it, consider supporting us, the [maintainers](https://opencollective.com/golangci-lint) and [linter authors](https://golangci-lint.run/product/thanks/).
84+
If you value it, consider supporting us, the [maintainers](https://donate.golangci.org) and [linter authors](https://golangci-lint.run/docs/product/thanks/).
8585
8686
We appreciate it! :heart:
8787
88-
For key updates, see the [changelog](https://golangci-lint.run/product/changelog/#{{ .Major }}{{ .Minor }}{{ .Patch }}).
88+
For key updates, see the [changelog](https://golangci-lint.run/docs/product/changelog/#{{ .Major }}{{ .Minor }}{{ .Patch }}).
8989
9090
source:
9191
enabled: true

0 commit comments

Comments
 (0)