Skip to content

Commit af156ae

Browse files
authored
dev: update to Hextra v0.10.0 (#6007)
1 parent bd42c92 commit af156ae

22 files changed

+89
-169
lines changed

docs/assets/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}
66

77
/* Allow card subtitle with more than 3 lines */
8-
.hx-line-clamp-3.hextra-card-subtitle {
8+
.hx\:line-clamp-3.hextra-card-subtitle {
99
-webkit-line-clamp: 30;
1010
}
1111

docs/content/_index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ params:
77

88
{{< hextra/hero-container image="images/golangci-lint-logo-anim.gif" imageWidth="300" imageHeight="300" imageTitle="golangci-lint" >}}
99

10-
<div class="hx-mt-6 hx-mb-6">
10+
<div class="hx:mt-6 hx:mb-6">
1111
{{< hextra/hero-headline >}}
1212
Golangci-lint is a fast linters runner for Go
1313
{{< /hextra/hero-headline >}}
1414
</div>
1515

16-
<div class="hx-mb-12">
16+
<div class="hx:mb-12">
1717
{{< hextra/hero-subtitle >}}
18-
It runs linters in parallel, uses caching, supports YAML configuration,&nbsp;<br class="sm:hx-block hx-hidden" />integrates with all major IDEs, and includes over a hundred linters.
18+
It runs linters in parallel, uses caching, supports YAML configuration,&nbsp;<br class="hx:sm:block hx:hidden" />integrates with all major IDEs, and includes over a hundred linters.
1919
{{< /hextra/hero-subtitle >}}
2020
</div>
2121

22-
<div class="hx-mb-6">
22+
<div class="hx:mb-6">
2323
{{< hextra/hero-button text="Get Started" link="docs" >}}
2424
</div>
2525

2626
{{< /hextra/hero-container >}}
2727

28-
<div class="hx-mt-6"></div>
28+
<div class="hx:mt-6"></div>
2929

3030
{{< hextra/feature-grid cols=3 >}}
3131
{{< hextra/feature-card

docs/content/docs/_index.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ Golangci-lint is a free and open-source project built by volunteers.
3232

3333
If you value it, consider supporting us, we appreciate it!
3434

35-
<div class="hx-mt-6 hx-mb-6">
36-
{{< hextra/hero-button text="Donate ❤️" link="/docs/donate" >}}
37-
</div>
35+
{{< button text="Donate ❤️" link="/docs/donate" >}}
3836

3937
## Contributors
4038

@@ -44,15 +42,4 @@ This project exists thanks to all the people who contribute. [How to contribute]
4442

4543
## Stargazers over time
4644

47-
<a href="https://starchart.cc/golangci/golangci-lint">
48-
<img
49-
title="Stargazers over time"
50-
src="https://starchart.cc/golangci/golangci-lint.svg"
51-
class="hx-block dark:hx-hidden"
52-
/>
53-
<img
54-
title="Stargazers over time"
55-
src="https://starchart.cc/golangci/golangci-lint.svg?variant=dark"
56-
class="hx-hidden dark:hx-block"
57-
/>
58-
</a>
45+
{{< starcharts repo="golangci/golangci-lint" >}}

docs/content/docs/product/changelog.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint)
1212

1313
If you value it, consider supporting us, we appreciate it!
1414

15-
<div class="hx-mt-6 hx-mb-6">
16-
{{< hextra/hero-button text="Donate ❤️" link="/docs/donate" >}}
17-
</div>
15+
{{< button text="Donate ❤️" link="/docs/donate" >}}
1816

1917
{{% embed file=".tmp/raw_changelog.tmp" %}}

docs/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/golangci/docs
22

33
go 1.23.0
44

5-
require github.com/imfing/hextra v0.9.7 // indirect
5+
require github.com/imfing/hextra v0.10.1-0.20250815010958-2033d50005ae // indirect

docs/go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/hugo.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ params:
9595
enable: true
9696
displayCopyright: false
9797
displayPoweredBy: true
98-
width: normal
98+
width: wide
9999
links:
100100
- title: Bluesky
101101
url: "https://bsky.app/profile/golangci-lint.run"
@@ -158,3 +158,5 @@ params:
158158
page:
159159
# full (100%), wide (90rem), normal (80rem)
160160
width: full
161+
tabs:
162+
sync: false

docs/layouts/404.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{{ define "main" }}
2-
<div class='hx-mx-auto hx-flex {{ partial "utils/page-width" . }}'>
2+
<div class='hx:mx-auto hx:flex hextra-max-page-width'>
33
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
44
{{ partial "toc.html" . }}
5-
<article class="hx-w-full hx-break-words hx-flex hx-min-h-[calc(100vh-var(--navbar-height))] hx-min-w-0 hx-justify-center hx-pb-8 hx-pr-[calc(env(safe-area-inset-right)-1.5rem)]">
5+
<article class="hx:w-full hx:break-words hx:flex hx:min-h-[calc(100vh-var(--navbar-height))] hx:min-w-0 hx:justify-center hx:pb-8 hx:pr-[calc(env(safe-area-inset-right)-1.5rem)]">
66
<main
7-
class="hx-w-full hx-min-w-0 hx-max-w-6xl hx-flex hx-flex-col hx-items-center hx-justify-center">
8-
<div class="hx-flex hx-flex-col hx-items-center hx-justify-center">
7+
class="hx:w-full hx:min-w-0 hx:max-w-6xl hx:flex hx:flex-col hx:items-center hx:justify-center">
8+
<div class="hx:flex hx:flex-col hx:items-center hx:justify-center">
99
<a href="/" ><img src="/images/logo-circle.svg" alt="logo" width="200" height="200"></a>
1010
<h1 id="error-heading"
11-
class="not-prose hx-text-4xl font-bold leading-none tracking-tighter md:text-5xl py-2 bg-clip-text text-transparent bg-gradient-to-r from-gray-900 to-gray-600 dark:from-gray-100 dark:to-gray-400">
11+
class="not-prose hx:text-4xl font-bold leading-none tracking-tighter md:text-5xl py-2 bg-clip-text text-transparent bg-gradient-to-r from-gray-900 to-gray-600 dark:from-gray-100 dark:to-gray-400">
1212
404
1313
</h1>
14-
<p class="hx-mb-6">
14+
<p class="hx:mb-6">
1515
The page could not be found.
1616
</p>
17-
<a href="/" class="hx-font-medium hx-px-6 hx-py-3 hx-text-center inline-block">
17+
<a href="/" class="hx:font-medium hx:px-6 hx:py-3 hx:text-center inline-block">
1818
Go to the home page
1919
</a>
2020
</div>

docs/layouts/_partials/clickable-badge.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- /* Modified version of https://github.com/imfing/hextra/blob/v0.9.7/layouts/partials/shortcodes/badge.html */ -}}
1+
{{- /* Modified version of https://github.com/imfing/hextra/blob/v0.10.0/layouts/_partials/shortcodes/badge.html */ -}}
22
{{- /*
33
Creates a badge with the given id and class.
44

@@ -18,20 +18,17 @@
1818
{{- $border := .border | default false -}}
1919
{{- $icon := .icon | default "" -}}
2020

21-
{{- $defaultClass := "hx-text-gray-600 hx-bg-gray-100 dark:hx-bg-neutral-800 dark:hx-text-neutral-200 hx-border-gray-200 dark:hx-border-neutral-700" -}}
21+
{{- $defaultClass := "hx:text-gray-600 hx:bg-gray-100 hx:dark:bg-neutral-800 hx:dark:text-neutral-200 hx:border-gray-200 hx:dark:border-neutral-700" -}}
2222

2323
{{- $styleClass := newScratch -}}
24-
{{- $styleClass.Set "info" "hx-border-blue-200 hx-bg-blue-100 hx-text-blue-900 dark:hx-border-blue-200/30 dark:hx-bg-blue-900/30 dark:hx-text-blue-200" -}}
25-
{{- $styleClass.Set "warning" "hx-border-yellow-100 hx-bg-yellow-50 hx-text-yellow-900 dark:hx-border-yellow-200/30 dark:hx-bg-yellow-700/30 dark:hx-text-yellow-200" -}}
26-
{{- $styleClass.Set "error" "hx-border-red-200 hx-bg-red-100 hx-text-red-900 dark:hx-border-red-200/30 dark:hx-bg-red-900/30 dark:hx-text-red-200" -}}
27-
{{- $styleClass.Set "green" "hx-border-green-200 hx-bg-green-100 hx-text-green-900 dark:hx-border-green-200/30 dark:hx-bg-green-900/30 dark:hx-text-green-200" -}}
28-
{{- $styleClass.Set "indigo" "hx-border-indigo-200 hx-bg-indigo-100 hx-text-indigo-900 dark:hx-border-indigo-200/30 dark:hx-bg-indigo-900/30 dark:hx-text-indigo-200" -}}
29-
{{- $styleClass.Set "amber" "hx-border-amber-200 hx-bg-amber-100 hx-text-amber-900 dark:hx-border-amber-200/30 dark:hx-bg-amber-900/30 dark:hx-text-amber-200" -}}
24+
{{- $styleClass.Set "info" "hx:border-blue-200 hx:bg-blue-100 hx:text-blue-900 hx:dark:border-blue-200/30 hx:dark:bg-blue-900/30 hx:dark:text-blue-200" -}}
25+
{{- $styleClass.Set "warning" "hx:border-yellow-100 hx:bg-yellow-50 hx:text-yellow-900 hx:dark:border-yellow-200/30 hx:dark:bg-yellow-700/30 hx:dark:text-yellow-200" -}}
26+
{{- $styleClass.Set "error" "hx:border-red-200 hx:bg-red-100 hx:text-red-900 hx:dark:border-red-200/30 hx:dark:bg-red-900/30 hx:dark:text-red-200" -}}
3027

31-
{{- $borderClass := cond (eq $border true) "hx-border" "" -}}
28+
{{- $borderClass := cond (eq $border true) "hx:border" "" -}}
3229
{{- $badgeClass := or ($styleClass.Get $type) $defaultClass -}}
33-
<div class="hextra-badge hx-mt-2 hx-mx-1">
34-
<div id="{{ $id }}" class="hx-inline-flex hx-gap-1 hx-items-center hx-rounded-full hx-px-2.5 hx-leading-6 hx-text-[.65rem] hx-cursor-pointer {{ $borderClass }} {{ $badgeClass }} {{ $class }}">
30+
<div class="hextra-badge hx:mt-2 hx:mx-1">
31+
<div id="{{ $id }}" class="hx:inline-flex hx:gap-1 hx:items-center hx:rounded-full hx:px-2.5 hx:leading-6 hx:text-[.65rem] hx:cursor-pointer {{ $borderClass }} {{ $badgeClass }} {{ $class }}">
3532
{{- with $icon -}}{{- partial "utils/icon" (dict "name" . "attributes" "height=12") -}}{{- end -}}
3633
{{- $content -}}
3734
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{{/* Modified version of https://github.com/imfing/hextra/blob/v0.9.7/layouts/partials/shortcodes/cards.html */}}
1+
{{/* Modified version of https://github.com/imfing/hextra/blob/v0.10.0/layouts/_partials/shortcodes/cards.html */}}
22
{{- $cols := .cols | default 3 -}}
33
{{- $content := .content -}}
44
{{- $mainClass := .mainClass | default "hextra-cards" -}}
55

6-
<div class="{{$mainClass}} hx-mt-4 hx-gap-4 hx-grid not-prose" style="--hextra-cards-grid-cols: {{ $cols }};">
6+
<div class="{{$mainClass}} hx:mt-4 hx:gap-4 hx:grid not-prose" style="--hextra-cards-grid-cols: {{ $cols }};">
77
{{- $content -}}
88
</div>

0 commit comments

Comments
 (0)