Repository: gohugoio/hugo (language: go)

Issue:
config: Remove extraneous BuildConfig setting
I noticed this in the documentation:

![image](https://github.com/gohugoio/hugo/assets/335669/fde6f452-4f21-4da0-8371-94e92e4f7af6)

The `duplicateResourceFiles` key-value pair shouldn't be there. I think this is detritus from the v0.123.0 development cycle (I remember a few iterations related to this functionality). This behavior is now controlled by `markup.goldmark.duplicateResourceFiles`.

I think we can remove these lines:

https://github.com/gohugoio/hugo/blob/6b006616e5423c0906f2bfc52e103261fdfb04ef/config/commonConfig.go#L101-L103


Discussion / hints:

Fix patch:
diff --git a/config/commonConfig.go b/config/commonConfig.go
index 6ae97c2a185..1e43b165374 100644
--- a/config/commonConfig.go
+++ b/config/commonConfig.go
@@ -98,10 +98,6 @@ type BuildConfig struct {
 	// One of never, fallback, always. Default is fallback
 	UseResourceCacheWhen string
 
-	// When enabled, will duplicate bundled resource files across languages that
-	// doesn't have a translated version.
-	DuplicateResourceFiles bool
-
 	// When enabled, will collect and write a hugo_stats.json with some build
 	// related aggregated data (e.g. CSS class names).
 	// Note that this was a bool <= v0.115.0.
diff --git a/docs/data/docs.yaml b/docs/data/docs.yaml
index ae818525944..d96468f40a9 100644
--- a/docs/data/docs.yaml
+++ b/docs/data/docs.yaml
@@ -939,7 +939,6 @@ config:
     cacheBusters:
     - source: (postcss|tailwind)\.config\.js
       target: (css|styles|scss|sass)
-    duplicateResourceFiles: false
     noJSConfigInAssets: false
     useResourceCacheWhen: fallback
   buildDrafts: false


Test patch: