From c1bd58e64fd5f4173141146be9f1a89237572d47 Mon Sep 17 00:00:00 2001 From: "Sean (ANGRYxScotsman)" <36518683+seanh1995@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:45:56 +0000 Subject: [PATCH 1/5] add docs --- .gitignore | 7 ++++++- Docs/archetypes/default.md | 5 +++++ Docs/hugo.toml | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Docs/archetypes/default.md create mode 100644 Docs/hugo.toml diff --git a/.gitignore b/.gitignore index 3037965..4c0af10 100644 --- a/.gitignore +++ b/.gitignore @@ -403,4 +403,9 @@ FodyWeavers.xsd # JetBrains software .idea/ -MicroWin_DT/ \ No newline at end of file +MicroWin_DT/ + +# Hugo Files +docs/public/ +docs/.hugo_build.lock +docs/resources/ \ No newline at end of file diff --git a/Docs/archetypes/default.md b/Docs/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/Docs/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/Docs/hugo.toml b/Docs/hugo.toml new file mode 100644 index 0000000..08a0327 --- /dev/null +++ b/Docs/hugo.toml @@ -0,0 +1,3 @@ +baseURL = 'https://example.org/' +languageCode = 'en-us' +title = 'Microwin Documentation' From bbd3922b6b8bf128b92bb73597a9d85ef12f4e4f Mon Sep 17 00:00:00 2001 From: "Sean (ANGRYxScotsman)" <36518683+seanh1995@users.noreply.github.com> Date: Thu, 12 Feb 2026 17:29:08 +0000 Subject: [PATCH 2/5] added theme --- Docs/archetypes/default.md | 11 ++- Docs/content/CONTRIBUTING.md | 4 + Docs/content/KnownIssues.md | 5 + Docs/content/_index.md | 7 ++ Docs/content/dev/_index.md | 12 +++ Docs/content/dev/architecture.md | 6 ++ Docs/content/faq.md | 5 + Docs/content/userguide/_index.md | 5 + Docs/content/userguide/getting-started.md | 4 + Docs/go.mod | 5 + Docs/go.sum | 4 + Docs/hugo.toml | 112 ++++++++++++++++++++- Docs/i18n/en.yaml | 24 +++++ Docs/layouts/shortcodes/autolinks.html | 17 ++++ Docs/layouts/shortcodes/image.html | 114 ++++++++++++++++++++++ 15 files changed, 327 insertions(+), 8 deletions(-) create mode 100644 Docs/content/CONTRIBUTING.md create mode 100644 Docs/content/KnownIssues.md create mode 100644 Docs/content/_index.md create mode 100644 Docs/content/dev/_index.md create mode 100644 Docs/content/dev/architecture.md create mode 100644 Docs/content/faq.md create mode 100644 Docs/content/userguide/_index.md create mode 100644 Docs/content/userguide/getting-started.md create mode 100644 Docs/go.mod create mode 100644 Docs/go.sum create mode 100644 Docs/i18n/en.yaml create mode 100644 Docs/layouts/shortcodes/autolinks.html create mode 100644 Docs/layouts/shortcodes/image.html diff --git a/Docs/archetypes/default.md b/Docs/archetypes/default.md index 25b6752..3e72f68 100644 --- a/Docs/archetypes/default.md +++ b/Docs/archetypes/default.md @@ -1,5 +1,6 @@ -+++ -date = '{{ .Date }}' -draft = true -title = '{{ replace .File.ContentBaseName "-" " " | title }}' -+++ +--- +title: '{{ replace .File.ContentBaseName "-" " " | title }}' +description: "" +date: '{{ .Date }}' +draft: true +--- diff --git a/Docs/content/CONTRIBUTING.md b/Docs/content/CONTRIBUTING.md new file mode 100644 index 0000000..cca0ec5 --- /dev/null +++ b/Docs/content/CONTRIBUTING.md @@ -0,0 +1,4 @@ +--- +toc: true +--- + diff --git a/Docs/content/KnownIssues.md b/Docs/content/KnownIssues.md new file mode 100644 index 0000000..d4e7466 --- /dev/null +++ b/Docs/content/KnownIssues.md @@ -0,0 +1,5 @@ +--- +title: Known Issues +toc: true +--- + diff --git a/Docs/content/_index.md b/Docs/content/_index.md new file mode 100644 index 0000000..1e45eee --- /dev/null +++ b/Docs/content/_index.md @@ -0,0 +1,7 @@ +--- +title: Welcome to MicroWin Documentation! +toc: false +width: full +--- + + diff --git a/Docs/content/dev/_index.md b/Docs/content/dev/_index.md new file mode 100644 index 0000000..8269c7a --- /dev/null +++ b/Docs/content/dev/_index.md @@ -0,0 +1,12 @@ +--- +title: Developer Reference +weight: 3 +toc: false +--- + +> [!NOTE] +> This section contains technical documentation for developers. For end-user documentation, see the [User Guide](../userguide/). + +## Architecture + +- [Architecture & Design](architecture/) - Code structure, data flow, and how Microwin works internally diff --git a/Docs/content/dev/architecture.md b/Docs/content/dev/architecture.md new file mode 100644 index 0000000..eee17f9 --- /dev/null +++ b/Docs/content/dev/architecture.md @@ -0,0 +1,6 @@ +--- +title: Architecture & Design +weight: 1 +toc: true +--- + diff --git a/Docs/content/faq.md b/Docs/content/faq.md new file mode 100644 index 0000000..16a3d86 --- /dev/null +++ b/Docs/content/faq.md @@ -0,0 +1,5 @@ +--- +title: Frequently Asked Questions +toc: true +--- + diff --git a/Docs/content/userguide/_index.md b/Docs/content/userguide/_index.md new file mode 100644 index 0000000..2d4a347 --- /dev/null +++ b/Docs/content/userguide/_index.md @@ -0,0 +1,5 @@ +--- +title: User Guide +weight: 2 +--- + diff --git a/Docs/content/userguide/getting-started.md b/Docs/content/userguide/getting-started.md new file mode 100644 index 0000000..538f591 --- /dev/null +++ b/Docs/content/userguide/getting-started.md @@ -0,0 +1,4 @@ +--- +title: Getting Started with Microwin +weight: 1 +--- diff --git a/Docs/go.mod b/Docs/go.mod new file mode 100644 index 0000000..54c0117 --- /dev/null +++ b/Docs/go.mod @@ -0,0 +1,5 @@ +module github.com/CodingWonders/MicroWin + +go 1.23.3 + +require github.com/imfing/hextra v0.11.1 // indirect diff --git a/Docs/go.sum b/Docs/go.sum new file mode 100644 index 0000000..d49a8e9 --- /dev/null +++ b/Docs/go.sum @@ -0,0 +1,4 @@ +github.com/imfing/hextra v0.9.7 h1:Zg5n24us36Bn/S/5mEUPkRW6uwE6vHHEqWSgN0bPXaM= +github.com/imfing/hextra v0.9.7/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= +github.com/imfing/hextra v0.11.1 h1:8pTc4ReYbzGTHAnyiebmlT3ijFfIXiGu1r7tM/UGjFI= +github.com/imfing/hextra v0.11.1/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= diff --git a/Docs/hugo.toml b/Docs/hugo.toml index 08a0327..3ca659d 100644 --- a/Docs/hugo.toml +++ b/Docs/hugo.toml @@ -1,3 +1,109 @@ -baseURL = 'https://example.org/' -languageCode = 'en-us' -title = 'Microwin Documentation' +baseURL = "example.com" +languageCode = "en-us" +title = "Microwin Documentation" +enableGitInfo = true +canonifyURLs = true + +[[module.mounts]] + source = "assets" + target = "assets" + +[[module.imports]] +path = "github.com/imfing/hextra" + +[[menu.main]] +name = "Developer Documentation" +pageRef = "/dev" +weight = 1 + +[[menu.main]] +name = "User Guides" +pageRef = "/userguide" +weight = 2 + +[[menu.main]] +name = "Contribution Guides" +pageRef = "CONTRIBUTING.md" +weight = 3 + +[[menu.main]] +name = "FAQ" +pageRef = "faq.md" +weight = 4 + +[[menu.main]] +name = "Known Issues" +pageRef = "KnownIssues.md" +weight = 4 + +[[menu.main]] +name = "Search" +weight = 6 + + [menu.main.params] + type = "search" + +[[menu.main]] +name = "GitHub" +weight = 7 +url = "https://github.com/CodingWonders/MicroWin" + + [menu.main.params] + icon = "github" + +[params] +description = "Microwin Windows Utility - Customize Your windows iso" +displayUpdatedDate = true +dateFormat = "January 2, 2006" + + [params.navbar] + displayTitle = false + displayLogo = true + + [params.navbar.logo] + path = "navlogo.png" + dark = "navlogo.png" + link = "/" + width = 150 + height = 50 + + [params.theme] + default = "system" + displayToggle = true + + [params.page] + width = "wide" + + [params.footer] + enable = true + displayCopyright = true + displayPoweredBy = false + width = "normal" + +[params.highlight.copy] +enable = true +display = "hover" + +[menu] + + [[menu.sidebar]] + name = "Links" + weight = 1 + [menu.sidebar.params] + type = "separator" + + [[menu.sidebar]] + name = "Github Repo ↗" + url = "https://github.com/CodingWonders/MicroWin" + weight = 2 + + [[menu.sidebar]] + name = "Discord Server ↗" + url = "" + weight = 3 + + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true diff --git a/Docs/i18n/en.yaml b/Docs/i18n/en.yaml new file mode 100644 index 0000000..ce05c19 --- /dev/null +++ b/Docs/i18n/en.yaml @@ -0,0 +1,24 @@ +copyright: "© Microwin. All rights reserved." + +backToTop: "Scroll to top" +changeLanguage: "Change language" +changeTheme: "Change theme" +copy: "Copy" +copied: "Copied!" +copyAsMarkdown: "Copy as Markdown" +copyPage: "Copy Page" +copyCode: "Copy code" +dark: "Dark" +editThisPage: "Edit this page on GitHub →" +lastUpdated: "Last updated on" +light: "Light" +next: "Next" +noResultsFound: "No results found." +onThisPage: "On this page" +poweredBy: "" +previous: "Prev" +readMore: "Read more →" +searchPlaceholder: "Search..." +system: "System" +tags: "Tags" +viewAsMarkdown: "View as Markdown" diff --git a/Docs/layouts/shortcodes/autolinks.html b/Docs/layouts/shortcodes/autolinks.html new file mode 100644 index 0000000..9243b03 --- /dev/null +++ b/Docs/layouts/shortcodes/autolinks.html @@ -0,0 +1,17 @@ +{{- $section := .Get "section" | lower -}} +{{- $pages := slice -}} +{{- range .Site.RegularPages -}} +{{- if in .RelPermalink $section -}} +{{- $pageTitle := .Title -}} +{{- if eq $pageTitle "" -}} + {{- $pageTitle = .File.BaseFileName | humanize | title -}} +{{- end -}} +{{- $pageDesc := .Description -}} +{{- $pages = $pages | append (dict "title" $pageTitle "description" $pageDesc "url" .RelPermalink) -}} +{{- end -}} +{{- end -}} +