Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from matcornic/feat/v2
V2
- Loading branch information
Showing
141 changed files
with
9,306 additions
and
1,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
public/ | ||
exampleSite/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
--- | ||
title: "Some Chapter title" | ||
weight: 0 | ||
icon: "<b>X. </b>" # HTML code as prefix in the menu | ||
--- | ||
+++ | ||
title = "{{ replace .TranslationBaseName "-" " " | title }}" | ||
date = {{ .Date }} | ||
weight = 5 | ||
chapter = true | ||
pre = "<b>X. </b>" | ||
+++ | ||
|
||
### Chapter X | ||
|
||
# Some Chapter title | ||
|
||
Lorem ipsum | ||
Lorem Ipsum. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "Some Title" | ||
weight: 5 | ||
toc: true | ||
--- | ||
+++ | ||
title = "{{ replace .TranslationBaseName "-" " " | title }}" | ||
date = {{ .Date }} | ||
weight = 5 | ||
+++ | ||
|
||
Lorem Ipsum | ||
Lorem Ipsum. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 MATHIEU CORNIC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
- récriture doc -> TODO | ||
- créer une section Showcase | ||
- Menus déroulants icone -> TODO | ||
|
||
- créer des jolis thèmes de base (avec des noms ou au moins de meilleures couleurs) -> DOING | ||
- Thème blue : OK | ||
- Thème red: OK | ||
- Theme green: OK | ||
- Passer a Wercker -> OK | ||
- corriger le multilangue pour la recherche et les autres ressources statiques : OK | ||
- Section "MORE" -> OK | ||
- ajouter les childs -> OK | ||
- ajouter les attachments -> OK | ||
- refaire la possibilité d'overrider le style/script/etc -> OK | ||
- sticky bar -> OK | ||
- ajouter Travis pour tester le thème quotidiennement avec les nouvelles versions de Hugo -> OK | ||
- #54 -> OK | ||
- corriger slider menu qui ne fonctionne plus -> OK | ||
- Update font awesome -> OK | ||
- internationalisation -> OK | ||
- Messages: OK | ||
- Ajouter un bouton pour changer de langue : OK | ||
- netlify -> OK | ||
- home page -> OK | ||
- réintégrer la doc dans le même repo -> OK | ||
- récupérer les shortcodes utiles -> OK | ||
- expand : OK | ||
- mermaid : OK | ||
- chapter -> OK | ||
- recherche (avec pointage à la première occurence sur la page) -> OK | ||
- visited links -> OK | ||
- disable Search -> OK | ||
- vérifier que ça fonctionne avec une base url -> OK | ||
- tester les affichages de page enfant -> OK | ||
- comprendre l'histoire de pagination -> OK | ||
- améliorer les couleurs de surlignement de highlightjs -> OK | ||
- créer les archetypes -> OK | ||
-> créé ceux de base -> OK | ||
-> vérifier la possibilité de générer automatiquement le bon weight -> OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
baseURL = "/" | ||
languageCode = "en-US" | ||
defaultContentLanguage = "en" | ||
|
||
title = "Hugo Learn Documentation" | ||
theme = "hugo-theme-learn" | ||
themesdir = "../.." | ||
metaDataFormat = "yaml" | ||
defaultContentLanguageInSubdir= true | ||
|
||
[params] | ||
editURL = "https://github.com/matcornic/hugo-theme-learn/edit/master/exampleSite/content/" | ||
description = "Documentation for Hugo Learn Theme" | ||
author = "Mathieu Cornic" | ||
showVisitedLinks = true | ||
|
||
[outputs] | ||
home = [ "HTML", "RSS", "JSON"] | ||
|
||
[Languages] | ||
[Languages.en] | ||
title = "Documentation for Hugo Learn Theme" | ||
weight = 1 | ||
languageName = "English" | ||
|
||
[[Languages.en.menu.shortcuts]] | ||
name = "<i class='fa fa-github'></i> Github repo" | ||
identifier = "ds" | ||
url = "https://github.com/matcornic/hugo-theme-learn" | ||
weight = 10 | ||
|
||
[[Languages.en.menu.shortcuts]] | ||
name = "<i class='fa fa-camera'></i> Showcases" | ||
url = "showcase" | ||
weight = 11 | ||
|
||
[[Languages.en.menu.shortcuts]] | ||
name = "<i class='fa fa-bookmark'></i> Hugo Documentation" | ||
identifier = "hugodoc" | ||
url = "https://gohugo.io/" | ||
weight = 20 | ||
|
||
[[Languages.en.menu.shortcuts]] | ||
name = "<i class='fa fa-bullhorn'></i> Credits" | ||
url = "/credits" | ||
weight = 30 | ||
|
||
[Languages.fr] | ||
title = "Documentation du thème Hugo Learn" | ||
weight = 2 | ||
languageName = "Français" | ||
|
||
[[Languages.fr.menu.shortcuts]] | ||
name = "<i class='fa fa-github'></i> Repo Github" | ||
identifier = "ds" | ||
url = "https://github.com/matcornic/hugo-theme-learn" | ||
weight = 10 | ||
|
||
[[Languages.fr.menu.shortcuts]] | ||
name = "<i class='fa fa-camera'></i> Vitrine" | ||
url = "/showcase" | ||
weight = 11 | ||
|
||
[[Languages.fr.menu.shortcuts]] | ||
name = "<i class='fa fa-bookmark'></i> Documentation Hugo" | ||
identifier = "hugodoc" | ||
url = "https://gohugo.io/" | ||
weight = 20 | ||
|
||
[[Languages.fr.menu.shortcuts]] | ||
name = "<i class='fa fa-bullhorn'></i> Crédits" | ||
url = "/credits" | ||
weight = 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: "Learn Theme for Hugo" | ||
--- | ||
|
||
# Hugo learn theme | ||
|
||
[Hugo-theme-learn](http://github.com/matcornic/hugo-theme-learn) is a theme for [Hugo](https://gohugo.io/), a fast and modern static website engine written in Go. Where Hugo is often used for blogs, this multilingual-ready theme is **fully designed for documentation**. | ||
|
||
This theme is a partial porting of the [Learn theme](http://learn.getgrav.org/) of [Grav](https://getgrav.org/), a modern flat-file CMS written in PHP. | ||
|
||
{{% notice tip %}}Learn theme works with a _page tree structure_ to organize content : All contents are pages, which belong to other pages. [read more about this]({{%relref "cont/pages/_index.md"%}}) | ||
{{% /notice %}} | ||
|
||
## Main features | ||
|
||
* [Automatic Search]({{%relref "basics/configuration/_index.md" %}}) | ||
* [Multilingual mode]({{%relref "cont/i18n/_index.md" %}}) | ||
* **Unlimited menu levels** | ||
* **Automatic next/prev buttons to navigate through menu entries** | ||
* [Image resizing, shadow...]({{%relref "cont/markdown.en.md#images" %}}) | ||
* [Attachments files]({{%relref "shortcodes/attachments.en.md" %}}) | ||
* [List child pages]({{%relref "shortcodes/children/_index.md" %}}) | ||
* [Mermaid diagram]({{%relref "shortcodes/mermaid.en.md" %}}) (flowchart, sequence, gantt) | ||
* [Customizable look and feel and themes variants]({{%relref "basics/configuration/_index.md"%}}) | ||
* [Buttons]({{%relref "shortcodes/button.en.md" %}}), [Tip/Note/Info/Warning boxes]({{%relref "shortcodes/notice.en.md" %}}), [Expand]({{%relref "shortcodes/expand.en.md" %}}) | ||
|
||
![Screenshot](https://github.com/matcornic/hugo-theme-learn/raw/master/images/screenshot.png?width=40pc&classes=shadow) | ||
|
||
## Contribute to this documentation | ||
Feel free to update this content, just click the **Edit this page** link displayed on top right of each page, and pullrequest it | ||
|
||
{{% notice info %}} | ||
Your modification will be deployed automatically when merged. | ||
{{% /notice %}} | ||
|
||
## Documentation website | ||
This current documentation has been statically generated with Hugo with a simple command : `hugo -t hugo-theme-learn` -- source code is [available here at GitHub](https://github.com/matcornic/hugo-theme-learn) | ||
|
||
{{% notice note %}} | ||
Automatically published and hosted thanks to [Netlify](https://www.netlify.com/). Read more about [Automated HUGO deployments with Netlify](https://www.netlify.com/blog/2015/07/30/hosting-hugo-on-netlifyinsanely-fast-deploys/) | ||
{{% /notice %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: "Learn Theme for Hugo" | ||
--- | ||
|
||
# Thème Hugo learn | ||
|
||
[Hugo-theme-learn](http://github.com/matcornic/hugo-theme-learn) est un thème pour [Hugo](https://gohugo.io/), un générateur de site statique, rapide et modern, écrit en Go. Tandis que Hugo est souvent utilisé pour des blogs, ce thème multi-langue est **entièrement conçu pour la documentation**. | ||
|
||
Ce thème est un portage partiel du [thème Learn](http://learn.getgrav.org/) de [Grav](https://getgrav.org/), un CMS modern écrit en PHP. | ||
|
||
{{% notice tip %}}Le thème Learn fonctionne grâce à la structure de page aborescentes pour organiser le contenu: tous les contenus sont des pages qui appartiennent à d'autres pages. [Plus d'infos]({{%relref "cont/pages/_index.md"%}}) | ||
{{% /notice %}} | ||
|
||
## Fonctionnalité principales | ||
|
||
* [Recherche automatique]({{%relref "basics/configuration/_index.md" %}}) | ||
* [Mode multi-langue]({{%relref "cont/i18n/_index.md" %}}) | ||
* **Nombre de niveau infini dans le menu** | ||
* **Boutons suivant/précédent automatiquement générés pour naviguer entre les items du menu** | ||
* [Taille d'image, ombres...]({{%relref "cont/markdown.fr.md#images" %}}) | ||
* [Fichiers joints]({{%relref "shortcodes/attachments.fr.md" %}}) | ||
* [Lister les pages filles]({{%relref "shortcodes/children/_index.md" %}}) | ||
* [Diagrammes Mermaid]({{%relref "shortcodes/mermaid.fr.md" %}}) (flowchart, sequence, gantt) | ||
* [Style configurable and variantes de couleurs]({{%relref "basics/configuration/_index.md"%}}) | ||
* [Boutons]({{%relref "shortcodes/button.fr.md" %}}), [Messages Astuce/Note/Info/Attention]({{%relref "shortcodes/notice.fr.md" %}}), [Expand]({{%relref "shortcodes/expand.fr.md" %}}) | ||
|
||
![Screenshot](https://github.com/matcornic/hugo-theme-learn/raw/master/images/screenshot.png?width=40pc&classes=shadow) | ||
|
||
## Contribuer à cette documentation | ||
|
||
N'hésitez pas à mettre à jour ce contenu en cliquant sur le lien **Modifier cette page** en haut de chaque page, et créer la Pull Request associée. | ||
|
||
{{% notice info %}} | ||
Votre modification sera déployée automatiquement quand elle sera mergée. | ||
{{% /notice %}} | ||
|
||
## Site de documentation | ||
|
||
Cette documentation statique a été générée avec Hugo avec une simple commande : `hugo -t hugo-theme-learn` -- le code source est [disponible sur Github](https://github.com/matcornic/hugo-theme-learn) | ||
|
||
{{% notice note %}} | ||
Le site est auomatiquement publié et hébergé par [Netlify](https://www.netlify.com/). Plus d'infos sur le [déploiement de site Hugo avec Netlify](https://www.netlify.com/blog/2015/07/30/hosting-hugo-on-netlifyinsanely-fast-deploys/)(En anglais) | ||
{{% /notice %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: Basics | ||
weight: 5 | ||
pre: "<b>1. </b>" | ||
chapter: true | ||
--- | ||
|
||
### Chapter 1 | ||
|
||
# Basics | ||
|
||
Discover what this Hugo theme is all about and the core-concepts behind it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: Démarrage | ||
weight: 5 | ||
pre: "<b>1. </b>" | ||
chapter: true | ||
--- | ||
|
||
### Chapitre 1 | ||
|
||
# Démarrage | ||
|
||
Découvrez comment utiliser ce thème Hugo et apprenez en les concepts |
Oops, something went wrong.