diff options
Diffstat (limited to 'docs/config')
-rw-r--r-- | docs/config/_default/config.toml | 85 | ||||
-rw-r--r-- | docs/config/_default/languages.toml | 4 | ||||
-rw-r--r-- | docs/config/_default/markup.toml | 31 | ||||
-rw-r--r-- | docs/config/_default/menus/menus.en.toml | 142 | ||||
-rw-r--r-- | docs/config/_default/params.toml | 23 | ||||
-rw-r--r-- | docs/config/_default/security.toml | 13 | ||||
-rw-r--r-- | docs/config/development/params.toml | 1 | ||||
-rw-r--r-- | docs/config/production/config.toml | 6 | ||||
-rw-r--r-- | docs/config/production/params.toml | 2 |
9 files changed, 307 insertions, 0 deletions
diff --git a/docs/config/_default/config.toml b/docs/config/_default/config.toml new file mode 100644 index 000000000..731233310 --- /dev/null +++ b/docs/config/_default/config.toml @@ -0,0 +1,85 @@ +baseURL = "https://gohugo.io/" +defaultContentLanguage = "en" +enableEmoji = true +googleAnalytics = "G-MBZGKNMDWC" +ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] +languageCode = "en-us" +paginate = 100 +pluralizeListTitles = false +timeZone = "Europe/Oslo" +title = "Hugo" + +# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below). +disableAliases = true + +[minify] +[minify.tdewolff] +[minify.tdewolff.html] +keepWhitespace = true + +[module] +[module.hugoVersion] +min = "0.56.0" +[[module.imports]] +path = "github.com/gohugoio/gohugoioTheme" + +[outputs] +home = [ "HTML", "RSS", "REDIR", "HEADERS" ] +section = [ "HTML", "RSS"] + +[mediaTypes] +[mediaTypes."text/netlify"] +delimiter = "" + +[outputFormats] +[outputFormats.REDIR] +mediatype = "text/netlify" +baseName = "_redirects" +isPlainText = true +notAlternative = true +[outputFormats.HEADERS] +mediatype = "text/netlify" +baseName = "_headers" +isPlainText = true +notAlternative = true + +[caches] +[caches.getjson] +dir = ":cacheDir/:project" +maxAge = -1 +[caches.getcsv] +dir = ":cacheDir/:project" +maxAge = -1 +[caches.images] +dir = ":cacheDir/images" +maxAge = "1440h" +[caches.assets] +dir = ":resourceDir/_gen" +maxAge = -1 + +[related] +threshold = 80 +includeNewer = true +toLower = false +[[related.indices]] +name = "keywords" +weight = 100 +[[related.indices]] +name = "date" +weight = 10 +pattern = "2006" + +[social] +twitter = "GoHugoIO" + +[imaging] +# See https://github.com/disintegration/imaging +# CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots. +# Note that you can also set this per image processing. +resampleFilter = "CatmullRom" +# Default JPEG quality setting. Default is 75. +quality = 75 +anchor = "smart" + +[taxonomies] +category = "categories" diff --git a/docs/config/_default/languages.toml b/docs/config/_default/languages.toml new file mode 100644 index 000000000..cfddb5398 --- /dev/null +++ b/docs/config/_default/languages.toml @@ -0,0 +1,4 @@ +[en] +contentDir = "content/en" +languageName = "English" +weight = 1 diff --git a/docs/config/_default/markup.toml b/docs/config/_default/markup.toml new file mode 100644 index 000000000..fb68fae23 --- /dev/null +++ b/docs/config/_default/markup.toml @@ -0,0 +1,31 @@ +defaultMarkdownHandler = "goldmark" + +[goldmark] +[goldmark.extensions] +definitionList = true +footnote = true +linkify = true +strikethrough = true +table = true +taskList = true +typographer = true +[goldmark.parser] +autoHeadingID = true +autoHeadingIDType = "github" +[goldmark.parser.attribute] +block = true +title = true +[goldmark.renderer] +hardWraps = false +unsafe = false +xhtml = false + +[highlight] +style = "trac" +lineNumbersInTable = true +noClasses = false + +[tableOfContents] +endLevel = 2 +ordered = false +startLevel = 2
\ No newline at end of file diff --git a/docs/config/_default/menus/menus.en.toml b/docs/config/_default/menus/menus.en.toml new file mode 100644 index 000000000..7a956a47f --- /dev/null +++ b/docs/config/_default/menus/menus.en.toml @@ -0,0 +1,142 @@ +[[docs]] + name = "About Hugo" + weight = 10 + identifier = "about" + url = "/about/" + +[[docs]] + name = "Installation" + weight = 20 + identifier = "installation" + url = "/installation/" + +[[docs]] + name = "Getting Started" + weight = 30 + identifier = "getting-started" + url = "/getting-started/" + +[[docs]] + name = "Hugo Modules" + weight = 40 + identifier = "modules" + post = "break" + url = "/hugo-modules/" + +# Core menus + +[[docs]] + name = "Content Management" + weight = 50 + identifier = "content-management" + post = "expanded" + url = "/content-management/" + +[[docs]] + name = "Templates" + weight = 60 + identifier = "templates" + url = "/templates/" + +[[docs]] + name = "Functions" + weight = 70 + identifier = "functions" + url = "/functions/" + +[[docs]] + name = "Variables" + weight = 80 + identifier = "variables" + url = "/variables/" + +[[docs]] + name = "Hugo Pipes" + weight = 90 + identifier = "pipes" + url = "/hugo-pipes/" + +[[docs]] + name = "CLI" + weight = 100 + post = "break" + identifier = "commands" + url = "/commands/" + +# Low level items + +[[docs]] + name = "Troubleshooting" + weight = 110 + identifier = "troubleshooting" + url = "/troubleshooting/" + +[[docs]] + name = "Tools" + weight = 120 + identifier = "tools" + url = "/tools/" + +[[docs]] + name = "Hosting & Deployment" + weight = 130 + identifier = "hosting-and-deployment" + url = "/hosting-and-deployment/" + +[[docs]] + name = "Contribute" + weight = 140 + post = "break" + identifier = "contribute" + url = "/contribute/" + +######## QUICKLINKS + +[[quicklinks]] + name = "Fundamentals" + weight = 1 + identifier = "fundamentals" + url = "/tags/fundamentals/" + +######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES + +[[global]] + name = "News" + weight = 1 + identifier = "news" + url = "/news/" + +[[global]] + name = "Docs" + weight = 5 + identifier = "docs" + url = "/documentation/" + +[[global]] + name = "Themes" + weight = 10 + identifier = "themes" + url = "https://themes.gohugo.io/" + +[[global]] + name = "Showcase" + weight = 20 + identifier = "showcase" + url = "/showcase/" + +# Anything with a weight > 100 gets an external icon + +[[global]] + name = "Community" + weight = 150 + icon = true + identifier = "community" + post = "external" + url = "https://discourse.gohugo.io/" + +[[global]] + name = "GitHub" + weight = 200 + identifier = "github" + post = "external" + url = "https://github.com/gohugoio/hugo" diff --git a/docs/config/_default/params.toml b/docs/config/_default/params.toml new file mode 100644 index 000000000..f123287b2 --- /dev/null +++ b/docs/config/_default/params.toml @@ -0,0 +1,23 @@ + +description = "The world’s fastest framework for building websites" +## Setting this to true will add a "noindex" to *EVERY* page on the site.. +removefromexternalsearch = false +## Gh repo for site footer (include trailing slash) +ghrepo = "https://github.com/gohugoio/hugoDocs/" +## GH Repo for filing a new issue +github_repo = "https://github.com/gohugoio/hugo/issues/new" +### Edit content repo (set to automatically enter "edit" mode; this is good for "improve this page" links) +ghdocsrepo = "https://github.com/gohugoio/hugoDocs/tree/master/docs" +## Gitter URL +gitter = "https://gitter.im/spf13/hugo" +## Discuss Forum URL +forum = "https://discourse.gohugo.io/" +## Google Tag Manager +gtmid = "" + +# First one is picked as the Twitter card image if not set on page. +images = ["images/gohugoio-card.png"] + +flex_box_interior_classes = "flex-auto w-100 w-40-l mr3 mb3 bg-white ba b--moon-gray nested-copy-line-height" + +#sidebar_direction = "sidebar_left"
\ No newline at end of file diff --git a/docs/config/_default/security.toml b/docs/config/_default/security.toml new file mode 100644 index 000000000..2be3f1ba8 --- /dev/null +++ b/docs/config/_default/security.toml @@ -0,0 +1,13 @@ + + enableInlineShortcodes = false + + [exec] + allow = ['^go$'] + osEnv = ['^PATH$'] + + [funcs] + getenv = ['^HUGO_', '^REPOSITORY_URL$', '^BRANCH$'] + + [http] + methods = ['(?i)GET|POST'] + urls = ['.*'] diff --git a/docs/config/development/params.toml b/docs/config/development/params.toml new file mode 100644 index 000000000..4cd7314ab --- /dev/null +++ b/docs/config/development/params.toml @@ -0,0 +1 @@ +# Params for development (server mode) diff --git a/docs/config/production/config.toml b/docs/config/production/config.toml new file mode 100644 index 000000000..a54fe5669 --- /dev/null +++ b/docs/config/production/config.toml @@ -0,0 +1,6 @@ +# Config for production + +# This is turned off in development as it is relatively slow. +# This is needed to get accurate lastMod and Git commit info +# on the docs pages. +enableGitInfo = true
\ No newline at end of file diff --git a/docs/config/production/params.toml b/docs/config/production/params.toml new file mode 100644 index 000000000..d0071fe65 --- /dev/null +++ b/docs/config/production/params.toml @@ -0,0 +1,2 @@ +# Params for production + |