aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/html/Versioning-and-Branches/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/Versioning-and-Branches/index.html')
-rw-r--r--doc/html/Versioning-and-Branches/index.html418
1 files changed, 418 insertions, 0 deletions
diff --git a/doc/html/Versioning-and-Branches/index.html b/doc/html/Versioning-and-Branches/index.html
new file mode 100644
index 00000000..406ad7f9
--- /dev/null
+++ b/doc/html/Versioning-and-Branches/index.html
@@ -0,0 +1,418 @@
1<!DOCTYPE html>
2<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
3<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
4<head>
5 <meta charset="utf-8">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
9
10 <link rel="shortcut icon" href="../img/favicon.ico">
11 <title>Versioning and Branches - Shaarli Documentation</title>
12 <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
13
14 <link rel="stylesheet" href="../css/theme.css" type="text/css" />
15 <link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
16 <link rel="stylesheet" href="../css/highlight.css">
17 <link href="../github-markdown.css" rel="stylesheet">
18
19 <script>
20 // Current page data
21 var mkdocs_page_name = "Versioning and Branches";
22 var mkdocs_page_input_path = "Versioning-and-Branches.md";
23 var mkdocs_page_url = "/Versioning-and-Branches/";
24 </script>
25
26 <script src="../js/jquery-2.1.1.min.js"></script>
27 <script src="../js/modernizr-2.8.3.min.js"></script>
28 <script type="text/javascript" src="../js/highlight.pack.js"></script>
29
30</head>
31
32<body class="wy-body-for-nav" role="document">
33
34 <div class="wy-grid-for-nav">
35
36
37 <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
38 <div class="wy-side-nav-search">
39 <a href=".." class="icon icon-home"> Shaarli Documentation</a>
40 <div role="search">
41 <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
42 <input type="text" name="q" placeholder="Search docs" />
43 </form>
44</div>
45 </div>
46
47 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
48 <ul class="current">
49
50
51 <li class="toctree-l1">
52
53 <a class="" href="..">Home</a>
54 </li>
55
56 <li class="toctree-l1">
57
58 <span class="caption-text">Setup</span>
59 <ul class="subnav">
60 <li class="">
61
62 <a class="" href="../Download-and-Installation/">Download and Installation</a>
63 </li>
64 <li class="">
65
66 <a class="" href="../Upgrade-and-migration/">Upgrade and migration</a>
67 </li>
68 <li class="">
69
70 <a class="" href="../Server-requirements/">Server requirements</a>
71 </li>
72 <li class="">
73
74 <a class="" href="../Server-configuration/">Server configuration</a>
75 </li>
76 <li class="">
77
78 <a class="" href="../Server-security/">Server security</a>
79 </li>
80 <li class="">
81
82 <a class="" href="../Shaarli-configuration/">Shaarli configuration</a>
83 </li>
84 <li class="">
85
86 <a class="" href="../Plugins/">Plugins</a>
87 </li>
88 </ul>
89 </li>
90
91 <li class="toctree-l1">
92
93 <span class="caption-text">Docker</span>
94 <ul class="subnav">
95 <li class="">
96
97 <a class="" href="../Docker-101/">Docker 101</a>
98 </li>
99 <li class="">
100
101 <a class="" href="../Shaarli-images/">Shaarli images</a>
102 </li>
103 <li class="">
104
105 <a class="" href="../Reverse-proxy-configuration/">Reverse proxy configuration</a>
106 </li>
107 <li class="">
108
109 <a class="" href="../Docker-resources/">Docker resources</a>
110 </li>
111 </ul>
112 </li>
113
114 <li class="toctree-l1">
115
116 <span class="caption-text">Usage</span>
117 <ul class="subnav">
118 <li class="">
119
120 <a class="" href="../Features/">Features</a>
121 </li>
122 <li class="">
123
124 <a class="" href="../Bookmarklet/">Bookmarklet</a>
125 </li>
126 <li class="">
127
128 <a class="" href="../Browsing-and-searching/">Browsing and searching</a>
129 </li>
130 <li class="">
131
132 <a class="" href="../Firefox-share/">Firefox share</a>
133 </li>
134 <li class="">
135
136 <a class="" href="../RSS-feeds/">RSS feeds</a>
137 </li>
138 <li class="">
139
140 <a class="" href="../REST-API/">REST API</a>
141 </li>
142 </ul>
143 </li>
144
145 <li class="toctree-l1">
146
147 <span class="caption-text">How To</span>
148 <ul class="subnav">
149 <li class="">
150
151 <a class="" href="../Backup,-restore,-import-and-export/">Backup, restore, import and export</a>
152 </li>
153 <li class="">
154
155 <a class="" href="../Copy-an-existing-installation-over-SSH-and-serve-it-locally/">Copy an existing installation over SSH and serve it locally</a>
156 </li>
157 <li class="">
158
159 <a class="" href="../Create-and-serve-multiple-Shaarlis-(farm)/">Create and serve multiple Shaarlis (farm)</a>
160 </li>
161 <li class="">
162
163 <a class="" href="../Download-CSS-styles-from-an-OPML-list/">Download CSS styles from an OPML list</a>
164 </li>
165 <li class="">
166
167 <a class="" href="../Datastore-hacks/">Datastore hacks</a>
168 </li>
169 </ul>
170 </li>
171
172 <li class="toctree-l1">
173
174 <a class="" href="../Troubleshooting/">Troubleshooting</a>
175 </li>
176
177 <li class="toctree-l1">
178
179 <span class="caption-text">Development</span>
180 <ul class="subnav">
181 <li class="">
182
183 <a class="" href="../Development-guidelines/">Development guidelines</a>
184 </li>
185 <li class="">
186
187 <a class="" href="../Continuous-integration-tools/">Continuous integration tools</a>
188 </li>
189 <li class="">
190
191 <a class="" href="../GnuPG-signature/">GnuPG signature</a>
192 </li>
193 <li class="">
194
195 <a class="" href="../Coding-guidelines/">Coding guidelines</a>
196 </li>
197 <li class="">
198
199 <a class="" href="../Directory-structure/">Directory structure</a>
200 </li>
201 <li class="">
202
203 <a class="" href="../3rd-party-libraries/">3rd party libraries</a>
204 </li>
205 <li class="">
206
207 <a class="" href="../Plugin-System/">Plugin System</a>
208 </li>
209 <li class="">
210
211 <a class="" href="../Release-Shaarli/">Release Shaarli</a>
212 </li>
213 <li class=" current">
214
215 <a class="current" href="./">Versioning and Branches</a>
216 <ul class="subnav">
217
218 <li class="toctree-l3"><a href="#master-branch">master branch</a></li>
219
220
221 <li class="toctree-l3"><a href="#v0x-branch">v0.x branch</a></li>
222
223
224 <li class="toctree-l3"><a href="#latest-branch">latest branch</a></li>
225
226
227 <li class="toctree-l3"><a href="#stable-branch">stable branch</a></li>
228
229
230 <li class="toctree-l3"><a href="#releases">Releases</a></li>
231
232
233 <li class="toctree-l3"><a href="#advices-on-3rd-party-git-repos-workflow">Advices on 3rd party git repos workflow</a></li>
234
235 <ul>
236
237 <li><a class="toctree-l4" href="#versioning">Versioning</a></li>
238
239 <li><a class="toctree-l4" href="#major-bugfix-backport-releases">Major bugfix backport releases</a></li>
240
241 </ul>
242
243
244 </ul>
245 </li>
246 <li class="">
247
248 <a class="" href="../Security/">Security</a>
249 </li>
250 <li class="">
251
252 <a class="" href="../Static-analysis/">Static analysis</a>
253 </li>
254 <li class="">
255
256 <a class="" href="../Theming/">Theming</a>
257 </li>
258 <li class="">
259
260 <a class="" href="../Unit-tests/">Unit tests</a>
261 </li>
262 </ul>
263 </li>
264
265 <li class="toctree-l1">
266
267 <span class="caption-text">About</span>
268 <ul class="subnav">
269 <li class="">
270
271 <a class="" href="../FAQ/">FAQ</a>
272 </li>
273 <li class="">
274
275 <a class="" href="../Community-&-Related-software/">Community & Related software</a>
276 </li>
277 </ul>
278 </li>
279
280 </ul>
281 </div>
282 &nbsp;
283 </nav>
284
285 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
286
287
288 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
289 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
290 <a href="..">Shaarli Documentation</a>
291 </nav>
292
293
294 <div class="wy-nav-content">
295 <div class="rst-content">
296 <div role="navigation" aria-label="breadcrumbs navigation">
297 <ul class="wy-breadcrumbs">
298 <li><a href="..">Docs</a> &raquo;</li>
299
300
301
302 <li>Development &raquo;</li>
303
304
305
306 <li>Versioning and Branches</li>
307 <li class="wy-breadcrumbs-aside">
308
309 <a href="https://github.com/shaarli/Shaarli/edit/master/docs/Versioning-and-Branches.md"
310 class="icon icon-github"> Edit on GitHub</a>
311
312 </li>
313 </ul>
314 <hr/>
315</div>
316 <div role="main">
317 <div class="section">
318
319 <p><strong>WORK IN PROGRESS</strong></p>
320<p>It's important to understand how Shaarli branches work, especially if you're maintaining a 3rd party tools for Shaarli (theme, plugin, etc.), to be sure stay compatible.</p>
321<h2 id="master-branch"><code>master</code> branch</h2>
322<p>The <code>master</code> branch is the development branch. Any new change MUST go through this branch using Pull Requests.</p>
323<p>Remarks:</p>
324<ul>
325<li>This branch shouldn't be used for production as it isn't necessary stable.</li>
326<li>3rd party aren't required to be compatible with the latest changes.</li>
327<li>Official plugins, themes and libraries (contained within Shaarli organization repos) must be compatible with the master branch.</li>
328<li>The version in this branch is always <code>dev</code>.</li>
329</ul>
330<h2 id="v0x-branch"><code>v0.x</code> branch</h2>
331<p>This <code>v0.x</code> branch, points to the latest <code>v0.x.y</code> release.</p>
332<p>Explanation:</p>
333<p>When a new version is released, it might contains a major bug which isn't detected right away. For example, a new PHP version is released, containing backward compatibility issue which doesn't work with Shaarli.</p>
334<p>In this case, the issue is fixed in the <code>master</code> branch, and the fix is backported the to the <code>v0.x</code> branch. Then a new release is made from the <code>v0.x</code> branch.</p>
335<p>This workflow allow us to fix any major bug detected, without having to release bleeding edge feature too soon.</p>
336<h2 id="latest-branch"><code>latest</code> branch</h2>
337<p>This branch point the latest release. It recommended to use it to get the latest tested changes.</p>
338<h2 id="stable-branch"><code>stable</code> branch</h2>
339<p>The <code>stable</code> branch doesn't contain any major bug, and is one major digit version behind the latest release.</p>
340<p>For example, the current latest release is <code>v0.8.3</code>, the stable branch is an alias to the latest <code>v0.7.x</code> release. When the <code>v0.9.0</code> version will be released, the stable will move to the latest <code>v0.8.x</code> release.</p>
341<p>Remarks:</p>
342<ul>
343<li>Shaarli release pace isn't fast, and the stable branch might be a few months behind the latest release.</li>
344</ul>
345<h2 id="releases">Releases</h2>
346<p>Releases are always made from the latest <code>v0.x</code> branch.</p>
347<p>Note that for every release, we manually generate a tarball which contains all Shaarli dependencies, making Shaarli's installation only one step.</p>
348<h2 id="advices-on-3rd-party-git-repos-workflow">Advices on 3rd party git repos workflow</h2>
349<h3 id="versioning">Versioning</h3>
350<p>Any time a new Shaarli release is published, you should publish a new release of your repo if the changes affected you since the latest release (take a look at the <a href="https://github.com/shaarli/Shaarli/releases">changelog</a> (<em>Draft</em> means not released yet) and the commit log (like <a href="https://github.com/shaarli/Shaarli/commits/master/tpl/default"><code>tpl</code> folder</a> for themes)). You can either:</p>
351<ul>
352<li>use the Shaarli version number, with your repo version. For example, if Shaarli <code>v0.8.3</code> is released, publish a <code>v0.8.3-1</code> release, where <code>v0.8.3</code> states Shaarli compatibility and <code>-1</code> is your own version digit for the current Shaarli version.</li>
353<li>use your own versioning scheme, and state Shaarli compatibility in the release description.</li>
354</ul>
355<p>Using this, any user will be able to pick the release matching his own Shaarli version.</p>
356<h3 id="major-bugfix-backport-releases">Major bugfix backport releases</h3>
357<p>To be able to support backported fixes, it recommended to use our workflow:</p>
358<pre><code class="bash"># In master, fix the major bug
359git commit -m &quot;Katastrophe&quot;
360git push origin master
361# Get your commit hash
362git log --format=&quot;%H&quot; -n 1
363# Create a new branch from your latest release, let's say v0.8.2-1 (the tag name)
364git checkout -b katastrophe v0.8.2-1
365# Backport the fix commit to your brand new branch
366git cherry-pick &lt;fix commit hash&gt;
367git push origin katastrophe
368# Then you just have to make a new release from the `katastrophe` branch tagged `v0.8.3-1`
369</code></pre>
370
371 </div>
372 </div>
373 <footer>
374
375 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
376
377 <a href="../Security/" class="btn btn-neutral float-right" title="Security">Next <span class="icon icon-circle-arrow-right"></span></a>
378
379
380 <a href="../Release-Shaarli/" class="btn btn-neutral" title="Release Shaarli"><span class="icon icon-circle-arrow-left"></span> Previous</a>
381
382 </div>
383
384
385 <hr/>
386
387 <div role="contentinfo">
388 <!-- Copyright etc -->
389
390 </div>
391
392 Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
393</footer>
394
395 </div>
396 </div>
397
398 </section>
399
400 </div>
401
402 <div class="rst-versions" role="note" style="cursor: pointer">
403 <span class="rst-current-version" data-toggle="rst-current-version">
404
405 <a href="https://github.com/shaarli/Shaarli" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
406
407
408 <span><a href="../Release-Shaarli/" style="color: #fcfcfc;">&laquo; Previous</a></span>
409
410
411 <span style="margin-left: 15px"><a href="../Security/" style="color: #fcfcfc">Next &raquo;</a></span>
412
413 </span>
414</div>
415 <script src="../js/theme.js"></script>
416
417</body>
418</html>