Skip to content

Commit 5eda101

Browse files
csviriCopilot
andauthored
docs: docsy and hugo update to latest version (#3169)
Signed-off-by: Attila Mészáros <a_meszaros@apple.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e6994f4 commit 5eda101

File tree

8 files changed

+56
-87
lines changed

8 files changed

+56
-87
lines changed

.github/workflows/hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
build:
3333
runs-on: ubuntu-latest
3434
env:
35-
HUGO_VERSION: 0.145.0
35+
HUGO_VERSION: 0.155.3
3636
steps:
3737
- name: Install Hugo CLI
3838
run: |

docs/assets/scss/_variables_project.scss

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,52 @@ Add styles or override variables from the theme here.
1919
2020
*/
2121

22-
//$primary: #fc9c62;;
2322
$primary: #da5504;
24-
$secondary: #fc9c62
25-
//$secondary: white;
23+
$secondary: #fc9c62;
24+
$info: #c0e0de;
25+
$light: rgb(13, 110, 253);
26+
$dark: #403f4c;
27+
$link-color: rgb(13, 110, 253);
28+
$link-hover-color: darken($link-color, 15%);
29+
30+
31+
// Override link colors only in document content
32+
.td-content {
33+
a {
34+
color: $link-color !important;
35+
36+
&:hover {
37+
color: $link-hover-color !important;
38+
}
39+
}
40+
}
41+
42+
// Navbar styling - this is the correct way for Docsy 0.14.2
43+
.td-navbar {
44+
background-color: $primary !important;
45+
border-color: $primary !important;
46+
.navbar-brand {
47+
color: #fff;
48+
49+
&:hover {
50+
color: #fff;
51+
}
52+
}
53+
.nav-link {
54+
color: rgba(255, 255, 255, 0.75) !important;
55+
56+
&:hover {
57+
color: rgba(255, 255, 255, 0.90) !important;
58+
}
59+
}
60+
}
61+
62+
// RSS button styling
63+
.td-rss-button {
64+
color: rgba(85, 85, 85, 0.9) !important;
65+
background-color: $info !important;
66+
border-color: $info !important;
67+
&:hover {
68+
color: darken(rgba(85, 85, 85, 0.9), 100%) !important;
69+
}
70+
}

docs/config.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
# THIS IS A TEST CONFIG ONLY!
18-
# FOR THE CONFIGURATION OF YOUR SITE USE hugo.yaml.
19-
#
20-
# As of Docsy 0.7.0, Hugo 0.110.0 or later must be used.
21-
#
22-
# The sole purpose of this config file is to detect Hugo-module builds that use
23-
# an older version of Hugo.
24-
#
25-
# DO NOT add any config parameters to this file. You can safely delete this file
26-
# if your project is using the required Hugo version.
27-
2817
module:
2918
hugoVersion:
3019
extended: true
31-
min: 0.110.0
20+
min: 0.139.0

docs/go.mod

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

33
go 1.12
44

5-
require github.com/google/docsy v0.11.0 // indirect
5+
require github.com/google/docsy v0.14.2 // indirect

docs/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
22
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
33
github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
4+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
45
github.com/google/docsy v0.9.1 h1:+jqges1YCd+yHeuZ1BUvD8V8mEGVtPxULg5j/vaJ984=
56
github.com/google/docsy v0.9.1/go.mod h1:saOqKEUOn07Bc0orM/JdIF3VkOanHta9LU5Y53bwN2U=
67
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
78
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
89
github.com/google/docsy v0.11.0 h1:QnV40cc28QwS++kP9qINtrIv4hlASruhC/K3FqkHAmM=
910
github.com/google/docsy v0.11.0/go.mod h1:hGGW0OjNuG5ZbH5JRtALY3yvN8ybbEP/v2iaK4bwOUI=
11+
github.com/google/docsy v0.14.2 h1:XJud05ZWCUFgvE9G1KdxhGsDdr7OmWYdnWPxrclIPWE=
12+
github.com/google/docsy v0.14.2/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU=
1013
github.com/twbs/bootstrap v5.2.3+incompatible h1:lOmsJx587qfF7/gE7Vv4FxEofegyJlEACeVV+Mt7cgc=
1114
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
1215
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
16+
github.com/twbs/bootstrap v5.3.8+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

docs/hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ desc = "Chat with others on our dedicated Discord server"
193193
# workspace = "docsy.work"
194194
[module.hugoVersion]
195195
extended = true
196-
min = "0.110.0"
196+
min = "0.139.0"
197197
[[module.imports]]
198198
path = "github.com/google/docsy"
199199
disable = false

docs/layouts/_default/_markup/render-heading.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/layouts/partials/scripts/mermaid.html

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)