allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [5/6] git commit: [#7168] ticket:569 Add usage examples to markdown formatting help
Date Fri, 04 Apr 2014 19:57:34 GMT
[#7168] ticket:569 Add usage examples to markdown formatting help


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/b227c3f3
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/b227c3f3
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/b227c3f3

Branch: refs/heads/master
Commit: b227c3f36e1a53555b56f2d4d49bde154587b85b
Parents: bed557c
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Thu Apr 3 08:56:11 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Apr 4 19:51:24 2014 +0000

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/lib.html | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/b227c3f3/Allura/allura/templates/jinja_master/lib.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/lib.html b/Allura/allura/templates/jinja_master/lib.html
index ecea225..c227dff 100644
--- a/Allura/allura/templates/jinja_master/lib.html
+++ b/Allura/allura/templates/jinja_master/lib.html
@@ -727,6 +727,24 @@ allowed, permitting basic styling and layout: &lt;div markdown style="float:left
 </pre></div>
 
 <p>No example output is available for this one because it only works on real wiki pages.
Try it in your wiki!</p>
+
+<p>Also, you can embed a file directly from a repository! Just skip the ref parameter
and pass repository, path and optional revision:</p>
+<div class="codehilite"><pre>
+[[include repo=code path=README]]
+
+[[include repo=myproject:code path=/ew/forms.py rev=fa61e7]]
+
+[[include repo=p:myproject:code path=/ew/forms.py]]
+</pre></div>
+
+<p>Repo could be specified in three ways:</p>
+<ul>
+  <li>app</li>
+  <li>project:app</li>
+  <li>neighborhood:project:app</li>
+</ul>
+
+<p>Where app is a repository's mount point, project is a project's shortname and neighborhood
is a neighborhood's prefix that appears in url.</p>
 </div>
 
 


Mime
View raw message