Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/blog/news/first-post/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions content/fa/blog/news/first-post/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ description: "پوسته داکسی، قدرت گرفته از هوگو باعث

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

```
```yaml
resources:
- src: '**.{png,jpg}'
params:
Expand All @@ -35,7 +35,7 @@ resources:

برای افزودن تصویر در یک صفحه، مشخصات آن را به صورت زیر مشخص کنید:

```
```go-html-template
{{</* imgproc sunset Crop "500x300" */>}}
Image cropped to 500x300
{{</* /imgproc */>}}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
2 changes: 2 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down