This is the source for the Hugo module, used in Deckhouse documentation websites of the Deckhouse products.
Some ideas and code snippets are borrowed from the Docsy Hugo theme.
Add it in your hugo configuration.
For the local development, you can use the following replace directive in your go.mod:
replace github.com/deckhouse/hugo-web-product-module => ../hugo-web-product-moduleor use use the modules configuration replacements option.
The Hugo version assumed to be 0.150.1. But it maybe will work with higher versions as well.
- Use the folder
project_templateas a template for your new Deckhouse product website. - Add content in the
contentfolder and customize the configuration in theconfigfolder.- Define product name and baseURL the
config/_default/hugo.yamlfile.
- Define product name and baseURL the
...coming soon...
The project uses Hugo SSG and the hugo-web-product-module module for a theme.
The documentation content is written in Markdown with some custom shortcodes.
params:
relatedLinks:
- title: "Link"
url: link.html
- title: "External link"
url: "http://domain/external/link.html"
- url: /modules/monitoring-kubernetes/There are following levels of alerts: info, warning, danger. The default level is info.
{{< alert level="warning" >}}
The warning message...
{{< /alert >}}{{< tabs >}}
{{% tab "MacOS" %}} # MacOS Content {{% /tab %}}
{{% tab "Linux" %}} # Linux Content {{% /tab %}}
{{% tab "Windows" %}} # Windows Content {{% /tab %}}
{{< /tabs >}}Translates content based on the current language using the translations defined in the i18n folder.
{{< translate "version_of_module" >}}{{% details "Summary..."%}}
## Markdown content
Markdown content...
{{% /details %}}The same as the details shortcode, but used in templates.
{{ partial "details" ( dict "summary" "Summary..." "content" "Markdown content..." ) }}
The same as the alert shortcode, but used in templates.
{{ partial "alert" ( dict "level" "warning" "content" "Markdown content..." ) }}