From b5762c844bbffe773ceabe7b5111a3dd405ca682 Mon Sep 17 00:00:00 2001 From: Sangelo Date: Wed, 10 Jan 2024 14:58:43 +0100 Subject: [PATCH] Progress --- archetypes/default.md | 1 - assets/css/custom.css | 7 - assets/css/syntax.css | 427 -------------------------- content/_index.md | 6 +- content/docs/_index.md | 5 +- content/docs/ansible/common/_index.md | 12 +- content/docs/ansible/core/_index.md | 14 +- hugo.yml | 17 +- i18n/en.yml | 2 +- 9 files changed, 41 insertions(+), 450 deletions(-) delete mode 100644 assets/css/syntax.css diff --git a/archetypes/default.md b/archetypes/default.md index c6f3fce..4e42334 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,4 @@ +++ title = '{{ replace .File.ContentBaseName "-" " " | title }}' date = {{ .Date }} -draft = true +++ diff --git a/assets/css/custom.css b/assets/css/custom.css index afbf04b..e69de29 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,7 +0,0 @@ -/* @import url(./syntax.css); -/* @import url(./rrt.css) */ - -/* :root { - --primary-hue: 195deg; - --saturation: 100% -} */ diff --git a/assets/css/syntax.css b/assets/css/syntax.css deleted file mode 100644 index 03809de..0000000 --- a/assets/css/syntax.css +++ /dev/null @@ -1,427 +0,0 @@ -/* Background */ -.bg { - color: #e0def4; - background-color: #232136; -} - -/* PreWrapper */ -.chroma { - color: #e0def4; - background-color: #232136; -} - -/* Other */ -.chroma .x {} - -/* Error */ -.chroma .err { - color: #eb6f92 -} - -/* CodeLine */ -.chroma .cl {} - -/* LineLink */ -.chroma .lnlinks { - outline: none; - text-decoration: none; - color: inherit -} - -/* LineTableTD */ -.chroma .lntd { - vertical-align: top; - padding: 0; - margin: 0; - border: 0; -} - -/* LineTable */ -.chroma .lntable { - border-spacing: 0; - padding: 0; - margin: 0; - border: 0; -} - -/* LineHighlight */ -.chroma .hl { - background-color: #39374a -} - -/* LineNumbersTable */ -.chroma .lnt { - white-space: pre; - -webkit-user-select: none; - user-select: none; - margin-right: 0.4em; - padding: 0 0.4em 0 0.4em; - color: #7f7f7f -} - -/* LineNumbers */ -.chroma .ln { - white-space: pre; - -webkit-user-select: none; - user-select: none; - margin-right: 0.4em; - padding: 0 0.4em 0 0.4em; - color: #7f7f7f -} - -/* Line */ -.chroma .line { - display: flex; -} - -/* Keyword */ -.chroma .k { - color: #3e8fb0 -} - -/* KeywordConstant */ -.chroma .kc { - color: #3e8fb0 -} - -/* KeywordDeclaration */ -.chroma .kd { - color: #3e8fb0 -} - -/* KeywordNamespace */ -.chroma .kn { - color: #c4a7e7 -} - -/* KeywordPseudo */ -.chroma .kp { - color: #3e8fb0 -} - -/* KeywordReserved */ -.chroma .kr { - color: #3e8fb0 -} - -/* KeywordType */ -.chroma .kt { - color: #3e8fb0 -} - -/* Name */ -.chroma .n { - color: #ea9a97 -} - -/* NameAttribute */ -.chroma .na { - color: #ea9a97 -} - -/* NameBuiltin */ -.chroma .nb { - color: #ea9a97 -} - -/* NameBuiltinPseudo */ -.chroma .bp { - color: #ea9a97 -} - -/* NameClass */ -.chroma .nc { - color: #9ccfd8 -} - -/* NameConstant */ -.chroma .no { - color: #f6c177 -} - -/* NameDecorator */ -.chroma .nd { - color: #908caa -} - -/* NameEntity */ -.chroma .ni { - color: #ea9a97 -} - -/* NameException */ -.chroma .ne { - color: #3e8fb0 -} - -/* NameFunction */ -.chroma .nf { - color: #ea9a97 -} - -/* NameFunctionMagic */ -.chroma .fm { - color: #ea9a97 -} - -/* NameLabel */ -.chroma .nl { - color: #ea9a97 -} - -/* NameNamespace */ -.chroma .nn { - color: #ea9a97 -} - -/* NameOther */ -.chroma .nx {} - -/* NameProperty */ -.chroma .py { - color: #ea9a97 -} - -/* NameTag */ -.chroma .nt { - color: #ea9a97 -} - -/* NameVariable */ -.chroma .nv { - color: #ea9a97 -} - -/* NameVariableClass */ -.chroma .vc { - color: #ea9a97 -} - -/* NameVariableGlobal */ -.chroma .vg { - color: #ea9a97 -} - -/* NameVariableInstance */ -.chroma .vi { - color: #ea9a97 -} - -/* NameVariableMagic */ -.chroma .vm { - color: #ea9a97 -} - -/* Literal */ -.chroma .l { - color: #f6c177 -} - -/* LiteralDate */ -.chroma .ld { - color: #f6c177 -} - -/* LiteralString */ -.chroma .s { - color: #f6c177 -} - -/* LiteralStringAffix */ -.chroma .sa { - color: #f6c177 -} - -/* LiteralStringBacktick */ -.chroma .sb { - color: #f6c177 -} - -/* LiteralStringChar */ -.chroma .sc { - color: #f6c177 -} - -/* LiteralStringDelimiter */ -.chroma .dl { - color: #f6c177 -} - -/* LiteralStringDoc */ -.chroma .sd { - color: #f6c177 -} - -/* LiteralStringDouble */ -.chroma .s2 { - color: #f6c177 -} - -/* LiteralStringEscape */ -.chroma .se { - color: #3e8fb0 -} - -/* LiteralStringHeredoc */ -.chroma .sh { - color: #f6c177 -} - -/* LiteralStringInterpol */ -.chroma .si { - color: #f6c177 -} - -/* LiteralStringOther */ -.chroma .sx { - color: #f6c177 -} - -/* LiteralStringRegex */ -.chroma .sr { - color: #f6c177 -} - -/* LiteralStringSingle */ -.chroma .s1 { - color: #f6c177 -} - -/* LiteralStringSymbol */ -.chroma .ss { - color: #f6c177 -} - -/* LiteralNumber */ -.chroma .m { - color: #f6c177 -} - -/* LiteralNumberBin */ -.chroma .mb { - color: #f6c177 -} - -/* LiteralNumberFloat */ -.chroma .mf { - color: #f6c177 -} - -/* LiteralNumberHex */ -.chroma .mh { - color: #f6c177 -} - -/* LiteralNumberInteger */ -.chroma .mi { - color: #f6c177 -} - -/* LiteralNumberIntegerLong */ -.chroma .il { - color: #f6c177 -} - -/* LiteralNumberOct */ -.chroma .mo { - color: #f6c177 -} - -/* Operator */ -.chroma .o { - color: #908caa -} - -/* OperatorWord */ -.chroma .ow { - color: #908caa -} - -/* Punctuation */ -.chroma .p { - color: #908caa -} - -/* Comment */ -.chroma .c { - color: #6e6a86 -} - -/* CommentHashbang */ -.chroma .ch { - color: #6e6a86 -} - -/* CommentMultiline */ -.chroma .cm { - color: #6e6a86 -} - -/* CommentSingle */ -.chroma .c1 { - color: #6e6a86 -} - -/* CommentSpecial */ -.chroma .cs { - color: #6e6a86 -} - -/* CommentPreproc */ -.chroma .cp { - color: #6e6a86 -} - -/* CommentPreprocFile */ -.chroma .cpf { - color: #6e6a86 -} - -/* Generic */ -.chroma .g {} - -/* GenericDeleted */ -.chroma .gd { - color: #eb6f92 -} - -/* GenericEmph */ -.chroma .ge { - font-style: italic -} - -/* GenericError */ -.chroma .gr {} - -/* GenericHeading */ -.chroma .gh {} - -/* GenericInserted */ -.chroma .gi { - color: #9ccfd8 -} - -/* GenericOutput */ -.chroma .go {} - -/* GenericPrompt */ -.chroma .gp {} - -/* GenericStrong */ -.chroma .gs { - font-weight: bold -} - -/* GenericSubheading */ -.chroma .gu { - color: #c4a7e7 -} - -/* GenericTraceback */ -.chroma .gt {} - -/* GenericUnderline */ -.chroma .gl {} - -/* TextWhitespace */ -.chroma .w {} \ No newline at end of file diff --git a/content/_index.md b/content/_index.md index 95d278c..8c3b7c8 100644 --- a/content/_index.md +++ b/content/_index.md @@ -15,7 +15,9 @@ This is the Lunivity Wiki. Welcome! Here, you'll find detailed information and installation instructions for a variety of services and programs, including those we are hosting. Additionally, this wiki includes information about services we self-host. {{< cards >}} - {{< card link="/docs/" title="Documentations" subtitle="Documentations for in-house tools and other programs" icon="newspaper" >}} - {{< card link="/services/" title="Services" subtitle="Documentations for deployed Services and other tools." icon="server" >}} + {{< card link="/docs/" title="Documentation" subtitle="Documentation for in-house tools and other programs" icon="newspaper" >}} + {{< card link="/services/" title="Services" subtitle="Documentation for deployed Services and other tools." icon="server" >}} {{< card link="/guides/" title="Guides" subtitle="Guides and resources to help you along the way." icon="pencil" >}} {{< /cards >}} + +Check it out the repository for this wiki on [Gitpot](https://gitpot.dev/lunivity/wiki)! diff --git a/content/docs/_index.md b/content/docs/_index.md index 344baca..df63e41 100644 --- a/content/docs/_index.md +++ b/content/docs/_index.md @@ -1,10 +1,9 @@ +++ -title = 'Documentations' -linkTitle = 'Documentation' +title = 'Documentation' date = 2024-01-09T19:42:30+01:00 +++ -Here you'll find documentations for in-house tools and/or services, and their usages. +Here you'll find documentation for in-house tools and/or services, and their usages. {{< cards >}} {{< card link="/docs/ansible" title="Ansible" subtitle="Docs for Ansible Roles and Playbooks" icon="cog" >}} diff --git a/content/docs/ansible/common/_index.md b/content/docs/ansible/common/_index.md index b0c3df0..952ba82 100644 --- a/content/docs/ansible/common/_index.md +++ b/content/docs/ansible/common/_index.md @@ -30,7 +30,7 @@ Before you begin, ensure you have the following prerequisites: {{< tab >}} **Using Command Line Interface (CLI):** -```bash +```bash {filename="Shell"} # install collection from source $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-common.git @@ -38,6 +38,8 @@ $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-comm $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-common.git,1.0.0 ``` +--- + {{< /tab >}} {{< tab >}} **Using a** `requirements.yml` **File:** @@ -45,7 +47,7 @@ $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-comm 1. Create a file named `requirements.yml` in your workspace. 2. Add the following content to your `requirements.yml` file: -```yaml +```yaml {filename="requirements.yml"} collections: - name: https://gitpot.dev/lunivity/ansible-common.git type: git @@ -54,10 +56,12 @@ $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-comm - Install the collection by running the following command in your workspace: -```bash +```bash {filename="Shell"} ansible-galaxy collection install -r /path/to/requirements.yml ``` +--- + {{< /tab >}} {{< /tabs >}} @@ -65,7 +69,7 @@ ansible-galaxy collection install -r /path/to/requirements.yml - To use the collection in your Ansible playbooks, include it like this: -```yaml +```yaml {filename="playbook.yml"} --- - name: Example Playbook hosts: localhost diff --git a/content/docs/ansible/core/_index.md b/content/docs/ansible/core/_index.md index c895477..36984de 100644 --- a/content/docs/ansible/core/_index.md +++ b/content/docs/ansible/core/_index.md @@ -28,9 +28,10 @@ Before you begin, ensure you have the following prerequisites: {{< tabs items="CLI,requirements.yml" >}} {{< tab >}} + **Using Command Line Interface (CLI):** -```bash +```bash {filename="Shell"} # install collection from source $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-core.git @@ -38,14 +39,17 @@ $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-core $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-core.git,1.0.0 ``` +--- + {{< /tab >}} {{< tab >}} + **Using a** `requirements.yml` **File:** 1. Create a file named `requirements.yml` in your workspace. 2. Add the following content to your `requirements.yml` file: -```yaml +```yaml {filename="requirements.yml"} collections: - name: https://gitpot.dev/lunivity/ansible-core.git type: git @@ -54,10 +58,12 @@ $ ansible-galaxy collection install git+https://gitpot.dev/lunivity/ansible-core - Install the collection by running the following command in your workspace: -```bash +```bash {filename="Shell"} ansible-galaxy collection install -r /path/to/requirements.yml ``` +--- + {{< /tab >}} {{< /tabs >}} @@ -65,7 +71,7 @@ ansible-galaxy collection install -r /path/to/requirements.yml - To use the collection in your Ansible playbooks, include it like this: -```yaml +```yaml {filename="playbook.yml"} --- - name: Example Playbook hosts: localhost diff --git a/hugo.yml b/hugo.yml index 3792e68..69205dd 100644 --- a/hugo.yml +++ b/hugo.yml @@ -17,6 +17,10 @@ params: link: / width: 32 height: 32 + footer: + enable: true + displayCopyright: true + displayPoweredBy: true # Edit URL editURL: enable: true @@ -24,12 +28,13 @@ params: # Page page: width: wide + menu: main: - name: Home pageRef: / weight: 1 - - name: Documentations + - name: Documentation pageRef: /docs weight: 2 - name: Services @@ -61,3 +66,13 @@ menu: - name: "Legal ↗" url: "https://lunivity.com/legal" weight: 993 + +markup: + # allow raw html + goldmark: + renderer: + unsafe: true + + # enable hextra syntax highlight + highlight: + noClasses: false diff --git a/i18n/en.yml b/i18n/en.yml index 62dccd4..3887960 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -11,4 +11,4 @@ onThisPage: "On this page" poweredBy: "Powered by Hugo and Hextra" readMore: "Read more →" searchPlaceholder: "Search the universe..." -copyright: "© 2024 Lunivity" \ No newline at end of file +copyright: "© 2024, Lunivity Contributors. Content licensed under the CC BY-NC-SA 4.0, unless specified." \ No newline at end of file