Skip to content

Commit 6b3885f

Browse files
authored
Upgrade to Docsy 0.14.0, page tweaks (#418)
1 parent 30c96fa commit 6b3885f

6 files changed

Lines changed: 13 additions & 8 deletions

File tree

content/en/blog/news/first-post/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Image cropped to 500x300
3232
The front matter of this post specifies properties to be assigned to all image
3333
resources:
3434

35-
```
35+
```yaml
3636
resources:
3737
- src: '**.{png,jpg}'
3838
params:

content/fa/blog/news/first-post/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ description: "پوسته داکسی، قدرت گرفته از هوگو باعث
2626

2727
مشخصات زیر که در اطلاعات پست آمده است روی تمامی تصاویر این پست اعمال می‌شوند:
2828

29-
```
29+
```yaml
3030
resources:
3131
- src: '**.{png,jpg}'
3232
params:
@@ -35,7 +35,7 @@ resources:
3535
3636
برای افزودن تصویر در یک صفحه، مشخصات آن را به صورت زیر مشخص کنید:
3737
38-
```
38+
```go-html-template
3939
{{</* imgproc sunset Crop "500x300" */>}}
4040
Image cropped to 500x300
4141
{{</* /imgproc */>}}

go.mod

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

33
go 1.12
44

5-
require github.com/google/docsy v0.13.1-0.20260209191548-234f18dd3708
5+
require github.com/google/docsy v0.14.0
66

77
// cSpell:ignore github docsy

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w=
22
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
3-
github.com/google/docsy v0.13.1-0.20260209191548-234f18dd3708 h1:6SjTBOMwUNCc+XUtWsDXNjB9pxaNIkpPOHv6dUQ69U0=
4-
github.com/google/docsy v0.13.1-0.20260209191548-234f18dd3708/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU=
3+
github.com/google/docsy v0.14.0 h1:ughzXITuVzEwA7m5A6JLyXQRSZdyRtIUvukfJ+VrUAY=
4+
github.com/google/docsy v0.14.0/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU=
55
github.com/twbs/bootstrap v5.3.8+incompatible h1:eK1fsXP7R/FWFt+sSNmmvUH9usPocf240nWVw7Dh02o=
66
github.com/twbs/bootstrap v5.3.8+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

hugo.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ params:
167167
navbar_logo: true
168168
# Set to true if you don't want the top navbar to be translucent when over a `block/cover`, like on the homepage.
169169
navbar_translucent_over_cover_disable: false
170+
171+
sidebar_menu_foldable: true
170172
# Enable to show the side bar menu in its compact state.
171173
sidebar_menu_compact: false
172174
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"_build": "npm run _hugo-dev --",
1414
"_check:format": "npx prettier --check .",
1515
"_check:links": "echo IMPLEMENTATION PENDING for check-links; echo",
16-
"_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"",
16+
"_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit --allow-empty -m \"Site at $HASH\"",
1717
"_diff:check": "git diff --name-only --exit-code",
1818
"_fix:permissions": "chmod -R u+w public/* 2>/dev/null || true",
1919
"_get:docsy": "hugo mod get github.com/google/docsy@v$npm_package_version",
@@ -31,6 +31,7 @@
3131
"clean": "rm -Rf public/* resources",
3232
"fix:format:diff": "npm run fix:format",
3333
"fix:format": "npm run _check:format -- --write",
34+
"fix": "npm run fix:format",
3435
"local": "npm run _local -- npm run",
3536
"make:public": "git init -b main public",
3637
"post_hugo": "npm run _fix:permissions",
@@ -40,7 +41,9 @@
4041
"precheck:links": "npm run build",
4142
"seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ",
4243
"serve": "npm run _serve",
43-
"test": "npm run check:links",
44+
"test-and-fix": "npm run fix && npm run test-only",
45+
"test-only": "npm run check:links",
46+
"test": "npm run test-and-fix",
4447
"update:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest",
4548
"update:docsy:main": "hugo mod get -u github.com/google/docsy@main && hugo mod tidy",
4649
"update:hugo-modules": "hugo mod get -u github.com/google/docsy && hugo mod tidy",

0 commit comments

Comments
 (0)