Attempt to add Decap CMS

This commit is contained in:
Nicholas Horwood 2024-03-05 10:15:02 +00:00
parent 3c606b9f57
commit 722734f98e
4 changed files with 59 additions and 0 deletions

1
site/README.md Normal file
View File

@ -0,0 +1 @@
This is not a test, this is rock and roll

22
site/admin/config.yml Normal file
View File

@ -0,0 +1,22 @@
backend:
name: gitea
repo: nicholas/docsify # Path to your Gitea repository
app_id: 33acc7a8-da11-4fce-acd5-970ff5c9bad3 # The Client ID provided by Gitea
api_root: https://gitea.bigyellowfish.com/api/v1 # API URL of your Gitea instance
base_url: https://gitea.bigyellowfish.com # Root URL of your Gitea instance
auth_endpoint: https://gitea.bigyellowfish.com/login/oauth/authorize
# optional, defaults to master
# branch: main
media_folder: "assets/images"
site_url: https://docs.bigyellowfish.com
collections:
- label: "Pages"
name: Pages
files:
- label: "Landing Page"
name: readme
file: "site/README.md"
fields:
- {label: Intro, name: intro, widget: markdown}

13
site/admin/index.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<title>Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>

23
site/index.html Normal file
View File

@ -0,0 +1,23 @@
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta charset="UTF-8" />
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css"
/>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
//...
};
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
</body>
</html>