mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Small enhancements
This commit is contained in:
parent
50c42679d8
commit
fbaa3a0b46
20 changed files with 76 additions and 18 deletions
|
@ -1,11 +1,17 @@
|
||||||
|
streams:
|
||||||
|
schemes:
|
||||||
|
theme:
|
||||||
|
type: ReadOnlyStream
|
||||||
|
prefixes:
|
||||||
|
'': [user/themes/yunohost-docs, user/themes/learn4]
|
||||||
enabled: true
|
enabled: true
|
||||||
production-mode: false
|
production-mode: false
|
||||||
grid-size: grid-xl
|
grid-size: grid-xl
|
||||||
github:
|
github:
|
||||||
note: false
|
note: false
|
||||||
link: true
|
link: true
|
||||||
tree: https://github.com/yunohost/doc/blob/grav/
|
tree: 'https://github.com/yunohost/doc/blob/grav/'
|
||||||
commits: https://github.com/yunohost/doc/commits/grav/
|
commits: 'https://github.com/yunohost/doc/commits/grav/'
|
||||||
spectre:
|
spectre:
|
||||||
exp: false
|
exp: false
|
||||||
icons: false
|
icons: false
|
||||||
|
|
|
@ -52,6 +52,6 @@ You can host your friends, your family and your company safely and with ease, bu
|
||||||
Black and white YunoHost PNG logo by ToZz (400 × 400 px):
|
Black and white YunoHost PNG logo by ToZz (400 × 400 px):
|
||||||
|
|
||||||
[](image://ynh_logo_black_300dpi.png)
|
[](image://ynh_logo_black_300dpi.png)
|
||||||
[](image://ynh_logo_white_300dpi.png)
|
[](image://ynh_logo_white_300dpi.png)
|
||||||
|
|
||||||
Licence: CC-BY-SA 4.0
|
Licence: CC-BY-SA 4.0
|
||||||
|
|
|
@ -11,13 +11,14 @@ routes:
|
||||||
|
|
||||||
[center]
|
[center]
|
||||||
[columns]
|
[columns]
|
||||||
[<i class="fa fa-user"></i> User interface](https://demo.yunohost.org/?target=_blank&classes=btn,btn-lg,btn-success)
|
[[fa=user /] User interface](https://demo.yunohost.org/?target=_blank&classes=btn,btn-lg,btn-success)
|
||||||
Username: demo
|
Username: demo
|
||||||
Password: demo
|
Password: demo
|
||||||
|
|
||||||
[<i class="fa fa-user"></i> Administration interface](https://demo.yunohost.org/yunohost/admin?target=_blank&classes=btn,btn-lg,btn-primary)
|
[[fa=cog /] Administration interface](https://demo.yunohost.org/yunohost/admin/?target=_blank&classes=btn,btn-lg,btn-primary)
|
||||||
Password: demo</p>
|
Password: demo
|
||||||
|
|
||||||
[/columns]
|
[/columns]
|
||||||
[/center]
|
[/center]
|
||||||
|
|
||||||
!!! **Demo server gracefully provided by [Gitoyen](https://www.gitoyen.net?target=_blank)**
|
!!!! **Demo server gracefully provided by [Gitoyen](https://www.gitoyen.net?target=_blank) [fa=heart /]**
|
||||||
|
|
|
@ -14,7 +14,7 @@ You can host yourself at home (on a small computer), or on a remote server. Each
|
||||||
You can host yourself at home with an ARM board or a re-purposed regular computer, connected to your home router/box.
|
You can host yourself at home with an ARM board or a re-purposed regular computer, connected to your home router/box.
|
||||||
|
|
||||||
- **Pros** : you will have physical control of the machine and only need to buy the hardware;
|
- **Pros** : you will have physical control of the machine and only need to buy the hardware;
|
||||||
- **Cons** : you will have to [manually configure your internet box](/administrate/postinstall/ispbox) and [might be limited by your ISP](/administrate/advance/isp).
|
- **Cons** : you will have to [manually configure your internet box](/isp_box_config) and [might be limited by your ISP](/isp).
|
||||||
|
|
||||||
### At home, behind a VPN
|
### At home, behind a VPN
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,26 @@
|
||||||
|
# v1.6.2
|
||||||
|
## 01/26/2021
|
||||||
|
|
||||||
|
1. [](#improved)
|
||||||
|
* Updated theme blueprints for Grav 1.7
|
||||||
|
|
||||||
|
# v1.6.1
|
||||||
|
## 01/15/2021
|
||||||
|
|
||||||
|
1. [](#new)
|
||||||
|
* GoogleSlides shortcode updated to handle double `_` characters in URL (thanks @GeorgesPapas)
|
||||||
|
|
||||||
|
# v1.6.0
|
||||||
|
## 01/05/2021
|
||||||
|
|
||||||
|
1. [](#new)
|
||||||
|
* Initial NextGen Editor support for GoogleSlides, H5P and PDF shortcodes
|
||||||
|
|
||||||
# v1.5.9
|
# v1.5.9
|
||||||
## 05/19/2020
|
## 05/19/2020
|
||||||
|
|
||||||
1. [](#improved)
|
1. [](#improved)
|
||||||
* Updated inherited theme file paths for multisite compatibility (thanks to @tituspijean for the PR!)
|
* Updated inherited theme file paths for multisite compatibility (thanks to @tituspijean for the PR and @mahagr for the debugging!)
|
||||||
|
|
||||||
# v1.5.8
|
# v1.5.8
|
||||||
## 12/05/2019
|
## 12/05/2019
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
name: Learn2 Git Sync
|
name: Learn2 Git Sync
|
||||||
version: 1.5.9
|
type: theme
|
||||||
|
slug: learn2-git-sync
|
||||||
|
version: 1.6.2
|
||||||
description: "A customized version of the Learn2 theme for use with the Learn2 with Git Sync skeleton package. Includes selectable visual styles."
|
description: "A customized version of the Learn2 theme for use with the Learn2 with Git Sync skeleton package. Includes selectable visual styles."
|
||||||
icon: git
|
icon: git
|
||||||
author:
|
author:
|
||||||
|
|
|
@ -17,11 +17,29 @@ class Learn2GitSync extends Learn2
|
||||||
return [
|
return [
|
||||||
'onTwigInitialized' => ['onTwigInitialized', 0],
|
'onTwigInitialized' => ['onTwigInitialized', 0],
|
||||||
'onThemeInitialized' => ['onThemeInitialized', 0],
|
'onThemeInitialized' => ['onThemeInitialized', 0],
|
||||||
|
'onShortcodeHandlers' => ['onShortcodeHandlers', 0],
|
||||||
'onTwigSiteVariables' => ['onTwigSiteVariables', 0],
|
'onTwigSiteVariables' => ['onTwigSiteVariables', 0],
|
||||||
'onTNTSearchIndex' => ['onTNTSearchIndex', 0]
|
'onTNTSearchIndex' => ['onTNTSearchIndex', 0],
|
||||||
|
'registerNextGenEditorPlugin' => ['registerNextGenEditorPluginShortcodes', 0]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function onShortcodeHandlers()
|
||||||
|
{
|
||||||
|
$this->grav['shortcode']->registerAllShortcodes('user://themes/learn2-git-sync/shortcodes');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function registerNextGenEditorPluginShortcodes($event) {
|
||||||
|
$plugins = $event['plugins'];
|
||||||
|
|
||||||
|
$plugins['js'][] = 'user://themes/learn2-git-sync/nextgen-editor/shortcodes/googleslides.js';
|
||||||
|
$plugins['js'][] = 'user://themes/learn2-git-sync/nextgen-editor/shortcodes/h5p.js';
|
||||||
|
$plugins['js'][] = 'user://themes/learn2-git-sync/nextgen-editor/shortcodes/pdf.js';
|
||||||
|
|
||||||
|
$event['plugins'] = $plugins;
|
||||||
|
return $event;
|
||||||
|
}
|
||||||
|
|
||||||
public function onTwigSiteVariables()
|
public function onTwigSiteVariables()
|
||||||
{
|
{
|
||||||
if ($this->isAdmin() && ($this->grav['config']->get('plugins.shortcode-core.enabled'))) {
|
if ($this->isAdmin() && ($this->grav['config']->get('plugins.shortcode-core.enabled'))) {
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if config.plugins.tntsearch.enabled %}
|
{% if config.plugins.tntsearch.enabled %}
|
||||||
<div class="adv-search">
|
<div class="adv-search">
|
||||||
<i class="fa fa-sliders"></i> <a href="{{ base_url_absolute }}/search">{{ 'THEME_LEARN2_ADVANCED_SEARCH'|t }}</a>
|
<i class="fa fa-sliders"></i> <a href="{{ base_url_absolute }}/tntsearch">{{ 'THEME_LEARN2_ADVANCED_SEARCH'|t }}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
# v1.8.1
|
||||||
|
## 01/15/2021
|
||||||
|
|
||||||
|
1. [](#improved)
|
||||||
|
* Fixed autoescaping in preparation for Grav 1.7
|
||||||
|
|
||||||
# v1.8.0
|
# v1.8.0
|
||||||
## 03/21/2019
|
## 03/21/2019
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
name: Learn2
|
name: Learn2
|
||||||
version: 1.8.0
|
slug: learn2
|
||||||
|
type: theme
|
||||||
|
version: 1.8.1
|
||||||
description: "Learn2 is a new modern documentation theme for Grav"
|
description: "Learn2 is a new modern documentation theme for Grav"
|
||||||
icon: book
|
icon: book
|
||||||
author:
|
author:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="chapter">
|
<div id="chapter">
|
||||||
<div id="body-inner">
|
<div id="body-inner">
|
||||||
{{ page.content }}
|
{{ page.content|raw }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div id="body-inner">
|
<div id="body-inner">
|
||||||
<h1>{{ 'PLUGIN_ERROR.ERROR'|t }} {{ header.http_response_code }}</h1>
|
<h1>{{ 'PLUGIN_ERROR.ERROR'|t }} {{ header.http_response_code }}</h1>
|
||||||
|
|
||||||
{{ page.content }}
|
{{ page.content|raw }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="body-inner">
|
<div id="body-inner">
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
<p>
|
<p>
|
||||||
{{ page.content }}
|
{{ page.content|raw }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
class="fa fa-fw fa-history"></i> {{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}</a><br/>
|
class="fa fa-fw fa-history"></i> {{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}</a><br/>
|
||||||
|
|
||||||
<section id="footer">
|
<section id="footer">
|
||||||
<p>{{ 'THEME_LEARN2_BUILT_WITH_GRAV'|t }}</p>
|
<p>{{ 'THEME_LEARN2_BUILT_WITH_GRAV'|t|raw }}</p>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% embed 'partials/base.html.twig' with { github_link_position: false } %}
|
{% embed 'partials/base.html.twig' with { github_link_position: false } %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ page.content }}
|
{{ page.content|raw }}
|
||||||
|
|
||||||
{% include 'partials/tntsearch.html.twig' with { in_page: true, placeholder: "Search the Grav documentation..." }%}
|
{% include 'partials/tntsearch.html.twig' with { in_page: true, placeholder: "Search the Grav documentation..." }%}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -64,3 +64,8 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img#whitelogo {
|
||||||
|
background-color: gray;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.eot
Executable file → Normal file
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.eot
Executable file → Normal file
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.svg
Executable file → Normal file
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.svg
Executable file → Normal file
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.ttf
Executable file → Normal file
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.ttf
Executable file → Normal file
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.woff
Executable file → Normal file
0
themes/yunohost-docs/fonts/SourceSansPro-Bold-webfont.woff
Executable file → Normal file
Loading…
Add table
Reference in a new issue