apache / apache/dubbo-website

[Bug]无法启动项目

Open
#3,020 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
491
Forks
809
Avg merge
1d 6h
Merged PRs (30d)
6

Description

hugo mod clean
ERROR deprecated: config: languages.en.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.132.0. Put the value below [languages.en.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
ERROR deprecated: config: languages.zh-cn.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.132.0. Put the value below [languages.zh-cn.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
hugo: downloading modules …
hugo: collected modules in 3547 ms
hugo: removed 34 dirs in module cache for "github.com/FortAwesome/Font-Awesome"
hugo: removed 57 dirs in module cache for "github.com/google/docsy"
hugo: removed 5 dirs in module cache for "github.com/google/docsy/dependencies"
hugo: removed 70 dirs in module cache for "github.com/twbs/bootstrap"
PS E:\开源项目\阿里天池赛\dubbo-website> hugo server --disableFastRender
>>
ERROR deprecated: config: languages.en.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.132.0. Put the value below [languages.en.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
ERROR deprecated: config: languages.zh-cn.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.132.0. Put the value below [languages.zh-cn.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
hugo: downloading modules …
hugo: collected modules in 3367 ms
Watching for changes in E:\开源项目\阿里天池赛\dubbo-website\{archetypes,assets,content,data,i18n,layouts,package.json,static}
Watching for config changes in E:\开源项目\阿里天池赛\dubbo-website\config.toml, E:\开源项目\阿里天池赛\dubbo-website\go.mod
Start building sites …
hugo v0.131.0-bfbee17932ff24009008aa94cdd75c0c41f59279+extended windows/amd64 BuildDate=2024-08-02T09:03:48Z VendorInfo=gohugoio

WARN deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead.
WARN deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.GoogleAnalytics.ID instead.
WARN deprecated: .Site.DisqusShortname was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.Disqus.Shortname instead.
ERROR render of "section" failed: "C:\Users\空生酥\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.6.0\layouts\docs\list.html:12:11": execute of template failed: template: docs/list.html:12:11: executing "main" at : error calling partial: "C:\Users\空生酥\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.6.0\layouts\partials\section-index.html:7:17": execute of template failed: template: partials/section-index.html:7:17: executing "partials/section-index.html" at : error calling where: runtime error: invalid memory address or nil pointer dereference
Built in 6767 ms
Error: error building site: render: failed to render pages: render of "section" failed: "C:\Users\空生酥\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.6.0\layouts\docs\list.html:12:11": execute of template failed: template: docs/list.html:12:11: executing "main" – File is nil; wrap it in if or with: {{ with partial "section-index.html" .>: error calling partial: "C:\Users\空生酥\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.6.0\layouts\partials\section-index.html:7:17": execute of template failed: template: partials/section-index.html:7:17: executing "partials/section-index.html" at

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `hugo mod clean` followed by `hugo server --disableFastRender` and read `config.toml` and `go.mod`. Inspect the referenced Docsy v0.6.0 templates, especially `layouts/docs/list.html` and `layouts/partials/section-index.html`, to identify the nil `File` value. Done means the site builds and starts without the reported render error.

Written by the indexing model from the issue text.

Assessment

Tech stack
hugo
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.