Rename taxonomy kinds from taxonomy to term, taxonomyTerm to taxonomy
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 16 Jun 2020 13:43:50 +0000 (15:43 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 18 Jun 2020 07:09:56 +0000 (09:09 +0200)
commitfc045e12a953aac88b942c25b958c5c0554b252b
treead8e171d0730f55eb9a531c1a9f0a8dfb51065ad
parent9679023f2b0d7c55b70f23fd94603f301a841079
Rename taxonomy kinds from taxonomy to term, taxonomyTerm to taxonomy

And we have taken great measures to limit potential site breakage:

* For `disableKinds` and `outputs` we try to map from old to new values if possible, if not we print an ERROR that can be toggled off if not relevant.
* The layout lookup is mostly compatible with more options for the new `term` kind.

That leaves:

* Where queries in site.Pages using taxonomy/taxonomyTerm Kind values as filter.
* Other places where these kind value are used in the templates (classes etc.)

Fixes #6911
Fixes #7395
44 files changed:
common/constants/constants.go [new file with mode: 0644]
common/loggers/ignorableLogger.go [new file with mode: 0644]
docs/content/en/content-management/taxonomies.md
docs/content/en/getting-started/configuration.md
docs/content/en/templates/lookup-order.md
docs/content/en/templates/output-formats.md
docs/content/en/templates/section-templates.md
docs/data/docs.json
docs/layouts/shortcodes/content-tree.html [new file with mode: 0644]
docs/layouts/shortcodes/page-kinds.html [new file with mode: 0644]
hugolib/breaking_changes_test.go [new file with mode: 0644]
hugolib/cascade_test.go
hugolib/content_map.go
hugolib/content_map_page.go
hugolib/content_map_test.go
hugolib/disableKinds_test.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build_test.go
hugolib/hugo_smoke_test.go
hugolib/page.go
hugolib/page__data.go
hugolib/page__meta.go
hugolib/page__paginator.go
hugolib/page__paths.go
hugolib/page__tree.go
hugolib/page_kinds.go
hugolib/pagebundler_test.go
hugolib/pagecollections_test.go
hugolib/resource_chain_babel_test.go
hugolib/resource_chain_test.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_output.go
hugolib/site_output_test.go
hugolib/site_test.go
hugolib/taxonomy_test.go
hugolib/testhelpers_test.go
output/docshelper.go
output/layout.go
output/layout_test.go
resources/page/page.go
resources/page/page_kinds.go
resources/page/page_kinds_test.go
resources/page/page_paths_test.go