From d83e16ba9e7144bbcad3ff84dfe523bb39555b6d Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Fri, 21 Jan 2022 09:21:19 +0100 Subject: [PATCH] Create separate config directories for each installation type (theme / module) --- config/README.txt | 11 ++++ config/module/config.toml | 20 -------- configModule/_default/config.toml | 53 ++++++++++++++++++++ {config => configTheme}/_default/config.toml | 0 4 files changed, 64 insertions(+), 20 deletions(-) create mode 100644 config/README.txt delete mode 100644 config/module/config.toml create mode 100644 configModule/_default/config.toml rename {config => configTheme}/_default/config.toml (100%) diff --git a/config/README.txt b/config/README.txt new file mode 100644 index 0000000000..3bc4c53d71 --- /dev/null +++ b/config/README.txt @@ -0,0 +1,11 @@ +To be authored: + +Choose installation type: + +* git submodules +cd site-root +ln -s configTheme config + +* git submodules +cd site-root +ln -s configModule config diff --git a/config/module/config.toml b/config/module/config.toml deleted file mode 100644 index 44cce0436c..0000000000 --- a/config/module/config.toml +++ /dev/null @@ -1,20 +0,0 @@ -[module] -_merge = "none" -[[module.mounts]] - source = "assets/bootstrap/scss/vendor" - target = "assets/vendor/bootstrap/scss/vendor" -# Dependencies are brought in as modules -# and mount points are declared -[[module.imports]] - path = "github.com/twbs/bootstrap" - disable = false -[[module.imports.mounts]] - source = "scss" - target = "assets/vendor/bootstrap/scss" - -[[module.imports]] - path = "github.com/FortAwesome/Font-Awesome" - disable = false -[[module.imports.mounts]] - source = "scss" - target = "assets/vendor/Font-Awesome/scss" diff --git a/configModule/_default/config.toml b/configModule/_default/config.toml new file mode 100644 index 0000000000..86179e6034 --- /dev/null +++ b/configModule/_default/config.toml @@ -0,0 +1,53 @@ +# This the theme configuration for Docsy. +# Allowed configuration in a theme is (currently): +# params (global and per language) +# menu (global and per language) +# outputformats and mediatypes + +[params] +time_format_blog = "Monday, January 02, 2006" +time_format_default = "January 2, 2006" +# Sections to publish in the main RSS feed. +rss_sections = ["blog"] + +[params.drawio] +enable = true +#drawio_server = "https://example.com/" + +# For a full list of parameters used in Docsy sites, see: +# https://github.com/google/docsy-example/blob/master/config.toml + + +[outputFormats] +[outputFormats.PRINT] +baseName = "index" +isHTML = true +mediaType = "text/html" +path = "_print" +permalinkable = false + +[module] +_merge = "none" + +[module.hugoVersion] +extended = true +min = "0.77.0" + +[[module.mounts]] + source = "assets/bootstrap/scss/vendor" + target = "assets/vendor/bootstrap/scss/vendor" +# Dependencies are brought in as modules +# and mount points are declared +[[module.imports]] + path = "github.com/twbs/bootstrap" + disable = false +[[module.imports.mounts]] + source = "scss" + target = "assets/vendor/bootstrap/scss" + +[[module.imports]] + path = "github.com/FortAwesome/Font-Awesome" + disable = false +[[module.imports.mounts]] + source = "scss" + target = "assets/vendor/Font-Awesome/scss" diff --git a/config/_default/config.toml b/configTheme/_default/config.toml similarity index 100% rename from config/_default/config.toml rename to configTheme/_default/config.toml