diff options
author | nodiscc <nodiscc@gmail.com> | 2017-01-26 18:52:54 +0100 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2017-06-18 00:19:49 +0200 |
commit | 53ed6d7d1e678d7486337ce67a2f17b30bac21ac (patch) | |
tree | f8bef0164a70bd03d2b9781951c01bdd018f1842 /doc/Development.html | |
parent | d5d22a6d07917865c44148ad76f43c65a929a890 (diff) | |
download | Shaarli-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/Development.html')
-rw-r--r-- | doc/Development.html | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/doc/Development.html b/doc/Development.html deleted file mode 100644 index 8a2be413..00000000 --- a/doc/Development.html +++ /dev/null | |||
@@ -1,112 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <meta name="generator" content="pandoc"> | ||
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
7 | <title>Shaarli – Development</title> | ||
8 | <style type="text/css">code{white-space: pre;}</style> | ||
9 | <link rel="stylesheet" href="github-markdown.css"> | ||
10 | <!--[if lt IE 9]> | ||
11 | <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> | ||
12 | <![endif]--> | ||
13 | </head> | ||
14 | <body> | ||
15 | <div id="local-sidebar"> | ||
16 | <ul> | ||
17 | <li><a href="Home.html">Home</a></li> | ||
18 | <li>Setup | ||
19 | <ul> | ||
20 | <li><a href="Download-and-Installation.html">Download and Installation</a></li> | ||
21 | <li><a href="Upgrade-and-migration.html">Upgrade and migration</a></li> | ||
22 | <li><a href="Server-requirements.html">Server requirements</a></li> | ||
23 | <li><a href="Server-configuration.html">Server configuration</a></li> | ||
24 | <li><a href="Server-security.html">Server security</a></li> | ||
25 | <li><a href="Shaarli-configuration.html">Shaarli configuration</a></li> | ||
26 | <li><a href="Plugins.html">Plugins</a></li> | ||
27 | </ul></li> | ||
28 | <li><a href="Docker.html">Docker</a></li> | ||
29 | <li><a href="Usage.html">Usage</a> | ||
30 | <ul> | ||
31 | <li><a href="Sharing-button.html">Sharing button</a> (bookmarklet)</li> | ||
32 | <li><a href="Browsing-and-Searching.html">Browsing and Searching</a></li> | ||
33 | <li><a href="Firefox-share.html">Firefox share</a></li> | ||
34 | <li><a href="RSS-feeds.html">RSS feeds</a></li> | ||
35 | <li><a href="REST-API.html">REST API</a></li> | ||
36 | </ul></li> | ||
37 | <li>How To | ||
38 | <ul> | ||
39 | <li><a href="Backup,-restore,-import-and-export.html">Backup, restore, import and export</a></li> | ||
40 | <li><a href="Copy-an-existing-installation-over-SSH-and-serve-it-locally.html">Copy an existing installation over SSH and serve it locally</a></li> | ||
41 | <li><a href="Create-and-serve-multiple-Shaarlis-(farm).html">Create and serve multiple Shaarlis (farm)</a></li> | ||
42 | <li><a href="Download-CSS-styles-from-an-OPML-list.html">Download CSS styles from an OPML list</a></li> | ||
43 | <li><a href="Datastore-hacks.html">Datastore hacks</a></li> | ||
44 | </ul></li> | ||
45 | <li><a href="Troubleshooting.html">Troubleshooting</a></li> | ||
46 | <li><a href="Development.html">Development</a> | ||
47 | <ul> | ||
48 | <li><a href="GnuPG-signature.html">GnuPG signature</a></li> | ||
49 | <li><a href="Coding-guidelines.html">Coding guidelines</a></li> | ||
50 | <li><a href="Directory-structure.html">Directory structure</a></li> | ||
51 | <li><a href="3rd-party-libraries.html">3rd party libraries</a></li> | ||
52 | <li><a href="Plugin-System.html">Plugin System</a></li> | ||
53 | <li><a href="Release-Shaarli.html">Release Shaarli</a></li> | ||
54 | <li><a href="Versioning-and-Branches.html">Versioning and Branches</a></li> | ||
55 | <li><a href="Security.html">Security</a></li> | ||
56 | <li><a href="Static-analysis.html">Static analysis</a></li> | ||
57 | <li><a href="Theming.html">Theming</a></li> | ||
58 | <li><a href="Unit-tests.html">Unit tests</a></li> | ||
59 | </ul></li> | ||
60 | <li>About | ||
61 | <ul> | ||
62 | <li><a href="FAQ.html">FAQ</a></li> | ||
63 | <li><a href="Community-&-Related-software.html">Community & Related software</a></li> | ||
64 | </ul></li> | ||
65 | </ul> | ||
66 | </div> | ||
67 | <h1 id="development">Development</h1> | ||
68 | <h2 id="guidelines">Guidelines</h2> | ||
69 | <p>Please have a look at the following pages:</p> | ||
70 | <ul> | ||
71 | <li><a href="https://github.com/shaarli/Shaarli/tree/master/CONTRIBUTING.md">Contributing to Shaarli</a><a href=".html"></a></li> | ||
72 | <li><a href="Static-analysis.html">Static analysis</a> - patches should try to stick to the <a href="http://www.php-fig.org/psr/">PHP Standard Recommendations</a> (PSR), especially: | ||
73 | <ul> | ||
74 | <li><a href="http://www.php-fig.org/psr/psr-1/">PSR-1</a> - Basic Coding Standard<a href=".html"></a></li> | ||
75 | <li><a href="http://www.php-fig.org/psr/psr-2/">PSR-2</a> - Coding Style Guide<a href=".html"></a></li> | ||
76 | </ul></li> | ||
77 | <li><a href="Unit-tests.html">Unit tests</a></li> | ||
78 | <li><a href="GnuPG-signature.html">GnuPG signature</a> for tags/releases</li> | ||
79 | </ul> | ||
80 | <h2 id="continuous-integration-tools">Continuous integration tools</h2> | ||
81 | <h3 id="local-development">Local development</h3> | ||
82 | <p>A <a href="https://github.com/shaarli/Shaarli/blob/master/Makefile"><code>Makefile</code></a> is available to perform project-related operations:<a href=".html"></a></p> | ||
83 | <ul> | ||
84 | <li>Documentation - generate a local HTML copy of the GitHub wiki</li> | ||
85 | <li><a href="Static-analysis.html">Static analysis</a> - check that the code is compliant to PHP conventions</li> | ||
86 | <li><a href="Unit-tests.html">Unit tests</a> - ensure there are no regressions introduced by new commits</li> | ||
87 | </ul> | ||
88 | <h3 id="automatic-builds">Automatic builds</h3> | ||
89 | <p><a href="http://docs.travis-ci.com/">Travis CI</a> is a Continuous Integration build server, that runs a build:<a href=".html"></a></p> | ||
90 | <ul> | ||
91 | <li>each time a commit is merged to the mainline (<code>master</code> branch)</li> | ||
92 | <li>each time a Pull Request is submitted or updated</li> | ||
93 | </ul> | ||
94 | <p>A build is composed of several jobs: one for each supported PHP version (see <a href="Server-requirements.html">Server requirements</a>).</p> | ||
95 | <p>Each build job:</p> | ||
96 | <ul> | ||
97 | <li>updates Composer</li> | ||
98 | <li>installs 3rd-party test dependencies with Composer</li> | ||
99 | <li>runs <a href="Unit-tests.html">Unit tests</a></li> | ||
100 | </ul> | ||
101 | <p>After all jobs have finished, Travis returns the results to GitHub:</p> | ||
102 | <ul> | ||
103 | <li>a status icon represents the result for the <code>master</code> branch: <a href="(https://api.travis-ci.org/shaarli/Shaarli.svg)%5D(https://travis-ci.org/shaarli/Shaarli).html"><img src="https://travis-ci.org/shaarli/Shaarli" alt="(https://api.travis-ci.org/shaarli/Shaarli.svg)" /></a></li> | ||
104 | <li>Pull Requests are updated with the Travis result | ||
105 | <ul> | ||
106 | <li>Green: all tests have passed</li> | ||
107 | <li>Red: some tests failed</li> | ||
108 | <li>Orange: tests are pending</li> | ||
109 | </ul></li> | ||
110 | </ul> | ||
111 | </body> | ||
112 | </html> | ||