Add robots.txt and staging config file (#2184)

pull/2186/head
Scott Anderson 2021-02-16 16:58:55 -07:00 committed by GitHub
parent 96c5ce9596
commit 4cea66d5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

30
config.staging.toml Normal file
View File

@ -0,0 +1,30 @@
baseURL = "https://test2.docs.influxdata.com/"
languageCode = "en-us"
title = "InfluxDB Documentation"
# Git history information for lastMod-type functionality
enableGitInfo = true
# Syntax Highlighting
pygmentsCodefences = true
pygmentsUseClasses = true
# Preserve case in article tags
preserveTaxonomyNames = true
# Generate a robots.txt
enableRobotsTXT = true
# Markdown rendering options
[blackfriday]
hrefTargetBlank = true
smartDashes = false
[taxonomies]
"influxdb/v2.0/tag" = "influxdb/v2.0/tags"
"influxdb/cloud/tag" = "influxdb/cloud/tags"
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true

View File

@ -12,6 +12,9 @@ pygmentsUseClasses = true
# Preserve case in article tags
preserveTaxonomyNames = true
# Generate a robots.txt
enableRobotsTXT = true
# Markdown rendering options
[blackfriday]
hrefTargetBlank = true

1
layouts/robots.txt Normal file
View File

@ -0,0 +1 @@
User-agent: *{{ if ne .Site.BaseURL "https://docs.influxdata.com/" }} Disallow: /{{ end }}