From a6305438b92f4c6ebfbe8e01bdac53576411e4a2 Mon Sep 17 00:00:00 2001 From: recoolcz Date: Tue, 8 Apr 2025 06:48:11 +0000 Subject: [PATCH] Fix CAD Files Preview section (#200) CAD Preview section is broken on live website (bad markup usage). Hopefully fixed it :D Thanks a lot Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/docs/pulls/200 Reviewed-by: Lunny Xiao Co-authored-by: recoolcz Co-committed-by: recoolcz --- docs/administration/customizing-gitea.md | 30 ++++++++++++++---------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/docs/administration/customizing-gitea.md b/docs/administration/customizing-gitea.md index 7eb07930..f93805ce 100644 --- a/docs/administration/customizing-gitea.md +++ b/docs/administration/customizing-gitea.md @@ -172,15 +172,16 @@ You can implement your own CAD file viewer inside your Gitea instance. This implementation supports 3D preview for of these file formats: '3dm', '3ds', '3mf', 'amf', 'bim', 'brep', 'dae', 'fbx', 'fcstd', 'glb', 'gltf', 'ifc', 'igs', 'iges', 'stp', 'step', 'stl', 'obj', 'off', 'ply', 'wrl' +(Only v2 for .gltf files) - -Add template +Part 1: Add template In $GITEA_CUSTOM we need to add our template. This template needs to be saved in "$GITEA_CUSTOM/templates/custom/". Here create file "footer.tmpl" and add following text into it: -```