Documentation: migrating from hugo-theme-learn to hugo-theme-relearn
This commit is contained in:
parent
2824bd1e38
commit
75925b1117
2
.github/workflows/gh-pages.yml
vendored
2
.github/workflows/gh-pages.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
|||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: '0.80.0'
|
hugo-version: '0.132.2'
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
- name: Generate documentation translations
|
- name: Generate documentation translations
|
||||||
|
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -2,6 +2,6 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
[submodule "documentation/themes/hugo-theme-learn"]
|
[submodule "support/documentation/themes/hugo-theme-relearn"]
|
||||||
path = support/documentation/themes/hugo-theme-learn
|
path = support/documentation/themes/hugo-theme-relearn
|
||||||
url = https://github.com/matcornic/hugo-theme-learn.git
|
url = https://github.com/McShelby/hugo-theme-relearn.git
|
||||||
|
@ -6,21 +6,19 @@ baseURL = "http://localhost:1313/peertube-plugin-livechat/" # this will be overr
|
|||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
title = "Peertube plugin livechat"
|
title = "Peertube plugin livechat"
|
||||||
theme = 'hugo-theme-learn'
|
theme = 'hugo-theme-relearn'
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = [ "HTML", "RSS", "JSON"]
|
home = [ "HTML", "RSS", "SEARCH"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
author = "John Livingston"
|
|
||||||
description = "Peertube plugin livechat documentation"
|
|
||||||
showVisitedLinks = true
|
showVisitedLinks = true
|
||||||
disableSearch = false
|
disableSearch = false
|
||||||
disableLandingPageButton = false
|
disableLandingPageButton = true
|
||||||
themeVariant = "red"
|
themeVariant = "red"
|
||||||
landingPageURL = "/peertube-plugin-livechat/"
|
|
||||||
landingPageName = "<i class='fas fa-home'></i> Home"
|
[params.author]
|
||||||
custom_css = ["css/livechatdoc.css"]
|
name = "John Livingston"
|
||||||
|
|
||||||
[[menu.shortcuts]]
|
[[menu.shortcuts]]
|
||||||
name = "<i class='fab fa-github'></i> Github repository"
|
name = "<i class='fab fa-github'></i> Github repository"
|
||||||
@ -40,181 +38,143 @@ weight = 20
|
|||||||
|
|
||||||
[Languages.ar]
|
[Languages.ar]
|
||||||
languageName = "العربية"
|
languageName = "العربية"
|
||||||
landingPageURL = "/peertube-plugin-livechat/ar/"
|
|
||||||
contentDir = "content/translations/ar"
|
contentDir = "content/translations/ar"
|
||||||
|
|
||||||
[Languages.ca]
|
[Languages.ca]
|
||||||
languageName = "Català"
|
languageName = "Català"
|
||||||
landingPageURL = "/peertube-plugin-livechat/ca/"
|
|
||||||
contentDir = "content/translations/ca"
|
contentDir = "content/translations/ca"
|
||||||
|
|
||||||
[Languages.cs]
|
[Languages.cs]
|
||||||
languageName = "Čeština"
|
languageName = "Čeština"
|
||||||
landingPageURL = "/peertube-plugin-livechat/cs/"
|
|
||||||
contentDir = "content/translations/cs"
|
contentDir = "content/translations/cs"
|
||||||
|
|
||||||
[Languages.de]
|
[Languages.de]
|
||||||
title = "Peertube Plugin Livechat Dokumentation"
|
title = "Peertube Plugin Livechat Dokumentation"
|
||||||
languageName = "Deutsch"
|
languageName = "Deutsch"
|
||||||
landingPageName = "<i class='fas fa-home'></i> Home"
|
|
||||||
landingPageURL = "/peertube-plugin-livechat/de/"
|
|
||||||
contentDir = "content/translations/de"
|
contentDir = "content/translations/de"
|
||||||
|
|
||||||
[Languages.el]
|
[Languages.el]
|
||||||
languageName = "ελληνικά"
|
languageName = "ελληνικά"
|
||||||
landingPageURL = "/peertube-plugin-livechat/el/"
|
|
||||||
contentDir = "content/translations/el"
|
contentDir = "content/translations/el"
|
||||||
|
|
||||||
[Languages.eo]
|
[Languages.eo]
|
||||||
languageName = "Esperanto"
|
languageName = "Esperanto"
|
||||||
landingPageURL = "/peertube-plugin-livechat/eo/"
|
|
||||||
contentDir = "content/translations/eo"
|
contentDir = "content/translations/eo"
|
||||||
|
|
||||||
[Languages.es]
|
[Languages.es]
|
||||||
languageName = "Español"
|
languageName = "Español"
|
||||||
landingPageURL = "/peertube-plugin-livechat/es/"
|
|
||||||
contentDir = "content/translations/es"
|
contentDir = "content/translations/es"
|
||||||
|
|
||||||
[Languages.eu]
|
[Languages.eu]
|
||||||
languageName = "Euskara"
|
languageName = "Euskara"
|
||||||
landingPageURL = "/peertube-plugin-livechat/eu/"
|
|
||||||
contentDir = "content/translations/eu"
|
contentDir = "content/translations/eu"
|
||||||
|
|
||||||
[Languages.fa]
|
[Languages.fa]
|
||||||
languageName = "فارسی"
|
languageName = "فارسی"
|
||||||
landingPageURL = "/peertube-plugin-livechat/fa/"
|
|
||||||
contentDir = "content/translations/fa"
|
contentDir = "content/translations/fa"
|
||||||
|
|
||||||
[Languages.fi]
|
[Languages.fi]
|
||||||
languageName = "Suomi"
|
languageName = "Suomi"
|
||||||
landingPageURL = "/peertube-plugin-livechat/fi/"
|
|
||||||
contentDir = "content/translations/fi"
|
contentDir = "content/translations/fi"
|
||||||
|
|
||||||
[Languages.fr]
|
[Languages.fr]
|
||||||
title = "Documentation plugin Peertube livechat"
|
title = "Documentation plugin Peertube livechat"
|
||||||
languageName = "Français"
|
languageName = "Français"
|
||||||
landingPageName = "<i class='fas fa-home'></i> Accueil"
|
|
||||||
landingPageURL = "/peertube-plugin-livechat/fr/"
|
|
||||||
contentDir = "content/translations/fr"
|
contentDir = "content/translations/fr"
|
||||||
|
|
||||||
[Languages.gd]
|
[Languages.gd]
|
||||||
languageName = "Gàidhlig"
|
languageName = "Gàidhlig"
|
||||||
landingPageURL = "/peertube-plugin-livechat/gd/"
|
|
||||||
contentDir = "content/translations/gd"
|
contentDir = "content/translations/gd"
|
||||||
|
|
||||||
[Languages.gl]
|
[Languages.gl]
|
||||||
languageName = "Galego"
|
languageName = "Galego"
|
||||||
landingPageURL = "/peertube-plugin-livechat/gl/"
|
|
||||||
contentDir = "content/translations/gl"
|
contentDir = "content/translations/gl"
|
||||||
|
|
||||||
[Languages.hr]
|
[Languages.hr]
|
||||||
languageName = "Hrvatski"
|
languageName = "Hrvatski"
|
||||||
landingPageURL = "/peertube-plugin-livechat/hr/"
|
|
||||||
contentDir = "content/translations/hr"
|
contentDir = "content/translations/hr"
|
||||||
|
|
||||||
[Languages.hu]
|
[Languages.hu]
|
||||||
languageName = "Magyar"
|
languageName = "Magyar"
|
||||||
landingPageURL = "/peertube-plugin-livechat/hu/"
|
|
||||||
contentDir = "content/translations/hu"
|
contentDir = "content/translations/hu"
|
||||||
|
|
||||||
[Languages.is]
|
[Languages.is]
|
||||||
languageName = "Íslenska"
|
languageName = "Íslenska"
|
||||||
landingPageURL = "/peertube-plugin-livechat/is/"
|
|
||||||
contentDir = "content/translations/is"
|
contentDir = "content/translations/is"
|
||||||
|
|
||||||
[Languages.it]
|
[Languages.it]
|
||||||
languageName = "Italiano"
|
languageName = "Italiano"
|
||||||
landingPageURL = "/peertube-plugin-livechat/it/"
|
|
||||||
contentDir = "content/translations/it"
|
contentDir = "content/translations/it"
|
||||||
|
|
||||||
[Languages.ja]
|
[Languages.ja]
|
||||||
title = "PeerTube ライブチャットプラグイン"
|
title = "PeerTube ライブチャットプラグイン"
|
||||||
languageName = "日本語バージョン"
|
languageName = "日本語バージョン"
|
||||||
landingPageName = "<i class='fas fa-home'></i> Home"
|
|
||||||
landingPageURL = "/peertube-plugin-livechat/ja/"
|
|
||||||
contentDir = "content/translations/ja"
|
contentDir = "content/translations/ja"
|
||||||
|
|
||||||
[Languages.kab]
|
[Languages.kab]
|
||||||
languageName = "Taqbaylit"
|
languageName = "Taqbaylit"
|
||||||
landingPageURL = "/peertube-plugin-livechat/ka/"
|
|
||||||
contentDir = "content/translations/kab"
|
contentDir = "content/translations/kab"
|
||||||
|
|
||||||
[Languages.nb]
|
[Languages.nb]
|
||||||
languageName = "Norsk bokmål"
|
languageName = "Norsk bokmål"
|
||||||
landingPageURL = "/peertube-plugin-livechat/nb/"
|
|
||||||
contentDir = "content/translations/nb"
|
contentDir = "content/translations/nb"
|
||||||
|
|
||||||
[Languages.nl]
|
[Languages.nl]
|
||||||
languageName = "Nederlands"
|
languageName = "Nederlands"
|
||||||
landingPageURL = "/peertube-plugin-livechat/nl/"
|
|
||||||
contentDir = "content/translations/nl"
|
contentDir = "content/translations/nl"
|
||||||
|
|
||||||
[Languages.nn]
|
[Languages.nn]
|
||||||
languageName = "Norsk nynorsk"
|
languageName = "Norsk nynorsk"
|
||||||
landingPageURL = "/peertube-plugin-livechat/nn/"
|
|
||||||
contentDir = "content/translations/nn"
|
contentDir = "content/translations/nn"
|
||||||
|
|
||||||
[Languages.oc]
|
[Languages.oc]
|
||||||
languageName = "Occitan"
|
languageName = "Occitan"
|
||||||
landingPageURL = "/peertube-plugin-livechat/oc/"
|
|
||||||
contentDir = "content/translations/oc"
|
contentDir = "content/translations/oc"
|
||||||
|
|
||||||
[Languages.pl]
|
[Languages.pl]
|
||||||
languageName = "Polski"
|
languageName = "Polski"
|
||||||
landingPageURL = "/peertube-plugin-livechat/pl/"
|
|
||||||
contentDir = "content/translations/pl"
|
contentDir = "content/translations/pl"
|
||||||
|
|
||||||
[Languages.pt]
|
[Languages.pt]
|
||||||
languageName = "uguês"
|
languageName = "uguês"
|
||||||
landingPageURL = "/peertube-plugin-livechat/pt/"
|
|
||||||
contentDir = "content/translations/pt"
|
contentDir = "content/translations/pt"
|
||||||
|
|
||||||
[Languages.ru]
|
[Languages.ru]
|
||||||
languageName = "Pусский"
|
languageName = "Pусский"
|
||||||
landingPageURL = "/peertube-plugin-livechat/ru/"
|
|
||||||
contentDir = "content/translations/ru"
|
contentDir = "content/translations/ru"
|
||||||
|
|
||||||
[Languages.sq]
|
[Languages.sq]
|
||||||
languageName = "Shqip"
|
languageName = "Shqip"
|
||||||
landingPageURL = "/peertube-plugin-livechat/sq/"
|
|
||||||
contentDir = "content/translations/sq"
|
contentDir = "content/translations/sq"
|
||||||
|
|
||||||
[Languages.sv]
|
[Languages.sv]
|
||||||
languageName = "Svenska"
|
languageName = "Svenska"
|
||||||
landingPageURL = "/peertube-plugin-livechat/sv/"
|
|
||||||
contentDir = "content/translations/sv"
|
contentDir = "content/translations/sv"
|
||||||
|
|
||||||
[Languages.th]
|
[Languages.th]
|
||||||
languageName = "ไทย"
|
languageName = "ไทย"
|
||||||
landingPageURL = "/peertube-plugin-livechat/th/"
|
|
||||||
contentDir = "content/translations/th"
|
contentDir = "content/translations/th"
|
||||||
|
|
||||||
[Languages.tr]
|
[Languages.tr]
|
||||||
languageName = "Türkçe"
|
languageName = "Türkçe"
|
||||||
landingPageURL = "/peertube-plugin-livechat/tr/"
|
|
||||||
contentDir = "content/translations/tr"
|
contentDir = "content/translations/tr"
|
||||||
|
|
||||||
[Languages.tok]
|
[Languages.tok]
|
||||||
languageName = "Toki Pona"
|
languageName = "Toki Pona"
|
||||||
landingPageURL = "/peertube-plugin-livechat/to/"
|
|
||||||
contentDir = "content/translations/tok"
|
contentDir = "content/translations/tok"
|
||||||
|
|
||||||
[Languages.uk]
|
[Languages.uk]
|
||||||
languageName = "украї́нська мо́ва"
|
languageName = "украї́нська мо́ва"
|
||||||
landingPageURL = "/peertube-plugin-livechat/uk/"
|
|
||||||
contentDir = "content/translations/uk"
|
contentDir = "content/translations/uk"
|
||||||
|
|
||||||
[Languages.vi]
|
[Languages.vi]
|
||||||
languageName = "Tiếng Việt"
|
languageName = "Tiếng Việt"
|
||||||
landingPageURL = "/peertube-plugin-livechat/vi/"
|
|
||||||
contentDir = "content/translations/vi"
|
contentDir = "content/translations/vi"
|
||||||
|
|
||||||
[Languages.zh-Hans]
|
[Languages.zh-Hans]
|
||||||
languageName = "简体中文(中国)"
|
languageName = "简体中文(中国)"
|
||||||
landingPageURL = "/peertube-plugin-livechat/zh-Hans/"
|
|
||||||
contentDir = "content/translations/zh-Hans"
|
contentDir = "content/translations/zh-Hans"
|
||||||
|
|
||||||
[Languages.zh-Hant]
|
[Languages.zh-Hant]
|
||||||
languageName = "繁體中文(台灣"
|
languageName = "繁體中文(台灣"
|
||||||
landingPageURL = "/peertube-plugin-livechat/zh-Hant/"
|
|
||||||
contentDir = "content/translations/zh-Hant"
|
contentDir = "content/translations/zh-Hant"
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: "Peertube livechat"
|
||||||
|
description: "Peertube plugin livechat documentation"
|
||||||
|
---
|
||||||
|
|
||||||
# PeerTube plugin livechat
|
# PeerTube plugin livechat
|
||||||
|
|
||||||
{{% notice tip %}}
|
{{% notice tip %}}
|
||||||
|
@ -17,7 +17,10 @@ The documentation source code is in the `support/documentation/content` folder.
|
|||||||
The documentation is generated using [Hugo](https://gohugo.io/).
|
The documentation is generated using [Hugo](https://gohugo.io/).
|
||||||
You have to install it on your computer if you want to preview your work.
|
You have to install it on your computer if you want to preview your work.
|
||||||
|
|
||||||
The used theme is [hugo-theme-learn](https://learn.netlify.app/).
|
The minimum required version for Hugo is 0.121.0.
|
||||||
|
It was tested using version 0.132.2.
|
||||||
|
|
||||||
|
The used theme is [hugo-theme-relearn](https://mcshelby.github.io/hugo-theme-relearn).
|
||||||
You should read its documentation before starting editing the documentation.
|
You should read its documentation before starting editing the documentation.
|
||||||
|
|
||||||
When a new plugin version is released, or when documentation is updated, plugin maintainers will merge the `main` branch to the `documentation` branch.
|
When a new plugin version is released, or when documentation is updated, plugin maintainers will merge the `main` branch to the `documentation` branch.
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
/*
|
<style>
|
||||||
* SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* more contrast than the default theme. */
|
/* more contrast than the default theme. */
|
||||||
--MAIN-TEXT-color:#000; /* Color of text by default */
|
--MAIN-TEXT-color:#000; /* Color of text by default */
|
||||||
--MAIN-TITLES-TEXT-color: #222; /* Color of titles h2-h3-h4-h5 */
|
--MAIN-TITLES-TEXT-color: #222; /* Color of titles h2-h3-h4-h5 */
|
||||||
|
--MAIN-TITLES-H1-color: #222; /* text color of h1 titles */
|
||||||
--MAIN-LINK-color:#f31c1c; /* Color of links */
|
--MAIN-LINK-color:#f31c1c; /* Color of links */
|
||||||
--MAIN-LINK-HOVER-color:#d01616; /* Color of hovered links */
|
--MAIN-LINK-HOVER-color:#d01616; /* Color of hovered links */
|
||||||
--MAIN-ANCHOR-color: #f31c1c; /* color of anchors on titles */
|
/* --MAIN-BG-color: rgba( 255, 255, 255, 1 ); /* color of text by default */
|
||||||
|
|
||||||
--MENU-HOME-LINK-color: #fff; /* Color of the home button text */
|
--MENU-HOME-LINK-color: #fff; /* Color of the home button text */
|
||||||
--MENU-HOME-LINK-HOVER-color: #e6e6e6; /* Color of the hovered home button text */
|
--MENU-HOME-LINK-HOVER-color: #e6e6e6; /* Color of the hovered home button text */
|
||||||
@ -18,9 +15,9 @@
|
|||||||
--MENU-HEADER-BG-color:#dc1010; /* Background color of menu header */
|
--MENU-HEADER-BG-color:#dc1010; /* Background color of menu header */
|
||||||
--MENU-HEADER-BORDER-color:#e23131; /*Color of menu header border */
|
--MENU-HEADER-BORDER-color:#e23131; /*Color of menu header border */
|
||||||
|
|
||||||
|
--MENU-SEARCH-color: #fab0b0; /* Override search field icons color */
|
||||||
--MENU-SEARCH-BG-color:#b90000; /* Search field background color (by default borders + icons) */
|
--MENU-SEARCH-BG-color:#b90000; /* Search field background color (by default borders + icons) */
|
||||||
--MENU-SEARCH-BOX-color: #ef2020; /* Override search field border color */
|
--MENU-SEARCH-BORDER-color: #ef2020; /* Override search field border color */
|
||||||
--MENU-SEARCH-BOX-ICONS-color: #fab0b0; /* Override search field icons color */
|
|
||||||
|
|
||||||
--MENU-SECTIONS-ACTIVE-BG-color:#2b2020; /* Background color of the active section and its childs */
|
--MENU-SECTIONS-ACTIVE-BG-color:#2b2020; /* Background color of the active section and its childs */
|
||||||
--MENU-SECTIONS-BG-color:#312525; /* Background color of other sections */
|
--MENU-SECTIONS-BG-color:#312525; /* Background color of other sections */
|
||||||
@ -30,7 +27,7 @@
|
|||||||
--MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */
|
--MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */
|
||||||
|
|
||||||
--MENU-VISITED-color: #ff3333; /* Color of 'page visited' icons in menu */
|
--MENU-VISITED-color: #ff3333; /* Color of 'page visited' icons in menu */
|
||||||
--MENU-SECTION-HR-color: #2b2020; /* Color of <hr> separator in menu */
|
--MENU-SECTION-SEPARATOR-color: #2b2020; /* Color of <hr> separator in menu */
|
||||||
}
|
}
|
||||||
|
|
||||||
div.notices p {
|
div.notices p {
|
||||||
@ -43,8 +40,10 @@ div.notices p {
|
|||||||
So we will underline links, and let the a.highlight animation double underline on hovering.
|
So we will underline links, and let the a.highlight animation double underline on hovering.
|
||||||
Si hugo-theme.css, a.highlight, for more information on about it is done.
|
Si hugo-theme.css, a.highlight, for more information on about it is done.
|
||||||
*/
|
*/
|
||||||
#body a.highlight,
|
body a.highlight,
|
||||||
#body a.highlight:hover,
|
body a.highlight:hover,
|
||||||
#body a.highlight:focus {
|
body a.highlight:focus {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,3 @@
|
|||||||
|
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: AGPL-3.0-only
|
@ -1 +0,0 @@
|
|||||||
Subproject commit e817f53d690d35f181c896e0e320cb40f797e88c
|
|
1
support/documentation/themes/hugo-theme-relearn
Submodule
1
support/documentation/themes/hugo-theme-relearn
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 8791108273a9f7f58ed3f33941d1fe8f0117c594
|
Loading…
Reference in New Issue
Block a user