1
0
mirror of https://git.FreeBSD.org/doc.git synced 2026-06-02 11:25:20 +00:00
Files
Fernando Apesteguía 756aa08ce1 [website]: Allow plain html content
In preparation for the update to 0.162.0 which disallows html directly.
Narrow it down to html and asciidoc
2026-05-29 20:15:47 +02:00

67 lines
1.6 KiB
TOML

# FreeBSD website
baseURL = "https://www.freebsd.org/"
title = "The FreeBSD Project"
copyright = "BSD 2-clause 'Simplified' License"
DefaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
theme = "beastie"
disableKinds = [ "taxonomy" ]
disablePathToLower = true
authors = [ "carlavilla@FreeBSD.org" ]
ignoreFiles = [ "\\.po$" ]
enableRobotsTXT = true
enableGitInfo = true
preserveTOC = true
[markup.asciidocExt]
preserveTOC = true
extensions = ["man-macro", "inter-document-references-macro", "sectnumoffset-treeprocessor", "packages-macro", "git-macro"]
[security]
allowContent = ['^text/html$', '^text/asciidoc$']
enableInlineShortcodes = false
[security.exec]
allow = ["^dart-sass-embedded$", "^go$", "^git$", "^npx$", "^postcss$", "^asciidoctor$"]
osEnv = ["(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|LOAD_PATH|RUBYLIB)$"]
[security.funcs]
getenv = ["^HUGO_"]
[security.http]
methods = ["(?i)GET|POST"]
urls = [".*"]
staticDir = ["static", "shared"]
[outputs]
home = [ "HTML" ]
page = [ "HTML" ]
section = [ "HTML", "RSS", "Calendar" ]
[outputFormats]
[outputFormats.Calendar]
BaseName = "calendar"
IsHTML = true
IsPlainText = false
[outputFormats.RSS]
MediaType = "application/rss+xml"
BaseName = "feed"
IsHTML = true
IsPlainText = false
noUgly = true
Rel = "alternate"
[languages]
[languages.en]
contentDir = "content/en"
label = "English"
weight = 1
[languages.ru]
contentDir = "content/ru"
label = "Russian"
weight = 2
[languages.zh-tw]
contentDir = "content/zh-tw"
label = "繁體中文"
weight = 3