]> git.maquefel.me Git - brevno-suite/hugo/commit
Create a struct with all of Hugo's config options
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 4 Jan 2023 17:24:36 +0000 (18:24 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 16 May 2023 16:01:29 +0000 (18:01 +0200)
commit241b21b0fd34d91fccb2ce69874110dceae6f926
treed4e0118eac7e9c42f065815447a70805f8d6ad3e
parent6aededf6b42011c3039f5f66487a89a8dd65e0e7
Create a struct with all of Hugo's config options

Primary motivation is documentation, but it will also hopefully simplify the code.

Also,

* Lower case the default output format names; this is in line with the custom ones (map keys) and how
it's treated all the places. This avoids doing `stringds.EqualFold` everywhere.

Closes #10896
Closes #10620
344 files changed:
.gitignore
cache/docs.go [new file with mode: 0644]
cache/filecache/filecache.go
cache/filecache/filecache_config.go
cache/filecache/filecache_config_test.go
cache/filecache/filecache_pruner.go
cache/filecache/filecache_pruner_test.go
cache/filecache/filecache_test.go
cache/filecache/integration_test.go
commands/commandeer.go
commands/commands.go
commands/commands_test.go [deleted file]
commands/config.go
commands/convert.go
commands/deploy.go
commands/deploy_off.go [new file with mode: 0644]
commands/env.go
commands/gen.go
commands/genchromastyles.go [deleted file]
commands/gendoc.go [deleted file]
commands/gendocshelper.go [deleted file]
commands/genman.go [deleted file]
commands/helpers.go
commands/hugo.go [deleted file]
commands/hugo_test.go [deleted file]
commands/hugo_windows.go
commands/hugobuilder.go [new file with mode: 0644]
commands/import.go [new file with mode: 0644]
commands/import_jekyll.go [deleted file]
commands/import_jekyll_test.go [deleted file]
commands/limit_darwin.go [deleted file]
commands/limit_others.go [deleted file]
commands/list.go
commands/list_test.go [deleted file]
commands/mod.go
commands/mod_npm.go [deleted file]
commands/new.go
commands/new_content_test.go [deleted file]
commands/new_site.go [deleted file]
commands/new_theme.go [deleted file]
commands/nodeploy.go [deleted file]
commands/release.go
commands/release_noop.go [deleted file]
commands/server.go
commands/server_errors.go [deleted file]
commands/server_test.go [deleted file]
commands/static_syncer.go [deleted file]
commands/version.go [deleted file]
commands/xcommand_template.go [new file with mode: 0644]
common/hstrings/strings.go [new file with mode: 0644]
common/hstrings/strings_test.go [new file with mode: 0644]
common/htime/time.go
common/hugo/hugo.go
common/loggers/ignorableLogger.go
common/maps/maps.go
common/maps/maps_test.go
common/maps/params.go
common/maps/params_test.go
common/urls/baseURL.go [new file with mode: 0644]
common/urls/baseURL_test.go [new file with mode: 0644]
config/allconfig/allconfig.go [new file with mode: 0644]
config/allconfig/alldecoders.go [new file with mode: 0644]
config/allconfig/configlanguage.go [new file with mode: 0644]
config/allconfig/integration_test.go [new file with mode: 0644]
config/allconfig/load.go [new file with mode: 0644]
config/allconfig/load_test.go [new file with mode: 0644]
config/commonConfig.go
config/commonConfig_test.go
config/compositeConfig.go [deleted file]
config/compositeConfig_test.go [deleted file]
config/configLoader.go
config/configProvider.go
config/defaultConfigProvider.go
config/namespace.go [new file with mode: 0644]
config/namespace_test.go [new file with mode: 0644]
config/security/securityConfig.go
config/services/servicesConfig_test.go
config/testconfig/testconfig.go [new file with mode: 0644]
create/content.go
create/content_test.go
deploy/deploy.go
deploy/deployConfig.go
deploy/deployConfig_test.go
deploy/deploy_test.go
deps/deps.go
deps/deps_test.go
go.mod
go.sum
helpers/content.go
helpers/content_test.go
helpers/general.go
helpers/general_test.go
helpers/path.go
helpers/path_test.go
helpers/pathspec.go
helpers/pathspec_test.go [deleted file]
helpers/testhelpers_test.go
helpers/url.go
helpers/url_test.go
hugofs/fs.go
hugofs/fs_test.go
hugofs/noop_fs.go
hugofs/rootmapping_fs_test.go
hugolib/alias.go
hugolib/breaking_changes_test.go
hugolib/cascade_test.go
hugolib/codeowners.go
hugolib/config.go
hugolib/config_test.go
hugolib/configdir_test.go
hugolib/content_map.go
hugolib/content_map_page.go
hugolib/datafiles_test.go
hugolib/dates_test.go
hugolib/embedded_shortcodes_test.go
hugolib/filesystems/basefs.go
hugolib/filesystems/basefs_test.go
hugolib/gitinfo.go
hugolib/hugo_modules_test.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go
hugolib/hugo_sites_build_errors_test.go
hugolib/hugo_sites_build_test.go
hugolib/hugo_sites_multihost_test.go
hugolib/hugo_smoke_test.go
hugolib/integrationtest_builder.go
hugolib/language_content_dir_test.go
hugolib/menu_test.go
hugolib/minify_publisher_test.go
hugolib/multilingual.go [deleted file]
hugolib/page.go
hugolib/page__common.go
hugolib/page__meta.go
hugolib/page__new.go
hugolib/page__paginator.go
hugolib/page__paths.go
hugolib/page__per_output.go
hugolib/page_kinds.go
hugolib/page_permalink_test.go
hugolib/page_test.go
hugolib/pagebundler_test.go
hugolib/pagecollections_test.go
hugolib/pages_capture.go
hugolib/pages_capture_test.go
hugolib/pages_process.go
hugolib/paths/baseURL.go [deleted file]
hugolib/paths/baseURL_test.go [deleted file]
hugolib/paths/paths.go
hugolib/paths/paths_test.go [deleted file]
hugolib/prune_resources.go
hugolib/robotstxt_test.go
hugolib/rss_test.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_benchmark_new_test.go
hugolib/site_new.go [new file with mode: 0644]
hugolib/site_output_test.go
hugolib/site_render.go
hugolib/site_sections.go
hugolib/site_sections_test.go
hugolib/site_test.go
hugolib/site_url_test.go
hugolib/sitemap_test.go
hugolib/taxonomy_test.go
hugolib/template_test.go
hugolib/testhelpers_test.go
langs/config.go
langs/i18n/i18n.go
langs/i18n/i18n_test.go
langs/i18n/translationProvider.go
langs/language.go
langs/language_test.go
livereload/livereload.go
main.go
main_test.go [new file with mode: 0644]
markup/asciidocext/convert.go
markup/asciidocext/convert_test.go
markup/asciidocext/internal/converter.go [new file with mode: 0644]
markup/converter/converter.go
markup/converter/hooks/hooks.go
markup/goldmark/convert.go
markup/goldmark/convert_test.go
markup/goldmark/toc_test.go
markup/highlight/config.go
markup/highlight/highlight.go
markup/markup.go
markup/markup_config/config.go
markup/markup_test.go
markup/org/convert_test.go
markup/pandoc/convert.go
markup/rst/convert.go
markup/tableofcontents/tableofcontents.go
media/builtin.go [new file with mode: 0644]
media/config.go [new file with mode: 0644]
media/config_test.go [new file with mode: 0644]
media/mediaType.go
media/mediaType_test.go
minifiers/config.go
minifiers/config_test.go
minifiers/minifiers.go
minifiers/minifiers_test.go
modules/client.go
modules/collect.go
modules/config.go
navigation/menu.go
navigation/menu_cache_test.go
navigation/pagemenus.go
output/config.go [new file with mode: 0644]
output/config_test.go [new file with mode: 0644]
output/docshelper.go
output/layout.go [deleted file]
output/layout_test.go [deleted file]
output/layouts/layout.go [new file with mode: 0644]
output/layouts/layout_test.go [new file with mode: 0644]
output/outputFormat.go
output/outputFormat_test.go
parser/lowercase_camel_json.go
parser/lowercase_camel_json_test.go [new file with mode: 0644]
parser/metadecoders/format.go
parser/metadecoders/format_test.go
publisher/htmlElementsCollector_test.go
publisher/publisher.go
related/inverted_index.go
related/inverted_index_test.go
resources/assets/sunset.jpg [new file with mode: 0644]
resources/image.go
resources/image_extended_test.go
resources/image_test.go
resources/images/config.go
resources/images/config_test.go
resources/images/image.go
resources/images/image_resource.go
resources/page/page.go
resources/page/page_marshaljson.autogen.go
resources/page/page_matcher.go
resources/page/page_matcher_test.go
resources/page/page_nop.go
resources/page/page_paths.go
resources/page/page_paths_test.go
resources/page/pagemeta/page_frontmatter.go
resources/page/pagemeta/page_frontmatter_test.go
resources/page/pagemeta/pagemeta_test.go
resources/page/pages_language_merge.go
resources/page/pagination.go
resources/page/pagination_test.go
resources/page/permalinks.go
resources/page/permalinks_test.go
resources/page/site.go
resources/page/testhelpers_page_test.go [new file with mode: 0644]
resources/page/testhelpers_test.go
resources/postpub/fields_test.go
resources/resource.go
resources/resource/resources.go
resources/resource_cache.go
resources/resource_factories/bundler/bundler.go
resources/resource_factories/create/create.go
resources/resource_factories/create/remote.go
resources/resource_metadata_test.go [deleted file]
resources/resource_spec.go
resources/resource_test.go
resources/resource_transformers/babel/babel.go
resources/resource_transformers/htesting/testhelpers.go
resources/resource_transformers/js/build.go
resources/resource_transformers/js/options.go
resources/resource_transformers/js/options_test.go
resources/resource_transformers/minifier/minify.go
resources/resource_transformers/postcss/postcss.go
resources/resource_transformers/tocss/dartsass/transform.go
resources/resource_transformers/tocss/scss/tocss.go
resources/testhelpers_test.go
resources/transform.go
resources/transform_test.go
source/content_directory_test.go
source/fileInfo.go
source/fileInfo_test.go
source/filesystem_test.go
source/sourceSpec.go
testscripts/commands/commands_errors.txt [new file with mode: 0644]
testscripts/commands/completion.txt [new file with mode: 0644]
testscripts/commands/config.txt [new file with mode: 0644]
testscripts/commands/convert.txt [new file with mode: 0644]
testscripts/commands/deploy.txt [new file with mode: 0644]
testscripts/commands/env.txt [new file with mode: 0644]
testscripts/commands/gen.txt [new file with mode: 0644]
testscripts/commands/hugo.txt [new file with mode: 0644]
testscripts/commands/hugo__errors.txt [new file with mode: 0644]
testscripts/commands/hugo__flags.txt [new file with mode: 0644]
testscripts/commands/hugo__watch.txt [new file with mode: 0644]
testscripts/commands/import_jekyll.txt [new file with mode: 0644]
testscripts/commands/list.txt [new file with mode: 0644]
testscripts/commands/mod.txt [new file with mode: 0644]
testscripts/commands/mod_npm.txt [new file with mode: 0644]
testscripts/commands/mod_tidy.txt [new file with mode: 0644]
testscripts/commands/new.txt [new file with mode: 0644]
testscripts/commands/server.txt [new file with mode: 0644]
testscripts/commands/server__edit_config.txt [new file with mode: 0644]
testscripts/commands/server__edit_content.txt [new file with mode: 0644]
testscripts/commands/server__multihost.txt [new file with mode: 0644]
testscripts/commands/server_render_static_to_disk.txt [new file with mode: 0644]
testscripts/commands/server_render_to_memory.txt [new file with mode: 0644]
testscripts/commands/version.txt [new file with mode: 0644]
testscripts/unfinished/noop.txt [new file with mode: 0644]
tpl/cast/docshelper.go
tpl/collections/append_test.go
tpl/collections/apply_test.go
tpl/collections/collections.go
tpl/collections/collections_test.go
tpl/collections/complement_test.go
tpl/collections/index.go
tpl/collections/index_test.go
tpl/collections/merge_test.go
tpl/collections/sort.go
tpl/collections/sort_test.go
tpl/collections/symdiff_test.go
tpl/collections/where.go
tpl/collections/where_test.go
tpl/compare/init.go
tpl/crypto/crypto.go
tpl/data/data.go
tpl/data/data_test.go
tpl/data/resources.go
tpl/data/resources_test.go
tpl/fmt/fmt.go
tpl/hugo/init.go
tpl/images/images_test.go
tpl/lang/init.go
tpl/math/math.go
tpl/openapi/openapi3/openapi3.go
tpl/partials/partials.go
tpl/path/path_test.go
tpl/site/init.go
tpl/strings/strings.go
tpl/strings/strings_test.go
tpl/template.go
tpl/time/init.go
tpl/tplimpl/template.go
tpl/tplimpl/templateProvider.go
tpl/tplimpl/template_funcs.go
tpl/transform/transform_test.go
tpl/transform/unmarshal.go
tpl/transform/unmarshal_test.go
tpl/urls/urls.go
tpl/urls/urls_test.go
watchtestscripts.sh [new file with mode: 0755]