From 2e05b32a3273ca8de9af36c5831ba6e04355ad80 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Wed, 13 May 2015 12:07:03 +0200 Subject: [PATCH] [add] markdown documentation [upd] better css and semantic for edit/add form --- doc/markdown.php | 201 +++++++++++++++++++++++++++++++++++++++++++ images/help_icon.png | Bin 0 -> 932 bytes inc/user.css | 185 +++++++++++++++++++++------------------ tpl/editlink.html | 113 +++++++++++++++--------- 4 files changed, 376 insertions(+), 123 deletions(-) create mode 100644 doc/markdown.php create mode 100644 images/help_icon.png diff --git a/doc/markdown.php b/doc/markdown.php new file mode 100644 index 0000000..093d930 --- /dev/null +++ b/doc/markdown.php @@ -0,0 +1,201 @@ + + + + + + + + '; + } + ?> + Markdown help + + +
+

Headings

+

+ #Heading 1 +
+ ##Heading 2 +
+ ###Heading 3 +
+ ####Heading 4 +
+ #####Heading 5 +
+ ######Heading 6 +
+

+ Result +
+ text("#Heading 1 \n##Heading 2 \n###Heading 3 \n####Heading 4 \n#####Heading 5 \n######Heading 6 \n "); + ?> +
+

Phrase Emphasis

+

+ *italic* **bold** ~~strike~~ +

+ Result +
+ text('*italic* **bold** ~~strike~~'); + ?> +
+

Links

+

+ [Shaarli original homepage](http://sebsauvage.net/wiki/doku.php?id=php:shaarli "php:shaarli [sebsauvage]") +
+ or simply put link http://sebsauvage.net/wiki/doku.php?id=php:shaarli +

+ Result +
+ text('[Shaarli original homepage](http://sebsauvage.net/wiki/doku.php?id=php:shaarli "php:shaarli [sebsauvage]") or simply put link http://sebsauvage.net/wiki/doku.php?id=php:shaarli'); + ?> +
+

Lists

+

+ Ordered list : +
+ 1. item +
+ 2. item +
+   1. item +
+   2. item +
+ 3. item +

+ Result +
+ text(" 1. item \n 2. item \n 1. item \n 2. item \n 3. item"); + ?> +
+

+ Unordered list : +
+ * item +
+ * item +
+   * item +
+   * item +

+ Result +
+ text("* item \n* item \n * item \n * item"); + ?> +
+

Images

+

+ ![Shaarli logo](/images/logo.png "Shaarli logo") +

+ Result +
+ text('![Shaarli logo](/images/logo.png "Shaarli logo")'); + ?> +
+

Blockquotes

+

+ >You want to share the links you discover ? Shaarli is a minimalist delicious clone you can install on your own website. It is designed to be personal (single-user), fast and handy. +
+ >> Citation under citation +

+ Result +
+ text(">You want to share the links you discover ? Shaarli is a minimalist delicious clone you can install on your own website. It is designed to be personal (single-user), fast and handy. + \n + >> Citation under citation"); + ?> +
+

Inline code

+

+ Try this command ``uptime`` in Linux terminal +

+ Result +
+ text('Try this command ``uptime`` in Linux terminal'); + ?> +
+

Block code

+

+ Try this command +
+ ``` +
+ uptime +
+ ``` +
+ in Linux terminal +

+ Result +
+ text("Try this command \n ``` \n uptime \n ``` \n in Linux terminal"); + ?> +
+

Horizontal Rules

+ * * * or +
+ *** or +
+ ***** or +
+ - - - or +
+ --------------------------------------- +
+ Result +
+ text('* * *'); + ?> +
+

Manual Line Breaks

+

+ Add two space at endline +
+ This line break => +
+ here +

+ Result +
+ setMarkupEscaped(true) -> setBreaksEnabled(true) -> text("This line break =>    + here"); + ?> +
+
+ + + \ No newline at end of file diff --git a/images/help_icon.png b/images/help_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..f25fc3fbf106af60de59581bf2e6fba58d489bf8 GIT binary patch literal 932 zcmV;V16%xwP)n<^0M7t*KyZHC1w??>xEt=fabLR*P`s^00F8@s%vX0ly3W2Q;1iYQ`2d{1 zn56SU!aH>A*UV&krU`gE?uNYufcfLL`>KjUEiXOnoQe)`qCG}W|1bb+O7eK1#?QvJ zs|dgU_0&(D106tZ+zosBJd?&v>qnWFmUKydqeslSKE)YIWlRZ)Gjda>n*%4R*)(?6s}$J0tF zrB0rXshXW1sfM?{P>GRo72Li*T~yy3kh%V?FTe2QhE1d6Y3FzU6LKF3;uj?|T^;O;NgH2_-9*%2UxlCj?MeRpHZ4w8sFjOr1-Y$4FjHVOs`O z6+Qs2{*%TqbaEVv&fkX!tu7E!h&mkz2FsQcy_m!>B&KO#Sq7GA5DFBqd&fqUQXD+m zfn!?;p^>;U$?D=fJf(uyMMMYXO4>Md`aVN{(Y9gut;(G&D3o z09{?N%Y*_27>1l9_a8%EHtR(M(E9O_Gnox*SF!%CmFQBU zOF`};huu%zOT%N;EOv}x2@;w%)hg>aX0MU5~e$Dv-j=Valc(v;nT_sm!fGJ@x&;<^^bV( zeDYmpd~&)e>v=ba>Hp#^rKnR%1p%a#U9+> -{include="includes"} -{if="empty($GLOBALS['disablejquery'])"}{/if} - - - + {include="page.footer"} + {if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"} + + {/if} + \ No newline at end of file