Skip to content

Commit 1b031b7

Browse files
authored
hugo.yaml from toml config, preserving comments (#299)
1 parent 5b4673e commit 1b031b7

File tree

4 files changed

+228
-6
lines changed

4 files changed

+228
-6
lines changed

.cspell.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# cSpell:ignore textlintrc
2+
# For settings, see
3+
# https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/
4+
version: '0.2'
5+
caseSensitive: true
6+
words:
7+
- Docsy
8+
- Goldydocs

.vscode/settings.json

-6
This file was deleted.

hugo.toml hugo-disabled.toml

File renamed without changes.

hugo.yaml

+220
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
baseURL: https://example.docsy.dev
2+
title: Goldydocs
3+
4+
# cSpell:ignore goldmark github hugo readingtime docsy subdir lastmod pygments linenos catmullrom norsk gu
5+
6+
# Language settings
7+
contentDir: content/en
8+
defaultContentLanguage: en
9+
defaultContentLanguageInSubdir: false
10+
# Useful when translating.
11+
enableMissingTranslationPlaceholders: true
12+
13+
enableRobotsTXT: true
14+
15+
# Will give values to .Lastmod etc.
16+
enableGitInfo: true
17+
18+
# Comment out to enable taxonomies in Docsy
19+
# disableKinds: [taxonomy, taxonomyTerm]
20+
21+
# You can add your own taxonomies
22+
taxonomies:
23+
tag: tags
24+
category: categories
25+
26+
# Highlighting config
27+
pygmentsCodeFences: true
28+
pygmentsUseClasses: false
29+
# Use the new Chroma Go highlighter in Hugo.
30+
pygmentsUseClassic: false
31+
# pygmentsOptions: "linenos=table"
32+
# See https://help.farbox.com/pygments.html
33+
pygmentsStyle: tango
34+
35+
# Configure how URLs look like per section.
36+
permalinks:
37+
blog: /:section/:year/:month/:day/:slug/
38+
39+
# Image processing configuration.
40+
imaging:
41+
resampleFilter: CatmullRom
42+
quality: 75
43+
anchor: smart
44+
45+
# Language configuration
46+
languages:
47+
en:
48+
languageName: English
49+
title: Goldydocs
50+
params:
51+
description: A Docsy example site
52+
# cSpell:disable
53+
'no':
54+
languageName: Norsk
55+
contentDir: content/no
56+
title: Gulldoks
57+
params:
58+
description: Docsy er operativsystem for skyen
59+
time_format_default: 02.01.2006
60+
time_format_blog: 02.01.2006
61+
fa:
62+
languageDirection: rtl
63+
languageName: فارسی
64+
contentDir: content/fa
65+
title: اسناد گلدی
66+
params:
67+
description: یک نمونه برای پوسته داکسی
68+
time_format_default: 2006.01.02
69+
time_format_blog: 2006.01.02
70+
# cSpell:enable
71+
72+
markup:
73+
goldmark:
74+
parser:
75+
attribute:
76+
block: true
77+
renderer:
78+
unsafe: true
79+
highlight:
80+
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
81+
style: tango
82+
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
83+
# guessSyntax: true
84+
85+
# Everything below this are Site Params
86+
87+
# Comment out if you don't want the "print entire section" link enabled.
88+
outputs:
89+
section: [HTML, print, RSS]
90+
91+
params:
92+
taxonomy:
93+
# set taxonomyCloud = [] to hide taxonomy clouds
94+
taxonomyCloud: [tags, categories]
95+
96+
# If used, must have same length as taxonomyCloud
97+
taxonomyCloudTitle: [Tag Cloud, Categories]
98+
99+
# set taxonomyPageHeader = [] to hide taxonomies on the page headers
100+
taxonomyPageHeader: [tags, categories]
101+
102+
privacy_policy: https://policies.google.com/privacy
103+
104+
# First one is picked as the Twitter card image if not set on page.
105+
# images: [images/project-illustration.png]
106+
107+
# Menu title if your navbar has a versions selector to access old versions of your site.
108+
# This menu appears only if you have at least one [params.versions] set.
109+
version_menu: Releases
110+
111+
# Flag used in the "version-banner" partial to decide whether to display a
112+
# banner on every page indicating that this is an archived version of the docs.
113+
# Set this flag to "true" if you want to display the banner.
114+
archived_version: false
115+
116+
# The version number for the version of the docs represented in this doc set.
117+
# Used in the "version-banner" partial to display a version number for the
118+
# current doc set.
119+
version: 0.0
120+
121+
# A link to latest version of the docs. Used in the "version-banner" partial to
122+
# point people to the main doc site.
123+
url_latest_version: https://example.com
124+
125+
# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
126+
github_repo: https://github.com/google/docsy-example
127+
128+
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
129+
github_project_repo: https://github.com/google/docsy
130+
131+
# Specify a value here if your content directory is not in your repo's root directory
132+
# github_subdir: ""
133+
134+
# Uncomment this if your GitHub repo does not have "main" as the default branch,
135+
# or specify a new value if you want to reference another branch in your GitHub links
136+
github_branch: main
137+
138+
# Google Custom Search Engine ID. Remove or comment out to disable search.
139+
gcs_engine_id: d72aa9b2712488cc3
140+
141+
# Enable Lunr.js offline search
142+
offlineSearch: false
143+
144+
# Enable syntax highlighting and copy buttons on code blocks with Prism
145+
prism_syntax_highlighting: false
146+
147+
copyright:
148+
authors: Docsy Authors | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0) |
149+
from_year: 2018
150+
151+
# User interface configuration
152+
ui:
153+
# Set to true to disable breadcrumb navigation.
154+
breadcrumb_disable: false
155+
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top navbar
156+
navbar_logo: true
157+
# Set to true if you don't want the top navbar to be translucent when over a `block/cover`, like on the homepage.
158+
navbar_translucent_over_cover_disable: false
159+
# Enable to show the side bar menu in its compact state.
160+
sidebar_menu_compact: false
161+
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
162+
sidebar_search_disable: false
163+
164+
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
165+
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
166+
# If you want this feature, but occasionally need to remove the "Feedback" section from a single page,
167+
# add "hide_feedback: true" to the page's front matter.
168+
feedback:
169+
enable: true
170+
# The responses that the user sees after clicking "yes" (the page was helpful) or "no" (the page was not helpful).
171+
'yes': >-
172+
Glad to hear it! Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.
173+
'no': >-
174+
Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.
175+
176+
# Adds a reading time to the top of each doc.
177+
# If you want this feature, but occasionally need to remove the Reading time from a single page,
178+
# add "hide_readingtime: true" to the page's front matter
179+
readingtime:
180+
enable: false
181+
182+
links:
183+
# End user relevant links. These will show up on left side of footer and in the community page if you have one.
184+
user:
185+
- name: User mailing list
186+
url: https://example.org/mail
187+
icon: fa fa-envelope
188+
desc: Discussion and help from your fellow users
189+
- name: Twitter
190+
url: https://example.org/twitter
191+
icon: fab fa-twitter
192+
desc: Follow us on Twitter to get the latest news!
193+
- name: Stack Overflow
194+
url: https://example.org/stack
195+
icon: fab fa-stack-overflow
196+
desc: Practical questions and curated answers
197+
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
198+
developer:
199+
- name: GitHub
200+
url: https://github.com/google/docsy
201+
icon: fab fa-github
202+
desc: Development takes place here!
203+
- name: Slack
204+
url: https://example.org/slack
205+
icon: fab fa-slack
206+
desc: Chat with other project developers
207+
- name: Developer mailing list
208+
url: https://example.org/mail
209+
icon: fa fa-envelope
210+
desc: Discuss development issues around the project
211+
212+
module:
213+
# Uncomment the next line to build and serve using local docsy clone declared in the named Hugo workspace:
214+
# workspace: docsy.work
215+
hugoVersion:
216+
extended: true
217+
min: 0.110.0
218+
imports:
219+
- path: github.com/google/docsy
220+
disable: false

0 commit comments

Comments
 (0)