diff --git a/config.toml b/config.toml index 455378b..da46161 100644 --- a/config.toml +++ b/config.toml @@ -2,15 +2,15 @@ baseURL = "/" languageCode = "en-US" defaultContentLanguage = "en" -title = "Hugo Learn Documentation" +title = "RustDesk Documentation" theme = "hugo-theme-learn" 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" + editURL = "https://github.com/rustdesk/doc.rustdesk.com/edit/master/content/" + description = "Documentation for RustDesk" + author = "RustDesk" showVisitedLinks = true disableBreadcrumb = false disableNextPrev = false @@ -18,13 +18,15 @@ defaultContentLanguageInSubdir= true disableMermaid = false customMermaidURL = "https://unpkg.com/mermaid@8.8.0/dist/mermaid.min.js" titleSeparator = "::" + themeVariant = "blue" + custom_css = ["css/theme-mine.css"] [outputs] home = [ "HTML", "RSS", "JSON"] [Languages] [Languages.en] -title = "Documentation for Hugo Learn Theme" +title = "Documentation for RustDesk" weight = 1 languageName = "English" landingPageURL = "/en" @@ -33,27 +35,11 @@ landingPageName = " Home" [[Languages.en.menu.shortcuts]] name = " GitHub repo" identifier = "ds" -url = "https://github.com/matcornic/hugo-theme-learn" +url = "https://github.com/rustdesk/rustdesk" weight = 10 -[[Languages.en.menu.shortcuts]] -name = " Showcases" -url = "showcase" -weight = 11 - -[[Languages.en.menu.shortcuts]] -name = " Hugo Documentation" -identifier = "hugodoc" -url = "https://gohugo.io/" -weight = 20 - -[[Languages.en.menu.shortcuts]] -name = " Credits" -url = "/credits" -weight = 30 - [Languages.fr] -title = "Documentation du thème Hugo Learn" +title = "Documentation du RustDesk" weight = 2 languageName = "Français" landingPageURL = "/fr" @@ -62,27 +48,11 @@ landingPageName = " Accueil" [[Languages.fr.menu.shortcuts]] name = " Repo GitHub" identifier = "ds" -url = "https://github.com/matcornic/hugo-theme-learn" +url = "https://github.com/rustdesk/rustdesk" weight = 10 -[[Languages.fr.menu.shortcuts]] -name = " Vitrine" -url = "/showcase" -weight = 11 - -[[Languages.fr.menu.shortcuts]] -name = " Documentation Hugo" -identifier = "hugodoc" -url = "https://gohugo.io/" -weight = 20 - -[[Languages.fr.menu.shortcuts]] -name = " Crédits" -url = "/credits" -weight = 30 - [Languages.zh] -title = "Hugo 主题的 Learn 文档" +title = "RustDesk文档" weight = 3 languageName = "简体中文" landingPageURL = "/zh" @@ -91,21 +61,5 @@ landingPageName = " 家" [[Languages.zh.menu.shortcuts]] name = " GitHub 仓库" identifier = "ds" -url = "https://github.com/matcornic/hugo-theme-learn" +url = "https://github.com/rustdesk/rustdesk" weight = 10 - -[[Languages.zh.menu.shortcuts]] -name = " 展示区" -url = "/showcase" -weight = 11 - -[[Languages.zh.menu.shortcuts]] -name = " Hugo 文档" -identifier = "hugodoc" -url = "https://gohugo.io/" -weight = 20 - -[[Languages.zh.menu.shortcuts]] -name = " 鸣谢" -url = "/credits" -weight = 30 diff --git a/content/credits.en.md b/content/credits.en.md deleted file mode 100644 index 8942b41..0000000 --- a/content/credits.en.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: Credits -disableToc: true ---- - -## Contributors - -Thanks to them for making Open Source Software a better place ! - -{{% ghcontributors "https://api.github.com/repos/matcornic/hugo-theme-learn/contributors?per_page=100" %}} - -And a special thanks to [@vjeantet](https://github.com/vjeantet) for his work on [docdock](https://github.com/vjeantet/hugo-theme-docdock), a fork of hugo-theme-learn. v2.0.0 of this theme is inspired by his work. - -## Packages and libraries -* [mermaid](https://mermaid-js.github.io/) - generation of diagram and flowchart from text in a similar manner as markdown -* [font awesome](http://fontawesome.io/) - the iconic font and CSS framework -* [jQuery](https://jquery.com) - The Write Less, Do More, JavaScript Library -* [lunr](https://lunrjs.com) - Lunr enables you to provide a great search experience without the need for external, server-side, search services... -* [horsey](https://bevacqua.github.io/horsey/) - Progressive and customizable autocomplete component -* [clipboard.js](https://zenorocha.github.io/clipboard.js) - copy text to clipboard -* [highlight.js](https://highlightjs.org) - Javascript syntax highlighter -* [modernizr](https://modernizr.com) - A JavaScript toolkit that allows web developers to use new CSS3 and HTML5 features while maintaining a fine level of control over browsers that don't support - -## Tooling - -* [Netlify](https://www.netlify.com) - Continuous deployement and hosting of this documentation -* [Hugo](https://gohugo.io/) - diff --git a/content/credits.fr.md b/content/credits.fr.md deleted file mode 100644 index 23a1c3d..0000000 --- a/content/credits.fr.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: Crédits -disableToc: true ---- - -## Contributeurs - -Merci à eux de rendre le monde Open Source meilleur ! - -{{% ghcontributors "https://api.github.com/repos/matcornic/hugo-theme-learn/contributors?per_page=100" %}} - -Et un grand merci à [@vjeantet](https://github.com/vjeantet) pour son travail sur [docdock](https://github.com/vjeantet/hugo-theme-docdock), un fork de _hugo-theme-learn_. La v2.0.0 du thème est en grande partie inspirée de son travail. - -## Packages et librairies -* [mermaid](https://mermaid-js.github.io/) - géneration de diagrames et graphiques à partir de texte similaire à Markdown -* [font awesome](http://fontawesome.io/) - Le framework de polices iconiques -* [jQuery](https://jquery.com) - La plus connue des librairies Javascript -* [lunr](https://lunrjs.com) - Lunr fournit des fonctions de recherche sans service externe -* [horsey](https://bevacqua.github.io/horsey/) - Autocomplétion de composants (utiliser pour les suggestions de recherche) -* [clipboard.js](https://zenorocha.github.io/clipboard.js) - Copier le texte dans le presse-papier -* [highlight.js](https://highlightjs.org) - Mise en valeur de syntaxes -* [modernizr](https://modernizr.com) - Une boite à outil Javascript qui permet aux développeurs d'utiliser les dernières fonctionnalités de CSS et HTML5, même sur de vieux navigateurs. - -## Outils - -* [Netlify](https://www.netlify.com) - Déploiement continue et hébergement de cette documentation -* [Hugo](https://gohugo.io/) - diff --git a/content/showcase.en.md b/content/showcase.en.md deleted file mode 100644 index 4d06d8b..0000000 --- a/content/showcase.en.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Showcase -disableToc: true ---- - -#### [TAT](https://ovh.github.io/tat/overview/) by OVH -![TAT image](/images/showcase/tat.png?width=50pc) - -#### [Tshark.dev](https://tshark.dev) by Ross Jacobs -![Tshark.dev image](/images/showcase/tshark_dev.png?width=50pc) - -#### [inteliver](https://docs.inteliver.com) by Amir Lavasani -![docs.inteliver.com image](/images/showcase/inteliver_docs.png?width=50pc) \ No newline at end of file diff --git a/content/showcase.fr.md b/content/showcase.fr.md deleted file mode 100644 index fcb9d7f..0000000 --- a/content/showcase.fr.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Vitrine -disableToc: true -slug: vitrine ---- - -#### [TAT](https://ovh.github.io/tat/overview/) par OVH -![TAT image](/images/showcase/tat.png?width=50pc) - -#### [Tshark.dev](https://tshark.dev) par Ross Jacobs -![Tshark.dev image](/images/showcase/tshark_dev.png?width=50pc) - -#### [inteliver](https://docs.inteliver.com) by Amir Lavasani -![docs.inteliver.com image](/images/showcase/inteliver_docs.png?width=50pc) \ No newline at end of file diff --git a/layouts/partials/custom-footer.html b/layouts/partials/custom-footer.html index 50e11eb..e70e3e5 100644 --- a/layouts/partials/custom-footer.html +++ b/layouts/partials/custom-footer.html @@ -1,10 +1,9 @@ + + \ No newline at end of file diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index e1ef57c..987a48b 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -1,39 +1,6 @@ diff --git a/layouts/partials/menu-footer.html b/layouts/partials/menu-footer.html index 5a35bd0..70ead20 100644 --- a/layouts/partials/menu-footer.html +++ b/layouts/partials/menu-footer.html @@ -1,14 +1,3 @@
- - Download - - - Star - - - Fork - -

