aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/html/Datastore-hacks/index.html
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2017-01-26 18:52:54 +0100
committernodiscc <nodiscc@gmail.com>2017-06-18 00:19:49 +0200
commit53ed6d7d1e678d7486337ce67a2f17b30bac21ac (patch)
treef8bef0164a70bd03d2b9781951c01bdd018f1842 /doc/html/Datastore-hacks/index.html
parentd5d22a6d07917865c44148ad76f43c65a929a890 (diff)
downloadShaarli-53ed6d7d1e678d7486337ce67a2f17b30bac21ac.tar.gz
Shaarli-53ed6d7d1e678d7486337ce67a2f17b30bac21ac.tar.zst
Shaarli-53ed6d7d1e678d7486337ce67a2f17b30bac21ac.zip
Generate HTML documentation using MkDocs (WIP)
MkDocs is a static site generator geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML file. * http://www.mkdocs.org/ * http://www.mkdocs.org/user-guide/configuration/ Ref. #312 * remove pandoc-generated HTML documentation * move markdown doc to doc/md/, * mkdocs.yml: * generate HTML doc in doc/html * add pages TOC/ordering * use index.md as index page * Makefile: remove execute permissions from generated files * Makefile: rewrite htmlpages GFM to markdown conversion using sed: awk expression aslo matched '][' which causes invalid output on complex links with images or code blocks * Add mkdocs.yml to .gitattributes, exclude this file from release archives * Makefile: rename: htmldoc -> doc_html target * run make doc: pull latest markdown documentation from wiki * run make htmlpages: update html documentation
Diffstat (limited to 'doc/html/Datastore-hacks/index.html')
-rw-r--r--doc/html/Datastore-hacks/index.html369
1 files changed, 369 insertions, 0 deletions
diff --git a/doc/html/Datastore-hacks/index.html b/doc/html/Datastore-hacks/index.html
new file mode 100644
index 00000000..b3d8d97e
--- /dev/null
+++ b/doc/html/Datastore-hacks/index.html
@@ -0,0 +1,369 @@
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>Datastore hacks - 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 = "Datastore hacks";
22 var mkdocs_page_input_path = "Datastore-hacks.md";
23 var mkdocs_page_url = "/Datastore-hacks/";
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=" current">
166
167 <a class="current" href="./">Datastore hacks</a>
168 <ul class="subnav">
169
170 <li class="toctree-l3"><a href="#decode-datastore-content">Decode datastore content</a></li>
171
172
173 <li class="toctree-l3"><a href="#changing-the-timestamp-for-a-link">Changing the timestamp for a link</a></li>
174
175
176 </ul>
177 </li>
178 </ul>
179 </li>
180
181 <li class="toctree-l1">
182
183 <a class="" href="../Troubleshooting/">Troubleshooting</a>
184 </li>
185
186 <li class="toctree-l1">
187
188 <span class="caption-text">Development</span>
189 <ul class="subnav">
190 <li class="">
191
192 <a class="" href="../Development-guidelines/">Development guidelines</a>
193 </li>
194 <li class="">
195
196 <a class="" href="../Continuous-integration-tools/">Continuous integration tools</a>
197 </li>
198 <li class="">
199
200 <a class="" href="../GnuPG-signature/">GnuPG signature</a>
201 </li>
202 <li class="">
203
204 <a class="" href="../Coding-guidelines/">Coding guidelines</a>
205 </li>
206 <li class="">
207
208 <a class="" href="../Directory-structure/">Directory structure</a>
209 </li>
210 <li class="">
211
212 <a class="" href="../3rd-party-libraries/">3rd party libraries</a>
213 </li>
214 <li class="">
215
216 <a class="" href="../Plugin-System/">Plugin System</a>
217 </li>
218 <li class="">
219
220 <a class="" href="../Release-Shaarli/">Release Shaarli</a>
221 </li>
222 <li class="">
223
224 <a class="" href="../Versioning-and-Branches/">Versioning and Branches</a>
225 </li>
226 <li class="">
227
228 <a class="" href="../Security/">Security</a>
229 </li>
230 <li class="">
231
232 <a class="" href="../Static-analysis/">Static analysis</a>
233 </li>
234 <li class="">
235
236 <a class="" href="../Theming/">Theming</a>
237 </li>
238 <li class="">
239
240 <a class="" href="../Unit-tests/">Unit tests</a>
241 </li>
242 </ul>
243 </li>
244
245 <li class="toctree-l1">
246
247 <span class="caption-text">About</span>
248 <ul class="subnav">
249 <li class="">
250
251 <a class="" href="../FAQ/">FAQ</a>
252 </li>
253 <li class="">
254
255 <a class="" href="../Community-&-Related-software/">Community & Related software</a>
256 </li>
257 </ul>
258 </li>
259
260 </ul>
261 </div>
262 &nbsp;
263 </nav>
264
265 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
266
267
268 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
269 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
270 <a href="..">Shaarli Documentation</a>
271 </nav>
272
273
274 <div class="wy-nav-content">
275 <div class="rst-content">
276 <div role="navigation" aria-label="breadcrumbs navigation">
277 <ul class="wy-breadcrumbs">
278 <li><a href="..">Docs</a> &raquo;</li>
279
280
281
282 <li>How To &raquo;</li>
283
284
285
286 <li>Datastore hacks</li>
287 <li class="wy-breadcrumbs-aside">
288
289 <a href="https://github.com/shaarli/Shaarli/edit/master/docs/Datastore-hacks.md"
290 class="icon icon-github"> Edit on GitHub</a>
291
292 </li>
293 </ul>
294 <hr/>
295</div>
296 <div role="main">
297 <div class="section">
298
299 <h3 id="decode-datastore-content">Decode datastore content</h3>
300<p>To display the array representing the data saved in <code>data/datastore.php</code>, use the following snippet:</p>
301<pre><code class="php">$data = &quot;tZNdb9MwFIb... &lt;Commented content inside datastore.php&gt;&quot;;
302$out = unserialize(gzinflate(base64_decode($data)));
303echo &quot;&lt;pre&gt;&quot;; // Pretty printing is love, pretty printing is life
304print_r($out);
305echo &quot;&lt;/pre&gt;&quot;;
306exit;
307</code></pre>
308
309<p>This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation).</p>
310<p>Alternatively, you can transform to JSON format (and pretty-print if you have <code>jq</code> installed):</p>
311<pre><code>php -r 'print(json_encode(unserialize(gzinflate(base64_decode(preg_replace(&quot;!.*/\* (.+) \*/.*!&quot;, &quot;$1&quot;, file_get_contents(&quot;data/datastore.php&quot;)))))));' | jq .
312</code></pre>
313
314<h3 id="changing-the-timestamp-for-a-link">Changing the timestamp for a link</h3>
315<ul>
316<li>Look for <code>&lt;input type="hidden" name="lf_linkdate" value="{$link.linkdate}"&gt;</code> in <code>tpl/editlink.tpl</code> (line 14)</li>
317<li>Replace <code>type="hidden"</code> with <code>type="text"</code> from this line</li>
318<li>A new date/time field becomes available in the edit/new link dialog.</li>
319<li>You can set the timestamp manually by entering it in the format <code>YYYMMDD_HHMMS</code>.</li>
320</ul>
321
322 </div>
323 </div>
324 <footer>
325
326 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
327
328 <a href="../Troubleshooting/" class="btn btn-neutral float-right" title="Troubleshooting">Next <span class="icon icon-circle-arrow-right"></span></a>
329
330
331 <a href="../Download-CSS-styles-from-an-OPML-list/" class="btn btn-neutral" title="Download CSS styles from an OPML list"><span class="icon icon-circle-arrow-left"></span> Previous</a>
332
333 </div>
334
335
336 <hr/>
337
338 <div role="contentinfo">
339 <!-- Copyright etc -->
340
341 </div>
342
343 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>.
344</footer>
345
346 </div>
347 </div>
348
349 </section>
350
351 </div>
352
353 <div class="rst-versions" role="note" style="cursor: pointer">
354 <span class="rst-current-version" data-toggle="rst-current-version">
355
356 <a href="https://github.com/shaarli/Shaarli" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
357
358
359 <span><a href="../Download-CSS-styles-from-an-OPML-list/" style="color: #fcfcfc;">&laquo; Previous</a></span>
360
361
362 <span style="margin-left: 15px"><a href="../Troubleshooting/" style="color: #fcfcfc">Next &raquo;</a></span>
363
364 </span>
365</div>
366 <script src="../js/theme.js"></script>
367
368</body>
369</html>