A theme for Hugo designed for documentation
Find a file
mirisbowring 6cfd61e0f6
Navigation home option (#381)
* enabled mermaid by default

* implemented logic to use internal oder cdn mermaid

* added english documentation

* added french translation for the mermaid options

* Removed useless test print

* Hugo does not use upper case letters in params

* fixed false sample link

* improved mermaid pages

* fixed always load mermaid if no frontmatter specified

* applied 3 new params to default config

* Implemented Home Button logic

* Applied default style

* applied same landingpage ref to logo partials

* added sample image, how the button will looks like

* added en documentation on how to configure the button

* translated home button configuration to french via deepl

* applied home button style to theme variants

* set button disabled by default

* fixed mermaid samples

* removed obsolete css files

* changed default version of mermaid cdn

* renamed mermaidURL to customMermaidURL and removed css link

* improved mermaid configuration description

Co-authored-by: Arthur Ferdinand Lindner <Arthur-Ferdinand.Lindner@Telekom.de>
Co-authored-by: Arthur Ferdinand Lindner <arthur.lindner@outlook.de>
2020-10-21 17:53:27 +01:00
archetypes TranslationBaseName replaced for Name on archetypes template 2018-05-27 13:29:39 -04:00
exampleSite Navigation home option (#381) 2020-10-21 17:53:27 +01:00
i18n Add Chinese i18n items for this theme 2019-12-04 11:26:16 +08:00
images [ImgBot] Optimize images 2019-03-15 16:47:53 +00:00
layouts Navigation home option (#381) 2020-10-21 17:53:27 +01:00
static Navigation home option (#381) 2020-10-21 17:53:27 +01:00
.editorconfig Add .editorconfig 2019-03-15 16:10:45 +00:00
.gitignore remove link in docs because of error 2017-08-20 23:43:45 +02:00
.grenrc.yml Ship tag 2.2.0 2019-01-28 01:08:48 +00:00
CHANGELOG.md Ship tag 2.5.0 2020-06-01 15:43:31 +01:00
LICENSE.md add @vjeantet to copyright 2017-08-21 01:25:26 +02:00
netlify.toml Update netlify baseurl fixes #438 2020-09-10 16:02:31 +01:00
README.md Initial instructions on releasing with gren 2019-09-04 22:47:55 +01:00
theme.toml HTTPS links 2018-12-07 16:14:14 +09:00
wercker.yml Fix/wercker (#178) 2018-10-10 19:14:04 +02:00

Hugo Learn Theme

This repository contains a theme for Hugo, based on great Grav Learn Theme.

Visit the theme documentation to see what is going on. It is actually built with this theme.

wercker status FOSSA Status

Main features

  • Automatic Search
  • Multilingual mode
  • Unlimited menu levels
  • Automatic next/prev buttons to navigate through menu entries
  • Image resizing, shadow…
  • Attachments files
  • List child pages
  • Mermaid diagram (flowchart, sequence, gantt)
  • Customizable look and feel and themes variants
  • Buttons, Tip/Note/Info/Warning boxes, Expand

Installation

Navigate to your themes folder in your Hugo site and use the following commands:

cd themes/
git clone https://github.com/matcornic/hugo-theme-learn.git

Check that your Hugo version is minimum 0.25 with hugo version.

Overview

Usage

Download old versions (prior to 2.0.0)

If you need old version for compatibility purpose, either download theme source code from releases or use the right git tag. For example, with 1.1.0

cd themes/hugo-theme-learn
git checkout tags/1.1.0

For both solutions, the documentation is available at https://github.com/matcornic/hugo-theme-learn/releases/download/1.1.0/hugo-learn-doc-1.1.0.zip

Credits

Many thanks to @vjeantet for the fork docdock. The v2 of this theme is mainly based on his work !

License

FOSSA Status

Releasing

Somewhat work-in-progress steps to release with gren

  • Check all MRs assigned to the milestone are closed or pushed back to another release

  • Close the milestone

  • Check merged MRs on the milestone have a tag (Bug, Enhancement, etc.)

  • Tag and push the repo

    git tag <tag>
    git push origin <tag>
    
  • Generate CHANGELOG.md with gren

    gren changelog  --override --generate --tags=all
    
  • Fix the date for the current release in CHANGELOG.md

  • Add the changelog to git and update the tag

    git add CHANGELOG.md
    git commit -m "Ship tag <tag>"
    git push origin master
    git tag -f <tag>
    git push --force origin <tag>
    
  • Generate release with gren

    gren release -t <tag>