Skip to content

Commit bd0f99a

Browse files
authored
Add a bunch more contrib info (#758)
* more contrib info Signed-off-by: Pete Lumbis <[email protected]> * expand build and netlify things Signed-off-by: Pete Lumbis <[email protected]> * Add lots of comments Signed-off-by: Pete Lumbis <[email protected]> * add comments Signed-off-by: Pete Lumbis <[email protected]> * +Algolia, DocSearch, NodeJS Signed-off-by: Pete Lumbis <[email protected]> --------- Signed-off-by: Pete Lumbis <[email protected]>
1 parent 3e9e106 commit bd0f99a

File tree

14 files changed

+531
-109
lines changed

14 files changed

+531
-109
lines changed

config.yaml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@ baseURL: "/"
22
enableRobotsTXT: True
33
languageCode: "en-us"
44
title: "Crossplane"
5+
6+
# directory name in /themes
57
theme: "geekboot"
8+
9+
# enable Lastmod parameter for each page. Placed in an HTML meta tag.
610
enableGitInfo: true
7-
uglyurls: false
11+
12+
# Crossplane docs don't use the Hugo taxonomy or term page kinds.
13+
# Disabling provides a small build speedup
814
disableKinds:
915
- taxonomy
1016
- term
1117

18+
# Enable RSS feeds for sections
1219
outputs:
1320
home:
1421
- html
@@ -18,28 +25,43 @@ outputs:
1825
taxonomy:
1926
term:
2027

21-
28+
# Don't publish the README.md file in the /public folder
2229
ignoreFiles:
2330
- README.md
2431

32+
# build.writeStats is used to optimize CSS.
33+
# the netlify_build.sh script uncomments this.
34+
# The default comment means users don't need Hugo extended for authoring.
2535
build:
2636
# writeStats: true
2737

38+
2839
markup:
2940
goldmark:
3041
renderer:
42+
# Allow mixing markdown and HTML. Required for Vale and some in-line
43+
# styling.
44+
# Okay to run `unsafe: true` since we review .md file inputs
45+
# More info: https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
3146
unsafe: true
3247
tableOfContents:
48+
# Which heading levels to include in the right-side table of contents
3349
startLevel: 1
3450
endLevel: 9
3551
highlight:
52+
# Enable syntax styling for code fence (```) blocks
3653
codeFences: true
54+
# Use classes instead of inline HTML styles for syntax decoration
3755
noClasses: false
56+
# Include line numbers to the left of a code fence box
3857
linenos: true
58+
# Make the line numbers anchor links
3959
anchorLineNos: true
60+
# Don't put the line numbers in tables and only use SPAN elements. For CSS styling.
4061
lineNumbersInTable: false
4162

4263
module:
64+
# Mounts give Hugo access to images and YAML for compile-time processing.
4365
mounts:
4466
- source: content
4567
target: content
@@ -57,30 +79,21 @@ module:
5779
includeFiles:
5880
- "**/api/**.yaml"
5981

82+
# Give Hugo access to environmental variables matching a given regex.
83+
# These give Hugo access to Netlify data to generate proper URLs
6084
security:
6185
funcs:
6286
getenv:
6387
- ^CONTEXT
6488
- ^REVIEW_ID
6589

90+
# Global parameters accessible by any Page
6691
params:
92+
# The current "latest" version. Used in the version dropdown
6793
latest: "1.15"
68-
upboundLink: "https://www.upbound.io/"
69-
slackLink: "https://slack.crossplane.io/"
70-
githubLink: "https://github.com/crossplane/crossplane"
71-
twitterLink: "https://twitter.com/crossplane_io"
72-
forumLink: "https://groups.google.com/forum/#!forum/crossplane-dev"
73-
youtubeLink: "https://www.youtube.com/channel/UC19FgzMBMqBro361HbE46Fw"
74-
podcastLink: "https://www.youtube.com/playlist?list=PL510POnNVaaYFuK-B_SIUrpIonCtLVOzT"
75-
blogLink: "https://blog.crossplane.io/"
76-
communityMeetingLink: "https://github.com/crossplane/crossplane/#get-involved"
77-
cncfLink: "https://www.cncf.io/"
78-
prodFormLink: "https://docs.google.com/forms/d/e/1FAIpQLSev-5clADSdkwi_wiFqBCAECeIoAQDE91chBbeWbvyTjRCeYg/viewform"
79-
infoMailToLink: "mailto:[email protected]"
80-
upboundGithubLink: "https://github.com/upbound"
81-
docs: true
82-
repoLink: "https://github.com/crossplane/crossplane"
8394
anchors:
95+
# Generate heading anchors for any heading between min and max
8496
min: 2
8597
max: 5
98+
# description for search engines.
8699
description: "Crossplane lets you build a control plane with Kubernetes-style declarative and API-driven configuration and management for anything."

content/contribute/code-style-guide.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ for source code used in documentation.
99

1010

1111
## Use fenced code blocks
12-
Use Markdown [fenced code
13-
blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) with
14-
three backticks (` ``` `) for
12+
Use Markdown
13+
[fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks)
14+
with three backticks (` ``` `) for
1515
all command examples and outputs.
1616

1717
````markdown
@@ -24,6 +24,10 @@ Only use a single backtick (`` ` ``) for commands used in a sentence.
2424

2525
For example, the command `kubectl apply` is inside a sentence.
2626

27+
{{< hint "warning" >}}
28+
Vale doesn't validate terms inside single backtick or fenced code blocks.
29+
{{< /hint >}}
30+
2731
## Use language hints for proper highlighting
2832
Hugo attempts to determine the language and apply proper styling, but it's
2933
not always optimized for readability.

content/contribute/contribute.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,23 @@ betaVersion: "1.11"
134134
---
135135
```
136136

137+
#### Descriptions
138+
139+
Hugo uses the `description` field to populate webpage metadata for search
140+
engines.
141+
142+
```yaml
143+
---
144+
title: Compositions
145+
weight: 30
146+
aliases:
147+
- composition
148+
description: "Compositions are a template for creating Crossplane resources"
149+
---
150+
```
151+
152+
The description text isn't displayed anywhere in the docs.
153+
137154
### Headings
138155
Use standard markdown for headings (`#`). The top level heading, a single hash
139156
(`#`) is for the page title. All content headings should be two hashes (`##`) or

0 commit comments

Comments
 (0)