Add basic Decap CMS files

This commit is contained in:
basebuilder 2024-02-05 18:29:35 +01:00
parent 39ab74b9b8
commit a3d16bd0b6
2 changed files with 38 additions and 0 deletions

26
docs/admin/config.yml Normal file
View File

@ -0,0 +1,26 @@
display_url: "https://docs.coopcloud.tech/"
logo_url: "/img/coop_cloud_logo_pink.png"
backend:
name: gitea
repo: coop-cloud/docs.coopcloud.tech
branch: main
app_id: c5bb5fe3-d24d-4246-b790-7455a271d1e8
site_domain: docs.coopcloud.tech
api_root: https://git.coopcloud.tech/api/v1
base_url: https://git.coopcloud.tech
auth_endpoint: https://git.coopcloud.tech/login/oauth/authorize
media_folder: img
public_folder: /img
collections:
- name: 'docs'
label: 'Docs'
create: true
folder: 'docs/'
slug: '{{slug}}'
fields:
- label: 'Title'
name: 'title'
widget: 'string'
- label: "Body"
name: "body"
widget: "markdown"

12
docs/admin/index.html Normal file
View File

@ -0,0 +1,12 @@
<!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>Co-op Cloud: Docs Editor</title>
</head>
<body>
<script src="https://unpkg.com/decap-cms@latest/dist/decap-cms.js"></script>
</body>
</html>