Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'

```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```

Closes #11925
This commit is contained in:
Bjørn Erik Pedersen
2024-01-27 10:48:33 +01:00
1158 changed files with 64103 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
[en]
contentDir = "content/en"
languageName = "English"
weight = 1

View File

@@ -0,0 +1,40 @@
defaultMarkdownHandler = "goldmark"
[goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = true
[goldmark.extensions.passthrough]
enable = true
[goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]
[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

View File

@@ -0,0 +1,152 @@
[[docs]]
identifier = 'about'
name = 'About Hugo'
pageRef = '/about/'
weight = 10
[[docs]]
name = 'Installation'
weight = 20
identifier = 'installation'
pageRef = '/installation/'
[[docs]]
name = 'Getting started'
weight = 30
identifier = 'getting-started'
pageRef = '/getting-started/'
post = 'break'
[[docs]]
name = 'Content management'
weight = 40
identifier = 'content-management'
post = 'expanded'
pageRef = '/content-management/'
[[docs]]
name = 'Templates'
weight = 50
identifier = 'templates'
pageRef = '/templates/'
[[docs]]
name = 'Functions'
weight = 60
identifier = 'functions'
pageRef = '/functions/'
[[docs]]
name = 'Methods'
weight = 70
identifier = 'methods'
pageRef = '/methods/'
[[docs]]
name = 'Quick reference'
weight = 80
identifier = 'quick-reference'
pageRef = '/quick-reference/'
[[docs]]
name = 'Variables'
weight = 85
identifier = 'variables'
pageRef = '/variables/'
[[docs]]
name = 'Hugo Modules'
weight = 90
identifier = 'modules'
pageRef = '/hugo-modules/'
[[docs]]
name = 'Hugo Pipes'
weight = 100
identifier = 'hugo-pipes'
pageRef = '/hugo-pipes/'
[[docs]]
name = 'CLI'
weight = 110
post = 'break'
identifier = 'commands'
pageRef = '/commands/'
# Low level items
[[docs]]
name = 'Troubleshooting'
weight = 120
identifier = 'troubleshooting'
pageRef = '/troubleshooting/'
[[docs]]
name = 'Developer tools'
weight = 130
identifier = 'developer-tools'
pageRef = '/tools/'
[[docs]]
name = 'Hosting and deployment'
weight = 140
identifier = 'hosting-and-deployment'
pageRef = '/hosting-and-deployment/'
[[docs]]
name = 'Contribute'
weight = 150
post = 'break'
identifier = 'contribute'
pageRef = '/contribute/'
######## QUICKLINKS
[[quicklinks]]
identifier = 'fundamentals'
name = 'Fundamentals'
pageRef = '/tags/fundamentals/'
weight = 1
######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES
[[global]]
name = 'News'
weight = 1
identifier = 'news'
pageRef = '/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'
pageRef = '/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'

View File

@@ -0,0 +1,28 @@
description = "The worlds 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"
## Discuss Forum URL
forum = "https://discourse.gohugo.io/"
## Google Tag Manager
gtmid = ""
## Setting this to true will load layouts/partials/math.html on every page on the site.
math = false
# 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"
[social]
twitter = "GoHugoIOv2"
[render_hooks.link]
errorLevel = 'warning' # ignore (default), warning, or error (fails the build)

View File

@@ -0,0 +1,9 @@
enableInlineShortcodes = false
[funcs]
getenv = ['^HUGO_', '^REPOSITORY_URL$', '^BRANCH$']
[http]
methods = ['(?i)GET|POST']
urls = ['.*']