Built with from Grav and Hugo

+

Thanks for hugo-theme-learn

- - diff --git a/static/css/theme-mine.css b/static/css/theme-mine.css index 2bbc868..bd5e5b0 100644 --- a/static/css/theme-mine.css +++ b/static/css/theme-mine.css @@ -1,104 +1,13 @@ - -:root{ - - --MAIN-TEXT-color:#323232; /* Color of text by default */ - --MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */ - --MAIN-LINK-color:#599a3e; /* Color of links */ - --MAIN-LINK-HOVER-color:#3f6d2c; /* Color of hovered links */ - --MAIN-ANCHOR-color: #599a3e; /* color of anchors on titles */ - - --MENU-HEADER-BG-color:#74b559; /* Background color of menu header */ - --MENU-HEADER-BORDER-color:#9cd484; /*Color of menu header border */ - - --MENU-SEARCH-BG-color:#599a3e; /* Search field background color (by default borders + icons) */ - --MENU-SEARCH-BOX-color: #84c767; /* Override search field border color */ - --MENU-SEARCH-BOX-ICONS-color: #c7f7c4; /* Override search field icons color */ - - --MENU-SECTIONS-ACTIVE-BG-color:#1b211c; /* Background color of the active section and its childs */ - --MENU-SECTIONS-BG-color:#222723; /* Background color of other sections */ - --MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */ - --MENU-SECTIONS-LINK-HOVER-color: #e6e6e6; /* Color of links in menu, when hovered */ - --MENU-SECTION-ACTIVE-CATEGORY-color: #777; /* Color of active category text */ - --MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */ - - --MENU-VISITED-color: #599a3e; /* Color of 'page visited' icons in menu */ - --MENU-SECTION-HR-color: #18211c; /* Color of
separator in menu */ - +a#logo { + display: flex; + align-items: center; + justify-content: center; } -body { - color: var(--MAIN-TEXT-color) !important; +a#logo span { + font-weight: 600; + font-size: 18px; + color: white; + margin-left: 0.5rem; + margin-top: 3px; } - -textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus { - border-color: none; - box-shadow: none; -} - -h2, h3, h4, h5 { - color: var(--MAIN-TITLES-TEXT-color) !important; -} - -a { - color: var(--MAIN-LINK-color); -} - -.anchor { - color: var(--MAIN-ANCHOR-color); -} - -a:hover { - color: var(--MAIN-LINK-HOVER-color); -} - -#sidebar ul li.visited > a .read-icon { - color: var(--MENU-VISITED-color); -} - -#body a.highlight:after { - display: block; - content: ""; - height: 1px; - width: 0%; - -webkit-transition: width 0.5s ease; - -moz-transition: width 0.5s ease; - -ms-transition: width 0.5s ease; - transition: width 0.5s ease; - background-color: var(--MAIN-LINK-HOVER-color); -} -#sidebar { - background-color: var(--MENU-SECTIONS-BG-color); -} -#sidebar #header-wrapper { - background: var(--MENU-HEADER-BG-color); - color: var(--MENU-SEARCH-BOX-color); - border-color: var(--MENU-HEADER-BORDER-color); -} -#sidebar .searchbox { - border-color: var(--MENU-SEARCH-BOX-color); - background: var(--MENU-SEARCH-BG-color); -} -#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active { - background: var(--MENU-SECTIONS-ACTIVE-BG-color); -} -#sidebar .searchbox * { - color: var(--MENU-SEARCH-BOX-ICONS-color); -} - -#sidebar a { - color: var(--MENU-SECTIONS-LINK-color); -} - -#sidebar a:hover { - color: var(--MENU-SECTIONS-LINK-HOVER-color); -} - -#sidebar ul li.active > a { - background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color); - color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important; -} - -#sidebar hr { - border-color: var(--MENU-SECTION-HR-color); -} -