Hinode logo
  • About 
  • Docs 
  • Components 
  • Guides 
  • Releases 
  •  
  •    Toggle theme
    •   Light
    •   Dark
    •   Auto
  •  
    •   Light
    •   Dark
    •   Auto
Docs
    • Introduction
    • Commands
    • Hosting and deployment
    • Upgrading
    • Contribute
    • Troubleshooting
    • Content management
    • Content organization
    • Typography
    • Links and cross-references
    • Images and figures
    • Tables
    • Icons
    • Layout
    • Colors
    • Color modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Badge
    • Breadcrumb
    • Button
    • Button group
    • Card
    • Card group
    • Carousel
    • Collapse
    • Command prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and tabs
    • Release
    • Spinner
    • Spinner
    • Sub
    • Sup
    • Timeline
    • Toast
    • Tooltip
    • Overview
    • Styles
    • Scripts
    • Icons
    • Module development
    • Server headers
    • Server-side redirection
    • Credits
    • License
    • Introduction
    • Commands
    • Hosting and deployment
    • Upgrading
    • Contribute
    • Troubleshooting
    • Content management
    • Content organization
    • Typography
    • Links and cross-references
    • Images and figures
    • Tables
    • Icons
    • Layout
    • Colors
    • Color modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Badge
    • Breadcrumb
    • Button
    • Button group
    • Card
    • Card group
    • Carousel
    • Collapse
    • Command prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and tabs
    • Release
    • Spinner
    • Spinner
    • Sub
    • Sup
    • Timeline
    • Toast
    • Tooltip
    • Overview
    • Styles
    • Scripts
    • Icons
    • Module development
    • Server headers
    • Server-side redirection
    • Credits
    • License

Documentation

Share via
Hinode
Link copied to clipboard

Configure versioned documentation

On this page
 

  • Basic configuration
  • Versioned documentation

Hinodes supports the configuration of documentation pages. You can either maintain a single content directory, or add versioned documentation.

Basic configuration  

The configuration of the documentation pages is set in the docs section of the site parameters. The folllowing settings are supported:

SettingDefaultDescription
version-Default version to use in documentation links, only applicable when no other versions have been defined (see next paragraph).
basePath-Base path to use for file references.
github-Repository URL for the docs site, overrides schema/github in config/_default/params.toml.
release-Release url for the docs site, e.g. https://github.com/gethinode/hinode/releases/tag/. This setting is used by the release shortcode and timeline shortcode.

The below configuration shows the default configuration set in config/_default/params.toml.

  • config/_default/params.toml
[docs]
    basePath = "_vendor/github.com/gethinode/hinode"
    github = "https://github.com/gethinode/docs"
    release = "https://github.com/gethinode/hinode/releases/tag/"
...

Versioned documentation  

Use the following extended settings in the docs section of the site parameters to enable versioned documentation:

SettingDefaultDescription
contentPath-Defines the path (usually a section) relative to the content folder that maintains the documentation. Each release is expected to be stored in a separate folder within this folder. For example, the documentation with version 1.0 is expected to be maintained in content/en/docs/1.0 (when using English as default language).
overview-If set, adds a version overview link to the version switcher in the main navigation, for example /docs/versions/.
latest-Defines the latest available version, used by checkVersion to validate if a version is current.
checkVersionfalseIf set, adds an alert to inform your users that they are not looking at the latest version of the available documentation. Specify the latest available version in latest. The alert links to the latestURL.
latestURL-Link used by checkVersion when a newer version has been detected, e.g. https://version-demo.gethinode.com/docs/.

Add each available version to [[docs.releases]]. The releases support the following arguments:

SettingDefaultDescription
label-Name of the release version, e.g. v1.0. When url is empty, the label is used for grouping instead.
url-Local URL of the release, e.g. /docs/1.0/.
latestfalseIf set, adds the suffix latest to the label in the version switcher.
redirect-If set, generates a server-side rewrite rule. You will need to configure server-side redirection too.
Last updated: July 3, 2023 • Add link to timeline shortcode (497773b)
On this page
  • Basic configuration
  • Versioned documentation
Documentation
Documentation
Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5.
Code licensed MIT, docs CC BY-NC 4.0
Currently v0.21.0-beta9
 
Links
Home 
About 
Docs 
Components 
Releases 
Guides
Getting started 
Developing modules 
Optimization 
Versioning 
Community
Issues  
Discussions  
Contribute 
Hinode
Code copied to clipboard