Compare commits

...
2 Commits
Author SHA1 Message Date
julienfastre 210823c23a Update Dockerfile to include Sveltia CMS admin files in user documentation build
Build and Push MkDocs Docker Image / build-and-push (push) Successful in 1m43s
2026-08-26 21:53:25 +02:00
julienfastre 474ca42172 Add Sveltia CMS configuration and admin interface files 2026-08-26 21:53:25 +02:00
3 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ COPY pandoc/filters pandoc/filters
COPY user/ user/ COPY user/ user/
COPY admin/ admin/ COPY admin/ admin/
RUN cd user && mkdocs build --clean && cd .. RUN cd user && mkdocs build --clean && cp -r sveltia/_admin site/. && cd ..
RUN cd admin && mkdocs build --clean && cd .. RUN cd admin && mkdocs build --clean && cd ..
# -------- Stage 2: Serve the built documentation with nginx -------- # -------- Stage 2: Serve the built documentation with nginx --------
+20
View File
@@ -0,0 +1,20 @@
# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
backend:
name: gitea
repo: Chill-project/manuals
base_url: https://gitea.champs-libres.be
api_root: https://gitea.champs-libres.be/api/v1
media_folder: /user/docs
# public_folder: /user/site/media
collections:
- name: docs
label: Documentations
label_singular: Documentation
folder: /user/docs
format: raw
extension: md
fields:
- { label: Body, name: body, widget: markdown }
+11
View File
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="robots" content="noindex" />
<title>Sveltia CMS</title>
</head>
<body>
<script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>
</body>
</html>