From 07a08c2335bf2e32579edcb110821c561bd0da67 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Wed, 17 May 2023 13:18:01 +0900 Subject: Rename config.yml to hugo.yml (#38582) hugo.yml is now recommended (over the generic sounding config.yml) as the default config based filename REF: https://gohugo.io/getting-started/configuration/#hugotoml-vs-configtoml Changing this may make it easier for code editors and build tools to identify this as a Hugo configuration file and project. --- build/generate-sri.js | 4 +-- config.yml | 89 --------------------------------------------------- hugo.yml | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 91 deletions(-) delete mode 100644 config.yml create mode 100644 hugo.yml diff --git a/build/generate-sri.js b/build/generate-sri.js index 1674247a8..2e2292475 100644 --- a/build/generate-sri.js +++ b/build/generate-sri.js @@ -18,11 +18,11 @@ const sh = require('shelljs') sh.config.fatal = true -const configFile = path.join(__dirname, '../config.yml') +const configFile = path.join(__dirname, '../hugo.yml') // Array of objects which holds the files to generate SRI hashes for. // `file` is the path from the root folder -// `configPropertyName` is the config.yml variable's name of the file +// `configPropertyName` is the hugo.yml variable's name of the file const files = [ { file: 'dist/css/bootstrap.min.css', diff --git a/config.yml b/config.yml deleted file mode 100644 index fe3d9e86c..000000000 --- a/config.yml +++ /dev/null @@ -1,89 +0,0 @@ -languageCode: "en" -title: "Bootstrap" -baseURL: "https://getbootstrap.com" - -security: - enableInlineShortcodes: true - funcs: - getenv: - - ^HUGO_ - - NETLIFY - -markup: - goldmark: - renderer: - unsafe: true - highlight: - noClasses: false - tableOfContents: - startLevel: 2 - endLevel: 6 - -buildDrafts: true -buildFuture: true - -enableRobotsTXT: true -metaDataFormat: "yaml" -disableKinds: ["404", "taxonomy", "term", "RSS"] - -publishDir: "_site" - -module: - mounts: - - source: dist - target: static/docs/5.3/dist - - source: site/assets - target: assets - - source: site/content - target: content - - source: site/data - target: data - - source: site/layouts - target: layouts - - source: site/static - target: static - - source: site/static/docs/5.3/assets/img/favicons/apple-touch-icon.png - target: static/apple-touch-icon.png - - source: site/static/docs/5.3/assets/img/favicons/favicon.ico - target: static/favicon.ico - -params: - subtitle: "The most popular HTML, CSS, and JS library in the world." - description: "Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to life with powerful JavaScript plugins." - authors: "Mark Otto, Jacob Thornton, and Bootstrap contributors" - - current_version: "5.3.0-alpha3" - current_ruby_version: "5.3.0.alpha3" - docs_version: "5.3" - rfs_version: "v10.0.0" - github_org: "https://github.com/twbs" - repo: "https://github.com/twbs/bootstrap" - twitter: "getbootstrap" - opencollective: "https://opencollective.com/bootstrap" - blog: "https://blog.getbootstrap.com/" - themes: "https://themes.getbootstrap.com/" - icons: "https://icons.getbootstrap.com/" - swag: "https://cottonbureau.com/people/bootstrap" - - download: - source: "https://github.com/twbs/bootstrap/archive/v5.3.0-alpha3.zip" - dist: "https://github.com/twbs/bootstrap/releases/download/v5.3.0-alpha3/bootstrap-5.3.0-alpha3-dist.zip" - dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.3.0-alpha3/bootstrap-5.3.0-alpha3-examples.zip" - - cdn: - # See https://www.srihash.org for info on how to generate the hashes - css: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" - css_hash: "sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" - css_rtl: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.rtl.min.css" - css_rtl_hash: "sha384-T5m5WERuXcjgzF8DAb7tRkByEZQGcpraRTinjpywg37AO96WoYN9+hrhDVoM6CaT" - js: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js" - js_hash: "sha384-Y4oOpwW3duJdCWv5ly8SCFYWqFDsfob/3GkgExXKV4idmbt98QcxXYs9UoXAB7BZ" - js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" - js_bundle_hash: "sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" - popper: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/umd/popper.min.js" - popper_hash: "sha384-zYPOMqeu1DAVkHiLqWBUTcbYfZ8osu1Nd6Z89ify25QV9guujx43ITvfi12/QExE" - popper_esm: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/esm/popper.min.js" - - anchors: - min: 2 - max: 5 diff --git a/hugo.yml b/hugo.yml new file mode 100644 index 000000000..fe3d9e86c --- /dev/null +++ b/hugo.yml @@ -0,0 +1,89 @@ +languageCode: "en" +title: "Bootstrap" +baseURL: "https://getbootstrap.com" + +security: + enableInlineShortcodes: true + funcs: + getenv: + - ^HUGO_ + - NETLIFY + +markup: + goldmark: + renderer: + unsafe: true + highlight: + noClasses: false + tableOfContents: + startLevel: 2 + endLevel: 6 + +buildDrafts: true +buildFuture: true + +enableRobotsTXT: true +metaDataFormat: "yaml" +disableKinds: ["404", "taxonomy", "term", "RSS"] + +publishDir: "_site" + +module: + mounts: + - source: dist + target: static/docs/5.3/dist + - source: site/assets + target: assets + - source: site/content + target: content + - source: site/data + target: data + - source: site/layouts + target: layouts + - source: site/static + target: static + - source: site/static/docs/5.3/assets/img/favicons/apple-touch-icon.png + target: static/apple-touch-icon.png + - source: site/static/docs/5.3/assets/img/favicons/favicon.ico + target: static/favicon.ico + +params: + subtitle: "The most popular HTML, CSS, and JS library in the world." + description: "Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to life with powerful JavaScript plugins." + authors: "Mark Otto, Jacob Thornton, and Bootstrap contributors" + + current_version: "5.3.0-alpha3" + current_ruby_version: "5.3.0.alpha3" + docs_version: "5.3" + rfs_version: "v10.0.0" + github_org: "https://github.com/twbs" + repo: "https://github.com/twbs/bootstrap" + twitter: "getbootstrap" + opencollective: "https://opencollective.com/bootstrap" + blog: "https://blog.getbootstrap.com/" + themes: "https://themes.getbootstrap.com/" + icons: "https://icons.getbootstrap.com/" + swag: "https://cottonbureau.com/people/bootstrap" + + download: + source: "https://github.com/twbs/bootstrap/archive/v5.3.0-alpha3.zip" + dist: "https://github.com/twbs/bootstrap/releases/download/v5.3.0-alpha3/bootstrap-5.3.0-alpha3-dist.zip" + dist_examples: "https://github.com/twbs/bootstrap/releases/download/v5.3.0-alpha3/bootstrap-5.3.0-alpha3-examples.zip" + + cdn: + # See https://www.srihash.org for info on how to generate the hashes + css: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" + css_hash: "sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" + css_rtl: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.rtl.min.css" + css_rtl_hash: "sha384-T5m5WERuXcjgzF8DAb7tRkByEZQGcpraRTinjpywg37AO96WoYN9+hrhDVoM6CaT" + js: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js" + js_hash: "sha384-Y4oOpwW3duJdCWv5ly8SCFYWqFDsfob/3GkgExXKV4idmbt98QcxXYs9UoXAB7BZ" + js_bundle: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" + js_bundle_hash: "sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" + popper: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/umd/popper.min.js" + popper_hash: "sha384-zYPOMqeu1DAVkHiLqWBUTcbYfZ8osu1Nd6Z89ify25QV9guujx43ITvfi12/QExE" + popper_esm: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/esm/popper.min.js" + + anchors: + min: 2 + max: 5 -- cgit v1.2.3