Wiki source code of Admin Guide

Last modified by Manuel Leduc on 2025/01/28 09:35

Hide last authors
Manuel Leduc 6.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
Manuel Leduc 3.1 2 {{toc/}}
Manuel Leduc 6.1 3 {{/box}}
Manuel Leduc 2.1 4
Manuel Leduc 3.1 5 = Configuration format =
6
7 This section describes the configuration format of the backends. This is usually stored in a ##config.json## file, but we plan to make it possible for users to edit their configuration directly in the user interface.
8
9 == General structure ==
10
11 The configuration is an object of key and values, for instance:
12
13 {{code language="json"}}
14 {
15 "XWiki": {},
16 "XWikiOffline": {},
17 "XWikiSL": {},
18 "Nextcloud": {}
19 }
20
21 {{/code}}
22
23 (% class="wikigeneratedid" %)
24 See below for the detail of each sub-object.
25
26 == Shared keys ==
27
28 * **configType**: the type of the backend. Accepted values: ##XWiki##, ##Nextcloud##, ##FileSystem##, ##GitHub##.
29 * **serverRendering**:
30 * **offline**: when ##true##, each page is cached locally and is refresh in the background if the backend is accessible. This is useful to browse already visited pages when offline.
31 * **baseURL**: the base url to access the backend
32 * **baseRestURL**: a segment concatenated to ##baseURL## to access the backend rest endpoint
33 * **homePage:** the [[page reference>>doc:Documentation.Extensions.Model.ModelReference.WebHome]] of the main page of the backend
Manuel Leduc 4.1 34 * **designSystem**: the identifier of the [[design system>>doc:UIComponents.WebHome||anchor="HAbstractDesignSystem"]] to use. Accepted values: ##vuetify##, and ##shoelace##.
Manuel Leduc 5.1 35 * **realtimeURL**: (optional) the URL of a [[real-time server>>doc:||anchor="HRealtime"]]. When this value is undefined, autosave is activated. When the value is defined, the editor connects to a real-time session on the provided server.
Manuel Leduc 3.1 36
37 == Backends ==
38
39 The sections below presents examples configurations for each supported [[backend>>doc:Backends.WebHome]].
40
41 === XWiki ===
42
43 {{code language="json"}}
44 {
45 "XWiki": {
46 "name": "XWiki",
47 "configType": "XWiki",
48 "serverRendering": false,
49 "offline": false,
50 "baseURL": "http://localhost:8080/xwiki",
51 "baseRestURL": "/rest/cristal/page?media=json",
52 "homePage": "Main.WebHome",
53 "designSystem": "vuetify"
54 }
55 }
56 {{/code}}
57
58 === Nextcloud ===
59
60 {{code language="json"}}
61 {
62 "Nextcloud": {
63 "name": "Nextcloud",
64 "configType": "Nextcloud",
65 "serverRendering": false,
66 "offline": false,
67 "baseURL": "http://localhost:9292/",
68 "baseRestURL": "http://localhost:9292/remote.php/dav/files",
69 "designSystem": "shoelace",
70 "homePage": "home"
71 }
72 }
73 {{/code}}
74
75 === Filesystem ===
76
77 {{code language="json"}}
78 {
79 "FileSystem": {
80 "name": "FileSystem",
81 "configType": "FileSystem",
82 "serverRendering": false,
83 "offline": false,
84 "designSystem": "shoelace"
85 }
86 }
87 {{/code}}
88
89 === Unsupported backends ===
90
91 ==== Github ====
92
93 {{code language="json"}}
94 {
95 "GitHub": {
96 "name": "GitHub",
97 "configType": "GitHub",
98 "serverRendering": false,
99 "offline": false,
100 "baseURL": "https://github.com/cristal-example/test/tree/master/",
101 "baseRestURL": "https://raw.githubusercontent.com/cristal-example/test/master/",
102 "homePage": "README.md",
103 "designSystem": "vuetify"
104 }
105 }
106 {{/code}}
Manuel Leduc 5.1 107
108 = Realtime =
109
110 Currently, Cristal supports a single real-time server based on [[hocuspocus>>https://tiptap.dev/docs/hocuspocus/introduction]].
111
112 An example can be found at [[https:~~/~~/github.com/xwiki-contrib/cristal/tree/main/realtime>>https://github.com/xwiki-contrib/cristal/tree/main/realtime]]
France 2030 Logo

This project is being financed by the French State as part of the France 2030 program

Ce projet est financé par l’État Français dans le cadre de France 2030

  • Powered by XWiki 18.4.6 - node1. Hosted and managed by XWiki SAS

Get Connected