diff --git a/content/en/blog/news/first-post/index.md b/content/en/blog/news/first-post/index.md index 1c33df2842..91655fbe42 100644 --- a/content/en/blog/news/first-post/index.md +++ b/content/en/blog/news/first-post/index.md @@ -32,7 +32,7 @@ Image cropped to 500x300 The front matter of this post specifies properties to be assigned to all image resources: -``` +```yaml resources: - src: '**.{png,jpg}' params: diff --git a/content/fa/blog/news/first-post/index.md b/content/fa/blog/news/first-post/index.md index 13822a905a..cd1079f504 100644 --- a/content/fa/blog/news/first-post/index.md +++ b/content/fa/blog/news/first-post/index.md @@ -26,7 +26,7 @@ description: "پوسته داکسی، قدرت گرفته از هوگو باعث مشخصات زیر که در اطلاعات پست آمده است روی تمامی تصاویر این پست اعمال می‌شوند: -``` +```yaml resources: - src: '**.{png,jpg}' params: @@ -35,7 +35,7 @@ resources: برای افزودن تصویر در یک صفحه، مشخصات آن را به صورت زیر مشخص کنید: -``` +```go-html-template {{}} Image cropped to 500x300 {{}} diff --git a/go.mod b/go.mod index 60fb4a1e28..e0a433a5eb 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,6 @@ module github.com/google/docsy-example go 1.12 -require github.com/google/docsy v0.13.1-0.20260209191548-234f18dd3708 +require github.com/google/docsy v0.14.0 // cSpell:ignore github docsy diff --git a/go.sum b/go.sum index d8c7443d45..9d03cfdb05 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,6 @@ github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w= github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= -github.com/google/docsy v0.13.1-0.20260209191548-234f18dd3708 h1:6SjTBOMwUNCc+XUtWsDXNjB9pxaNIkpPOHv6dUQ69U0= -github.com/google/docsy v0.13.1-0.20260209191548-234f18dd3708/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU= +github.com/google/docsy v0.14.0 h1:ughzXITuVzEwA7m5A6JLyXQRSZdyRtIUvukfJ+VrUAY= +github.com/google/docsy v0.14.0/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU= github.com/twbs/bootstrap v5.3.8+incompatible h1:eK1fsXP7R/FWFt+sSNmmvUH9usPocf240nWVw7Dh02o= github.com/twbs/bootstrap v5.3.8+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= diff --git a/hugo.yaml b/hugo.yaml index 1003a98a19..cf40b58a99 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -167,6 +167,8 @@ params: navbar_logo: true # Set to true if you don't want the top navbar to be translucent when over a `block/cover`, like on the homepage. navbar_translucent_over_cover_disable: false + + sidebar_menu_foldable: true # Enable to show the side bar menu in its compact state. sidebar_menu_compact: false # Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled) diff --git a/package.json b/package.json index badd110bd6..1ec0a73147 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "_build": "npm run _hugo-dev --", "_check:format": "npx prettier --check .", "_check:links": "echo IMPLEMENTATION PENDING for check-links; echo", - "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"", + "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit --allow-empty -m \"Site at $HASH\"", "_diff:check": "git diff --name-only --exit-code", "_fix:permissions": "chmod -R u+w public/* 2>/dev/null || true", "_get:docsy": "hugo mod get github.com/google/docsy@v$npm_package_version", @@ -31,6 +31,7 @@ "clean": "rm -Rf public/* resources", "fix:format:diff": "npm run fix:format", "fix:format": "npm run _check:format -- --write", + "fix": "npm run fix:format", "local": "npm run _local -- npm run", "make:public": "git init -b main public", "post_hugo": "npm run _fix:permissions", @@ -40,7 +41,9 @@ "precheck:links": "npm run build", "seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ", "serve": "npm run _serve", - "test": "npm run check:links", + "test-and-fix": "npm run fix && npm run test-only", + "test-only": "npm run check:links", + "test": "npm run test-and-fix", "update:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest", "update:docsy:main": "hugo mod get -u github.com/google/docsy@main && hugo mod tidy", "update:hugo-modules": "hugo mod get -u github.com/google/docsy && hugo mod tidy",