From 59b91f43534438b6e5d6be323b45ea519121185f Mon Sep 17 00:00:00 2001 From: Sangelo Date: Tue, 9 Jan 2024 16:56:41 +0100 Subject: [PATCH] Initial Commit --- .gitignore | 5 + .hugo_build.lock | 0 archetypes/default.md | 5 + assets/css/custom.css | 7 + assets/css/syntax.css | 427 ++++++++++++++++++++++++++++++++++++ content/_index.md | 6 + content/docs/_index.md | 68 ++++++ content/docs/test/_index.md | 1 + content/docs/test/test.md | 1 + content/guides/_index.md | 1 + content/services/_index.md | 1 + go.mod | 5 + go.sum | 2 + hugo.yml | 61 ++++++ i18n/en.yml | 14 ++ static/img/logo.svg | 22 ++ 16 files changed, 626 insertions(+) create mode 100644 .gitignore create mode 100644 .hugo_build.lock create mode 100644 archetypes/default.md create mode 100644 assets/css/custom.css create mode 100644 assets/css/syntax.css create mode 100644 content/_index.md create mode 100644 content/docs/_index.md create mode 100644 content/docs/test/_index.md create mode 100644 content/docs/test/test.md create mode 100644 content/guides/_index.md create mode 100644 content/services/_index.md create mode 100644 go.mod create mode 100644 go.sum create mode 100644 hugo.yml create mode 100644 i18n/en.yml create mode 100644 static/img/logo.svg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d588583 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +public/ +resources/_gen/ + +dist +tmp diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..afbf04b --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,7 @@ +/* @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 new file mode 100644 index 0000000..03809de --- /dev/null +++ b/assets/css/syntax.css @@ -0,0 +1,427 @@ +/* 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 new file mode 100644 index 0000000..627dce9 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,6 @@ +--- +# title: 'Lunivity Wiki' +toc: false +--- + +# Lunivity Wiki diff --git a/content/docs/_index.md b/content/docs/_index.md new file mode 100644 index 0000000..ae215de --- /dev/null +++ b/content/docs/_index.md @@ -0,0 +1,68 @@ +# Documentation + +```yaml {filename="hugo.yml"} + +baseURL: 'https://wiki.lunivity.com/' +languageCode: 'en-us' +title: 'Lunivity Wiki' + +module: + imports: + - path: "github.com/imfing/hextra" + +params: + # Navbar + navbar: + displayTitle: false + displayLogo: true + logo: + path: img/logo.svg + # dark: img/logo-dark.svg + link: / + width: 32 + height: 32 + # Edit URL + editURL: + enable: true + base: "https://gitpot.dev/lunivity/wiki/_edit/main/" + +menu: + main: + - name: Home + pageRef: / + weight: 1 + - name: Documentations + pageRef: /docs + weight: 2 + - name: Services + pageRef: /services + weight: 3 + - name: Guides + pageRef: /guides + weight: 4 + - name: Search + weight: 5 + params: + type: search + # - name: Gitpot + # weight: 5 + # url: "https://gitpot.dev/lunivity" + # params: + # icon: git + sidebar: + - name: Links + params: + type: separator + weight: 991 + - name: "Homepage ↗" + url: "https://lunivity.com/" + weight: 992 + - name: "Authentik ↗" + url: "https://auth.lunivity.com/" + weight: 993 + - name: "Legal ↗" + url: "https://lunivity.com/legal" + weight: 993 + + +``` diff --git a/content/docs/test/_index.md b/content/docs/test/_index.md new file mode 100644 index 0000000..8ae0569 --- /dev/null +++ b/content/docs/test/_index.md @@ -0,0 +1 @@ +# Test diff --git a/content/docs/test/test.md b/content/docs/test/test.md new file mode 100644 index 0000000..f00b526 --- /dev/null +++ b/content/docs/test/test.md @@ -0,0 +1 @@ +# Testing diff --git a/content/guides/_index.md b/content/guides/_index.md new file mode 100644 index 0000000..50a8673 --- /dev/null +++ b/content/guides/_index.md @@ -0,0 +1 @@ +# Guides diff --git a/content/services/_index.md b/content/services/_index.md new file mode 100644 index 0000000..8e5b66b --- /dev/null +++ b/content/services/_index.md @@ -0,0 +1 @@ +# Services diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..01826e4 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module gitpot.dev/lunivity/wiki + +go 1.21.5 + +require github.com/imfing/hextra v0.7.1 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..b82e1f4 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/imfing/hextra v0.7.1 h1:hj5n0kDFYoZW//p5MlCC6A2y6cLKEHkag8OXVZq1EWI= +github.com/imfing/hextra v0.7.1/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= diff --git a/hugo.yml b/hugo.yml new file mode 100644 index 0000000..65e7664 --- /dev/null +++ b/hugo.yml @@ -0,0 +1,61 @@ +baseURL: 'https://wiki.lunivity.com/' +languageCode: 'en-us' +title: 'Lunivity Wiki' + +module: + imports: + - path: "github.com/imfing/hextra" + +params: + # Navbar + navbar: + displayTitle: false + displayLogo: true + logo: + path: img/logo.svg + # dark: img/logo-dark.svg + link: / + width: 32 + height: 32 + # Edit URL + editURL: + enable: true + base: "https://gitpot.dev/lunivity/wiki/_edit/main/" + +menu: + main: + - name: Home + pageRef: / + weight: 1 + - name: Documentations + pageRef: /docs + weight: 2 + - name: Services + pageRef: /services + weight: 3 + - name: Guides + pageRef: /guides + weight: 4 + - name: Search + weight: 5 + params: + type: search + # - name: Gitpot + # weight: 5 + # url: "https://gitpot.dev/lunivity" + # params: + # icon: git + sidebar: + - name: Links + params: + type: separator + weight: 991 + - name: "Homepage ↗" + url: "https://lunivity.com/" + weight: 992 + - name: "Authentik ↗" + url: "https://auth.lunivity.com/" + weight: 993 + - name: "Legal ↗" + url: "https://lunivity.com/legal" + weight: 993 diff --git a/i18n/en.yml b/i18n/en.yml new file mode 100644 index 0000000..29f27a2 --- /dev/null +++ b/i18n/en.yml @@ -0,0 +1,14 @@ +backToTop: "Scroll to top" +changeLanguage: "Change language" +changeTheme: "Change theme" +copyCode: "Copy code" +copyright: "© 2024 Lunivity" +dark: "Dark" +editThisPage: "Edit this page on Gitpot →" +lastUpdated: "Last updated on" +light: "Light" +noResultsFound: "No results found." +onThisPage: "On this page" +poweredBy: "Powered by Hextra" +readMore: "Read more →" +searchPlaceholder: "Search..." \ No newline at end of file diff --git a/static/img/logo.svg b/static/img/logo.svg new file mode 100644 index 0000000..2f70747 --- /dev/null +++ b/static/img/logo.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file