task: add performance optimized config

This commit is contained in:
Sören Weber 2025-02-19 21:42:14 +01:00
parent 713531ec7d
commit 00881d7646
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
5 changed files with 51 additions and 1 deletions

View file

@ -276,6 +276,8 @@ alwaysopen = ''
# Default: false
# If set to true, a submenu in the sidebar will be displayed in a collapsible
# tree view and a clickable expander is set in front of the entry.
# Note that if set to `true` can have a major performance impact on build
# for sites with many pages.
# This can be overridden in the page's frontmatter.
collapsibleMenu = true

View file

@ -0,0 +1,23 @@
# This configuration file disables all performance intensive features.
# The Piratish pages are slow due to the mechanism used to autotranslate
# the original english content via the piratify shortcode. This is
# only an issue with this showcase as your site should have the piratish
# translations.
disableLanguages = ['pir']
# Usually the docs are built with the addition of the Relearn print
# format. This can get costly for many pages and/or deeply nested sites.
[outputs]
home = ['html', 'rss']
section = ['html', 'rss']
page = ['html', 'rss']
[params]
# Generation of the search index is costly as all pages are indexed
# in a single file. Luckily due to caching, this is only done once
# per configured language.
disableSearch = true
# This option can have a major impact if you have many pages.
collapsibleMenu = false

View file

@ -157,6 +157,8 @@ alwaysopen = ''
# Default: false
# If set to true, a submenu in the sidebar will be displayed in a collapsible
# tree view and a clickable expander is set in front of the entry.
# Note that if set to `true` can have a major performance impact on build
# for sites with many pages.
# If not set, the set value of your site's hugo.toml is used.
collapsibleMenu = true

View file

@ -0,0 +1,23 @@
# This configuration file disables all performance intensive features.
# The Piratish pages are slow due to the mechanism used to autotranslate
# the original english content via the piratify shortcode. This is
# only an issue with this showcase as your site should have the piratish
# translations.
disableLanguages = ['pir']
# Usually the docs are built with the addition of the Relearn print
# format. This can get costly for many pages and/or deeply nested sites.
[outputs]
home = ['html', 'rss']
section = ['html', 'rss']
page = ['html', 'rss']
[params]
# Generation of the search index is costly as all pages are indexed
# in a single file. Luckily due to caching, this is only done once
# per configured language.
disableSearch = true
# This option can have a major impact if you have many pages.
collapsibleMenu = false

View file

@ -1 +1 @@
7.4.0+a8d787c37e4fd3e417f868b5124b6820a944b170
7.4.0+713531ec7d191694a7a939068b47329e204e6e1e