dapr / dapr/docs

Running local server fails with mapping key "archived_version" already defined error

Open
#5,100 0 comments 0 reactions 1 assignee Claimed by @AaronCrawfis View on GitHub
website/functionality
Dominant language
SCSS
Stars
1k
Forks
794
Avg merge
2d 8h
Merged PRs (30d)
7

Description

**Describe the bug**
When trying to start a local doc server with `hugo server` it fails with:

> **ERROR** command error: failed to load config: "C:\dapr-docs-1.17\hugo.yaml:139:3": [139:3] mapping key "archived_version" already defined at [129:3]
136 | # Flag used in the "version-banner" partial to decide whether to display a
137 | # banner on every page indicating that this is an archived version of the docs.
138 | # Set this flag to "true" if you want to display the banner.
> 139 | archived_version: false
^
141 | # A link to latest version of the docs. Used in the "version-banner" partial to
142 | # point people to the main doc site.
143 |

This is because in commit ced831f for #5046 a second copy of the `archived_version` parameter block was added to hugo.yaml.

Reverting that change solves the issue.

**Steps to reproduce**
Follow the instructions from [Readme](https://github.com/dapr/docs#run-local-server) to run a local hugo server with 1.17 branch.

**Expected behavior**
local web-server starts up without issues

**Desktop**
- OS: Windows 11
- Browser Firefox
- Version 149.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.