Browse Source

documentation of the config, worflow, and handled format

nas 3 years ago
parent
commit
3fbb803f2a
1 changed files with 64 additions and 0 deletions
  1. 64
    0
      README.md

+ 64
- 0
README.md View File

@@ -0,0 +1,64 @@
1
+# SyncWeb
2
+
3
+SyncWeb is a perl script aiming to synchronize various content accross the web. If we should make this tool accessible, we could never reach exhaustivity that we would need before writing a user friendly interface.
4
+So this is more dedicated to power user and integrators.
5
+
6
+## Workflow
7
+
8
+This script need two ressources :
9
+
10
+- configuration file
11
+- ressource list
12
+
13
+The ressource list will specify format of each ressource to get, the format to export, and where to export. The script wille visit these ressources, generate a signature (hash), and compare it to the signature of the last visit. If the signature change, the script will convernt and export the new content in the format and place specified.
14
+
15
+The content could be in an html tag, targeted by the specified css selector.
16
+
17
+### Configuration file
18
+
19
+The configuration file describe how to connect to a ressources; each ressources are in the import or the export section, depending if this connector is used to send a content or to get a content. CONNECTOR_TYPE has to be choosen between handled types, like :
20
+- file
21
+- sqlite3
22
+- mariadb
23
+
24
+```
25
+{
26
+	export => {
27
+	       NAME => {
28
+	       	    type => CONNECTOR_TYPE,
29
+		    […]
30
+	       },
31
+	       […]
32
+	},
33
+	import =>  {
34
+	       NAME => {
35
+	       	    […]
36
+	       }
37
+	}
38
+}
39
+```
40
+
41
+You could use many connectors of the same type you like, but each name shall be unique. The rest of the configuration depend of the type you use.
42
+
43
+#### file
44
+
45
+The file type may the most easy one :
46
+
47
+```
48
+type => 'file',
49
+path => 'relative/path/to/file'
50
+format => FORMAT
51
+```
52
+
53
+It would convert the content in the handled format, and write it to the file in the place at that path name. The FORMAT shall be choosen between the handled list :
54
+- markdown
55
+
56
+## Export type
57
+
58
+- sqlite3
59
+- mariadb
60
+- file
61
+
62
+## Our user case
63
+
64
+In our case, we want to let people use their own documentations repository (websites) and to centralize this data on a wiki.

Loading…
Cancel
Save