-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.json
148 lines (148 loc) · 12.3 KB
/
index.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[
{
"uri": "https://eeditiones.github.io/tuttle-doc/getstarted/tuttle/",
"title": "What is Tuttle?",
"tags": ["git", "tuttle"],
"description": "",
"content": "Tuttle is an eXist-db application that adds version control to data collections in eXist-db.\nIt is part of and published by the e-editiones society and can be used by other eXist-db applications such as TEI Publisher to synchronize data collections between the database and a Git repository.\nTuttle wraps the APIs of the Git service providers under a single, common OpenAPI allowing projects to seemlessly add version control to their data.\nModes of operation Tuttle offers 2 modes of operation:\n \u0026lsquo;Git2DB\u0026rsquo; \u0026lsquo;App2Git\u0026rsquo; in the pictures below the Github Logo is used but Gitlab can be used the same way\n Git to DB In this scenario users use their own tools to edit documents and push their changes to a git repository.\nWith Tuttle enabled the configured eXist-db collection can be updated completely or incrementally on request or by using a git workflow for automatic deployment.\nApp to Git An application may choose to use the Tuttle application to synchronize their database collections to a Git repository and allow users without Git knowledge to version their documents.\nIn this case the application will use the Tuttle API to offer a custom integration into its user interface.\n"
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/faq/types/",
"title": "Which Git providers are supported?",
"tags": ["github", "gitlab"],
"description": "",
"content": "Tuttle supports either Github and Gitlab repositories.\n"
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/getstarted/",
"title": "Get started",
"tags": [],
"description": "",
"content": " "
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/getstarted/requirements/",
"title": "What is needed to use Tuttle?",
"tags": ["requirements", "setup", "Github", "Gitlab"],
"description": "",
"content": "1. Access to a repository To use Tuttle access to a repository on Github or Gitlab is necessary. This can be public or private repositories. On-premise servers will of course also work.\n2. Tuttle application You can install the Tuttle application from the eXist-db public repository by using the eXist-db Dashboard.\n3. Access token In order to authenticate to the VCS (version control system) and being allowed to access its API a \u0026lsquo;personal access token\u0026rsquo; is needed. This can be obtained from the respective service-provider.\nSee \u0026lsquo;how to get an auth token\u0026rsquo;\n4. Data collection The data collection that is referred to in the Tuttle configuration must exist (even if empty) before you can deploy data to it. Otherwise Tuttle will fail to deploy the data.\n"
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/faq/multiple/",
"title": "Can i have multiple repositories?",
"tags": ["git", "repository", "Github", "Gitlab"],
"description": "",
"content": "Yes. It\u0026rsquo;s possible to configure multiple repositories even of different types.\nSo for instance you can have one Gitlab repository connected to one target collection in the database and another collection that is bound to a Github repository somewhere else.\nEach configuration item will correspond to exactly one target collection. However target collections must not be nested as that would cause trouble.\n"
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/",
"title": "Frequently Asked Questions",
"tags": [],
"description": "",
"content": "Tuttle Documentation This is the documentation site for \u0026lsquo;Tuttle - a eXist-db Git integration\u0026rsquo;\nThis website contains:\n Get started Frequently Asked Questions How to contribute to this FAQ Proposing new entries If you\u0026rsquo;d like to propose an entry not having it all prepared yet, please consider creating a ticket in the issue tracker. You can suggest a topic, solicit opinions and also subsequently collaborate and discuss the shape of the corresponding article in there.\nThe website is directly generated from the markdown files stored in the content subdirectory of the github repository. All contributions are welcome.\nQuick edits via GitHub You can make changes to any existing page by clicking on the Edit this page link at the top right of the page. All you need is a GitHub user account. Clicking the link will open the corresponding markdown file on github for editing and you can start applying your changes immediately.\nTo add new files, navigate to the correct subdirectory in the github repository and press the Add file button on the top right above the directory listing. Files should be markdown, i.e. the file name must end with .md.\nOnce you are done with editing, fill out the Propose changes form at the bottom of the page and click the green button. Changes will not go live immediately. Instead, you are asked to create a so called pull request, which will then be reviewed by a core team member. You do not need to fill out anything if you already provided a description of your changes, so just press the green Create pull request button (also on the followup page).\nTo work on larger, new articles we recommend to write your text offline first in an editor of your choice. Most text editors (including oXygen) provide some support for writing markdown. You can then upload your new file using Add files (see above).\nForking the repo To work on more than just one article at a time, it is better to fork the faq repository and clone it to your local machine. Once you\u0026rsquo;re done, commit the changes to your fork and open a pull request on the source repository.\nTo preview your changes locally, you need to install a software package called hugo. Next, clone the repository to your local machine, cd into it and run the following command once to load the require theme for the FAQ:\ngit submodule update --init --recursive You may then start a local hugo server with\nhugo server "
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/getstarted/configuration/",
"title": "How to configure Tuttle?",
"tags": ["git", "tuttle", "github", "gitlab", "configuration"],
"description": "",
"content": "Tuttle is configured in modules/config.xqm in your Tuttle installation.\nYou may use eXide to edit the config.xqm.\nBelow is an example configuration that shows an example for either Github and Gitlab. Due to the different API of these services the configuration differs sligtly. See parameter description below.\n(:~ : Git configuration :) declare variable $config:collections := map { \u0026quot;sample-collection-github\u0026quot; : map { \u0026quot;vcs\u0026quot; : \u0026quot;github\u0026quot;, \u0026quot;baseurl\u0026quot; : \u0026quot;https://api.github.com/\u0026quot;, \u0026quot;ref\u0026quot; : \u0026quot;master\u0026quot;, \u0026quot;token\u0026quot; : \u0026quot;146152be6a9xxxxxxxxxxx71da8f3e4faf263\u0026quot;, \u0026quot;hookuser\u0026quot; : \u0026quot;admin\u0026quot;, \u0026quot;hookpasswd\u0026quot; : \u0026quot;\u0026quot; \u0026quot;owner\u0026quot; : \u0026quot;Jinntec\u0026quot;, \u0026quot;repo\u0026quot; : \u0026quot;tuttle-demo\u0026quot; }, \u0026quot;sample-collection-gitlab\u0026quot; : map { \u0026quot;vcs\u0026quot; : \u0026quot;gitlab\u0026quot;, \u0026quot;baseurl\u0026quot; : \u0026quot;https://gitlab.com/api/v4/\u0026quot;, \u0026quot;ref\u0026quot; : \u0026quot;master\u0026quot;, \u0026quot;token\u0026quot; : \u0026quot;9vq6jmzxxxxxxxxxxobUfoM\u0026quot;, \u0026quot;hookuser\u0026quot; : \u0026quot;admin\u0026quot;, \u0026quot;hookpasswd\u0026quot; : \u0026quot;\u0026quot;, \u0026quot;project-id\u0026quot; : \u0026quot;25852323\u0026quot; } }; Common configuration parameters Configuration Parameter Description vcs can be either \u0026lsquo;github\u0026rsquo; or \u0026lsquo;gitlab\u0026rsquo; and signifies the type of repository baseurl the base URL of the Git Service e.g. \u0026lsquo;https://api.github.com ref the name of the branch to use token the authorization token for the Git service. This needs to be obtained for the respective service prior to operation. hookuser the user name used to talk to the service. hookpasswd the password for the hookuser Github Configuration Parameter Description owner the owning organisation in Github repo the repository name within the organisation The baseurl plus the above parameters are used to construct the URL to access the Github repository.\nGitlab Configuration Parameter Description project-id Gitlab identifier for the repository. Gitlab is using this id when being accessed via its API. It is listed on the homepage of the repository. baseurl plus project-id are used to construct the URL to access the Gitlab repository.\n"
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/faq/auth/",
"title": "How to get an auth token",
"tags": ["Github", "Gitlab", "Authentication"],
"description": "",
"content": "Please refer to the respective documention.\nGithub - creating a personal access token\nGitlab - Personal access tokens\n"
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/getstarted/use/",
"title": "how to use Tuttle?",
"tags": [],
"description": "",
"content": " in the pictures below the Github Logo is used but Gitlab can be used the same way\n From Git to eXist-db With \u0026lsquo;Git to DB\u0026rsquo; editors will work with their own tools and push changes to Git. The data are kept in Git and are deployed to eXist-db on demand or automatically by an Git action. Data can be updated completely or incrementally just applying the changes since last update.\nThere is a simple dashboard to trigger the updating of data and checking the status of connected repositories.\nWhen opening the dashboard the status of the configured repositories is requested. The colors of of the rows signal the status of the respective repository.\n color Status orange new - the repository is configured but has not yet been deployed into TEI Publisher. The \u0026lsquo;incremental\u0026rsquo; button is disabled as the data need to be checked out before. green up-to-date - the are no differences between data in the database and the repository. \u0026lsquo;Incremental\u0026rsquo; can be used to trigger update of differences. blue behind - the data in the database are behind the status in the repository. An update is needed red error - a configuration or connection problem occured From application to Git Configuration is the same as with \u0026lsquo;Git to DB\u0026rsquo;.\nThe difference is in which part of the Tuttle API is used by the consumer (the application). In this mode a application may offer a button to allow users to trigger the pushing of changes to a Git repository.\n"
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/git/",
"title": "git",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/github/",
"title": "Github",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/gitlab/",
"title": "Gitlab",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/",
"title": "Tags",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/tuttle/",
"title": "tuttle",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/requirements/",
"title": "requirements",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/setup/",
"title": "setup",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/repository/",
"title": "repository",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/authentication/",
"title": "Authentication",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/faq/",
"title": "Frequently Asked Questions",
"tags": [],
"description": "",
"content": "This chapter is about \u0026lsquo;Tuttle\u0026rsquo;, the Git version control extension for eXist-db.\n "
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/tags/configuration/",
"title": "configuration",
"tags": [],
"description": "",
"content": ""
},
{
"uri": "https://eeditiones.github.io/tuttle-doc/categories/",
"title": "Categories",
"tags": [],
"description": "",
"content": ""
}]