From 76071b2d3b0ac6631842cd353dd32a1fa4e5537e Mon Sep 17 00:00:00 2001 From: KemoNine Date: Thu, 4 Jul 2024 13:12:21 -0400 Subject: [PATCH] remove static cms, update decap --- .../how-this-site-is-hosted-and-managed.md | 4 +- content/faq/tech-used.md | 7 +- .../static/admin/{mobile => }/config.yml | 0 .../hugo-xmin/static/admin/desktop/config.yml | 132 ------------------ .../hugo-xmin/static/admin/desktop/index.html | 16 --- themes/hugo-xmin/static/admin/index.html | 6 +- .../admin/{mobile => }/mobile-overrides.css | 0 .../hugo-xmin/static/admin/mobile/index.html | 15 -- 8 files changed, 8 insertions(+), 172 deletions(-) rename themes/hugo-xmin/static/admin/{mobile => }/config.yml (100%) delete mode 100644 themes/hugo-xmin/static/admin/desktop/config.yml delete mode 100644 themes/hugo-xmin/static/admin/desktop/index.html rename themes/hugo-xmin/static/admin/{mobile => }/mobile-overrides.css (100%) delete mode 100644 themes/hugo-xmin/static/admin/mobile/index.html diff --git a/content/faq/how-this-site-is-hosted-and-managed.md b/content/faq/how-this-site-is-hosted-and-managed.md index 207cb16..74ce1a3 100644 --- a/content/faq/how-this-site-is-hosted-and-managed.md +++ b/content/faq/how-this-site-is-hosted-and-managed.md @@ -95,7 +95,7 @@ This site is primarily developed using a text editor and file manager with git ( Each page of the site is a simple text file containing [markdown](https://en.wikipedia.org/wiki/Markdown) and can be edited with your preferred text editor. -This site also has two web based content edtiors setup and supported. They are very trim in terms of features and can be somewhat fiddly to use on a phone. However, they are robust text editors that facilitate text editing directly in the browser with some metadata support. These should allow more graphical editing for content managers that prefer a less 'pure text' type of environment. +This site also has a web based content editor setup. It is very trim in terms of features and can be somewhat fiddly to use on a phone. Long-term this area of the site will be looked at closer. For now it's not supported for editing this site. We even tested editing the contents of this website via the main GitHub website. It works, it's browser based and a really good option for those that prefer a simple web based text editor environment. @@ -135,4 +135,4 @@ All the technological amenities are very hands off and present to help with coll The only downside we have found so far is the GitHub interface overwhelming users and contributors initially. Hopefully the [_ Contributing _ page]({{< ref "faq/contributing" >}}) can help bridge this gap for our users and collaborators. -{{< back_to_top >}} \ No newline at end of file +{{< back_to_top >}} diff --git a/content/faq/tech-used.md b/content/faq/tech-used.md index 49f7213..4f02598 100644 --- a/content/faq/tech-used.md +++ b/content/faq/tech-used.md @@ -27,11 +27,8 @@ This website uses the following technologies to achive a highly accessible, free [hugo-xmin](https://github.com/yihui/hugo-xmin) : Main website theme, modified -[Static CMS](https://www.staticcms.org/) -: Web based editor for use with desktop browsers - [Decap](https://decapcms.org/) -: Web based editor for use with mobile browsers +: Web based editor [GitHub](https://github.com) : Version control, change management, issue tracking @@ -42,4 +39,4 @@ This website uses the following technologies to achive a highly accessible, free [NameCheap DNS](https://namecheap.com/) : DNS registrar and record managent -{{< back_to_top >}} \ No newline at end of file +{{< back_to_top >}} diff --git a/themes/hugo-xmin/static/admin/mobile/config.yml b/themes/hugo-xmin/static/admin/config.yml similarity index 100% rename from themes/hugo-xmin/static/admin/mobile/config.yml rename to themes/hugo-xmin/static/admin/config.yml diff --git a/themes/hugo-xmin/static/admin/desktop/config.yml b/themes/hugo-xmin/static/admin/desktop/config.yml deleted file mode 100644 index d7f1ae5..0000000 --- a/themes/hugo-xmin/static/admin/desktop/config.yml +++ /dev/null @@ -1,132 +0,0 @@ -site_url: https://kb.accessible.tips -display_url: https://kb.accessible.tips - -media_folder: "static/uploads" -public_folder: "/uploads" - -search: false - -backend: - name: git-gateway - branch: main - -collections: - - name: "blog" # Used in routes, e.g., /admin/collections/blog - label: "Blog" # Used in the UI - folder: "content/posts" # The path to the folder where the documents are stored - create: true # Allow users to create new documents in this collection - slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md - show_preview_links: true - preview_path: "posts/{{slug}}" - fields: # The fields for each document, usually in front matter - - {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true} - - {label: "Title", name: "title", widget: "string", required: true} - - name: authors - label: Authors - widget: list - required: true - collapsed: false - fields: - - name: author - label: Author - widget: string - - {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - - {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - - {label: "Show TOC?", name: "toc", widget: "boolean", default: true} - - {label: "Draft?", name: "draft", widget: "boolean", default: true} - - name: categories - label: Categories - widget: list - allow_add: false - allow_delete: false - collapsed: true - default: - - 'blog' - fields: - - name: category - label: Category - widget: string - - name: tags - label: Tags - widget: list - required: true - collapsed: false - fields: - - name: tag - label: Tag - widget: string - - name: body - label: Content - widget: markdown - default: >- - ## Changelog - - {{< changelog >}} - - {{< change 2000-12-30 "change 1" >}} - - {{< change 2000-12-31 "change 2" >}} - - {{< /changelog >}} - - {{< end_section >}} - - - name: "tips" # Used in routes, e.g., /admin/collections/blog - label: "Tips" # Used in the UI - folder: "content/tips" # The path to the folder where the documents are stored - create: true # Allow users to create new documents in this collection - slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md - show_preview_links: true - preview_path: "tips/{{slug}}" - fields: # The fields for each document, usually in front matter - - {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true} - - {label: "Title", name: "title", widget: "string", required: true} - - name: authors - label: Authors - widget: list - required: true - collapsed: false - fields: - - name: author - label: Author - widget: string - - {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - - {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - - {label: "Show TOC?", name: "toc", widget: "boolean", default: true} - - {label: "Draft?", name: "draft", widget: "boolean", default: true} - - name: categories - label: Categories - widget: list - allow_add: true - allow_delete: true - collapsed: true - default: - - 'tips' - fields: - - name: category - label: Category - widget: string - - name: tags - label: Tags - widget: list - required: true - collapsed: false - fields: - - name: tag - label: Tag - widget: string - - name: body - label: Content - widget: markdown - default: >- - ## Changelog - - {{< changelog >}} - - {{< change 2000-12-30 "change 1" >}} - - {{< change 2000-12-31 "change 2" >}} - - {{< /changelog >}} - - {{< end_section >}} diff --git a/themes/hugo-xmin/static/admin/desktop/index.html b/themes/hugo-xmin/static/admin/desktop/index.html deleted file mode 100644 index 60c55b5..0000000 --- a/themes/hugo-xmin/static/admin/desktop/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - Content Manager - - - - - - - diff --git a/themes/hugo-xmin/static/admin/index.html b/themes/hugo-xmin/static/admin/index.html index 516e40c..a29024c 100644 --- a/themes/hugo-xmin/static/admin/index.html +++ b/themes/hugo-xmin/static/admin/index.html @@ -4,10 +4,12 @@ + Content Manager -

Mobile Admin UI

-

Desktop Admin UI

+ + + diff --git a/themes/hugo-xmin/static/admin/mobile/mobile-overrides.css b/themes/hugo-xmin/static/admin/mobile-overrides.css similarity index 100% rename from themes/hugo-xmin/static/admin/mobile/mobile-overrides.css rename to themes/hugo-xmin/static/admin/mobile-overrides.css diff --git a/themes/hugo-xmin/static/admin/mobile/index.html b/themes/hugo-xmin/static/admin/mobile/index.html deleted file mode 100644 index 416173a..0000000 --- a/themes/hugo-xmin/static/admin/mobile/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - Content Manager - - - - - - -