diff --git a/docs/config/_default/params.toml b/docs/config/_default/params.toml index 4cf433d2ac..99f3d9104e 100644 --- a/docs/config/_default/params.toml +++ b/docs/config/_default/params.toml @@ -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 diff --git a/docs/config/performance/hugo.toml b/docs/config/performance/hugo.toml new file mode 100644 index 0000000000..be994c65bf --- /dev/null +++ b/docs/config/performance/hugo.toml @@ -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 \ No newline at end of file diff --git a/docs/content/authoring/frontmatter/reference/frontmatter.toml b/docs/content/authoring/frontmatter/reference/frontmatter.toml index 3451fb417e..53a45781bd 100644 --- a/docs/content/authoring/frontmatter/reference/frontmatter.toml +++ b/docs/content/authoring/frontmatter/reference/frontmatter.toml @@ -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 diff --git a/exampleSite/config/performance/hugo.toml b/exampleSite/config/performance/hugo.toml new file mode 100644 index 0000000000..be994c65bf --- /dev/null +++ b/exampleSite/config/performance/hugo.toml @@ -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 \ No newline at end of file diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index a1fe327b45..5ce3f193cb 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.4.0+a8d787c37e4fd3e417f868b5124b6820a944b170 \ No newline at end of file +7.4.0+713531ec7d191694a7a939068b47329e204e6e1e \ No newline at end of file