Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bunch more contrib info #758

Merged
merged 5 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 30 additions & 17 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ baseURL: "/"
enableRobotsTXT: True
languageCode: "en-us"
title: "Crossplane"

# directory name in /themes
theme: "geekboot"

# enable Lastmod parameter for each page. Placed in an HTML meta tag.
enableGitInfo: true
uglyurls: false

# Crossplane docs don't use the Hugo taxonomy or term page kinds.
# Disabling provides a small build speedup
disableKinds:
- taxonomy
- term

# Enable RSS feeds for sections
outputs:
home:
- html
Expand All @@ -18,28 +25,43 @@ outputs:
taxonomy:
term:


# Don't publish the README.md file in the /public folder
ignoreFiles:
- README.md

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


markup:
goldmark:
renderer:
# Allow mixing markdown and HTML. Required for Vale and some in-line
# styling.
# Okay to run `unsafe: true` since we review .md file inputs
# More info: https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
unsafe: true
tableOfContents:
# Which heading levels to include in the right-side table of contents
startLevel: 1
endLevel: 9
highlight:
# Enable syntax styling for code fence (```) blocks
codeFences: true
# Use classes instead of inline HTML styles for syntax decoration
noClasses: false
# Include line numbers to the left of a code fence box
linenos: true
# Make the line numbers anchor links
anchorLineNos: true
# Don't put the line numbers in tables and only use SPAN elements. For CSS styling.
lineNumbersInTable: false

module:
# Mounts give Hugo access to images and YAML for compile-time processing.
mounts:
- source: content
target: content
Expand All @@ -57,30 +79,21 @@ module:
includeFiles:
- "**/api/**.yaml"

# Give Hugo access to environmental variables matching a given regex.
# These give Hugo access to Netlify data to generate proper URLs
security:
funcs:
getenv:
- ^CONTEXT
- ^REVIEW_ID

# Global parameters accessible by any Page
params:
# The current "latest" version. Used in the version dropdown
latest: "1.15"
upboundLink: "https://www.upbound.io/"
slackLink: "https://slack.crossplane.io/"
githubLink: "https://github.com/crossplane/crossplane"
twitterLink: "https://twitter.com/crossplane_io"
forumLink: "https://groups.google.com/forum/#!forum/crossplane-dev"
youtubeLink: "https://www.youtube.com/channel/UC19FgzMBMqBro361HbE46Fw"
podcastLink: "https://www.youtube.com/playlist?list=PL510POnNVaaYFuK-B_SIUrpIonCtLVOzT"
blogLink: "https://blog.crossplane.io/"
communityMeetingLink: "https://github.com/crossplane/crossplane/#get-involved"
cncfLink: "https://www.cncf.io/"
prodFormLink: "https://docs.google.com/forms/d/e/1FAIpQLSev-5clADSdkwi_wiFqBCAECeIoAQDE91chBbeWbvyTjRCeYg/viewform"
infoMailToLink: "mailto:[email protected]"
upboundGithubLink: "https://github.com/upbound"
docs: true
repoLink: "https://github.com/crossplane/crossplane"
anchors:
# Generate heading anchors for any heading between min and max
min: 2
max: 5
# description for search engines.
description: "Crossplane lets you build a control plane with Kubernetes-style declarative and API-driven configuration and management for anything."
10 changes: 7 additions & 3 deletions content/contribute/code-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ for source code used in documentation.


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

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

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

{{< hint "warning" >}}
Vale doesn't validate terms inside single backtick or fenced code blocks.
{{< /hint >}}

## Use language hints for proper highlighting
Hugo attempts to determine the language and apply proper styling, but it's
not always optimized for readability.
Expand Down
17 changes: 17 additions & 0 deletions content/contribute/contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,23 @@ betaVersion: "1.11"
---
```

#### Descriptions

Hugo uses the `description` field to populate webpage metadata for search
engines.

```yaml
---
title: Compositions
weight: 30
aliases:
- composition
description: "Compositions are a template for creating Crossplane resources"
---
```

The description text isn't displayed anywhere in the docs.

### Headings
Use standard markdown for headings (`#`). The top level heading, a single hash
(`#`) is for the page title. All content headings should be two hashes (`##`) or
Expand Down
Loading
Loading