Added: ant/site/ivy/asciidoc/toc.json
URL: 
http://svn.apache.org/viewvc/ant/site/ivy/asciidoc/toc.json?rev=1829878&view=auto
==============================================================================
--- ant/site/ivy/asciidoc/toc.json (added)
+++ ant/site/ivy/asciidoc/toc.json Mon Apr 23 13:24:42 2018
@@ -0,0 +1,426 @@
+{
+  "children": [
+      {
+        "id":"index",
+        "title":"Home",
+        "children": [
+            {
+              "id":"features",
+              "title":"Features",
+              "children": [
+
+                ]
+            },
+            {
+              "id":"testimonials",
+              "title":"Testimonials",
+              "children": [
+
+                ]
+            },
+            {
+              "id":"license",
+              "title":"License",
+              "url":"http://www.apache.org/licenses/";,
+              "children": [
+
+                ]
+            },
+            {
+              "id":"security",
+              "title":"Security",
+              "url":"http://www.apache.org/security/";,
+              "children": [
+
+                ]
+            },
+            {
+              "id":"CryptoNotice",
+              "title":"Crypto Notice",
+              "children": [
+
+                ]
+            },
+            {
+              "id":"faq",
+              "title":"FAQ",
+              "children": [
+                  {
+                    "id":"m2comparison",
+                    "title":"Apache Ivy&#153 / Apache Maven&#153 Comparison",
+                    "children": [
+
+                      ]
+                  }
+                ]
+            },
+            {
+              "id":"links",
+              "title":"Links",
+              "children": [
+
+                ]
+            }
+          ]
+      },
+      {
+        "id":"download",
+        "title":"Download",
+        "children": [
+            {
+              "id":"choose-distrib",
+              "title":"Choose distribution",
+              "children": [
+
+                ]
+            }
+          ]
+      },
+      {
+        "title":"Documentation (2.4.0)",
+        "url":"http://ant.apache.org/ivy/history/2.4.0/index.html";
+      },
+      {
+        "id":"history",
+        "title":"History",
+        "children": [
+            {
+              "title":"master",
+              "url":"http://ant.apache.org/ivy/history/master/index.html";,
+              "children": [
+
+                ]
+            },
+            {
+              "id":"2.x",
+              "title":"2.x",
+              "isAbstract":true,
+              "children": [
+                  {
+                    "title":"2.5.0-rc1",
+                    
"url":"http://ant.apache.org/ivy/history/2.5.0-rc1/index.html";,
+                    "children": [
+                      
+                      ]
+                  },
+                  {
+                    "title":"2.4.0",
+                    "url":"http://ant.apache.org/ivy/history/2.4.0/index.html";,
+                    "children": [
+                      
+                      ]
+                  },
+                  {
+                    "title":"2.4.0-rc1",
+                    
"url":"http://ant.apache.org/ivy/history/2.4.0-rc1/index.html";,
+                    "children": [
+                      
+                      ]
+                  },
+                  {
+                    "title":"2.3.0",
+                    "url":"http://ant.apache.org/ivy/history/2.3.0/index.html";,
+                    "children": [
+                      
+                      ]
+                  },
+                  {
+                    "title":"2.2.0",
+                    "url":"http://ant.apache.org/ivy/history/2.2.0/index.html";,
+                    "children": [
+                      
+                      ]
+                  },
+                  {
+                    "title":"2.1.0",
+                    "url":"http://ant.apache.org/ivy/history/2.1.0/index.html";,
+                    "children": [
+
+                      ]
+                  },
+                  {
+                    "title":"2.0.0",
+                    "url":"http://ant.apache.org/ivy/history/2.0.0/index.html";,
+                    "children": [
+
+                      ]
+                  }
+                ]
+            },
+            {
+              "id":"1.x",
+              "title":"1.x",
+              "isAbstract":true,
+              "children": [
+                  {
+                    "id":"1.4.x",
+                    "title":"1.4.x",
+                    "isAbstract":true,
+                    "children": [
+                        {
+                          "id":"history/1.4.1",
+                          "title":"1.4.1",
+                          "children": [
+
+                            ]
+                        },
+                        {
+                          "id":"history/1.4",
+                          "title":"1.4",
+                          "children": [
+                              {
+                                "id":"history/1.4-RC1",
+                                "title":"1.4-RC1",
+                                "children": [
+
+                                  ]
+                              },
+                              {
+                                "id":"history/1.4-RC2",
+                                "title":"1.4-RC2",
+                                "children": [
+
+                                  ]
+                              }
+                            ]
+                        }
+                      ]
+                  },
+                  {
+                    "id":"1.3.x",
+                    "title":"1.3.x",
+                    "isAbstract":true,
+                    "children": [
+                        {
+                          "id":"history/1.3.1",
+                          "title":"1.3.1",
+                          "children": [
+
+                            ]
+                        },
+                        {
+                          "id":"history/1.3",
+                          "title":"1.3",
+                          "children": [
+                              {
+                                "id":"history/1.3-rc1",
+                                "title":"1.3-RC1",
+                                "children": [
+
+                                  ]
+                              },
+                              {
+                                "id":"history/1.3-rc2",
+                                "title":"1.3-RC2",
+                                "children": [
+
+                                  ]
+                              },
+                              {
+                                "id":"history/1.3-rc3",
+                                "title":"1.3-RC3",
+                                "children": [
+
+                                  ]
+                              }
+                            ]
+                        }
+                      ]
+                  },
+                  {
+                    "id":"1.2.x",
+                    "title":"1.2.x",
+                    "isAbstract":true,
+                    "children": [
+                        {
+                          "id":"history/1.2a",
+                          "title":"1.2a",
+                          "children": [
+
+                            ]
+                        }
+                      ]
+                  },
+                  {
+                    "id":"1.1.x",
+                    "title":"1.1.x",
+                    "isAbstract":true,
+                    "children": [
+                        {
+                          "id":"history/1.1",
+                          "title":"1.1",
+                          "children": [
+
+                            ]
+                        }
+                      ]
+                  },
+                  {
+                    "id":"1.0.x",
+                    "title":"1.0.x",
+                    "isAbstract":true,
+                    "children": [
+                        {
+                          "id":"history/1.0",
+                          "title":"1.0",
+                          "children": [
+                              {
+                                "id":"history/1.0-rc1",
+                                "title":"1.0-rc1",
+                                "children": [
+
+                                  ]
+                              },
+                              {
+                                "id":"history/1.0-rc2",
+                                "title":"1.0-rc2",
+                                "children": [
+
+                                  ]
+                              },
+                              {
+                                "id":"history/1.0-rc3",
+                                "title":"1.0-rc3",
+                                "children": [
+
+                                  ]
+                              }
+                            ]
+                        }
+                      ]
+                  }
+                ]
+            },
+            {
+              "id":"0.x",
+              "title":"0.x",
+              "isAbstract":true,
+              "children": [
+                  {
+                    "id":"history/0.9",
+                    "title":"0.9",
+                    "children": [
+
+                      ]
+                  },
+                  {
+                    "id":"history/0.8",
+                    "title":"0.8",
+                    "children": [
+
+                      ]
+                  },
+                  {
+                    "id":"history/0.7",
+                    "title":"0.7",
+                    "children": [
+
+                      ]
+                  },
+                  {
+                    "id":"history/0.6.1",
+                    "title":"0.6.1",
+                    "children": [
+
+                      ]
+                  },
+                  {
+                    "id":"history/0.6",
+                    "title":"0.6",
+                    "children": [
+
+                      ]
+                  },
+                  {
+                    "id":"history/0.5.1",
+                    "title":"0.5.1",
+                    "children": [
+
+                      ]
+                  },
+                  {
+                    "id":"history/0.5",
+                    "title":"0.5",
+                    "children": [
+
+                      ]
+                  }
+                ]
+            }
+          ]
+      },
+      {
+        "id":"get-involved",
+        "title":"Get Involved",
+        "children": [
+            {
+              "id":"mailing-lists",
+              "title":"Mailing lists",
+              "children": [
+
+                ]
+            },
+            {
+              "id":"issues",
+              "title":"Issue Tracking",
+              "children": [
+
+                ]
+            },
+            {
+              "id":"wiki",
+              "title":"Wiki",
+              "children": [
+
+                ]
+            },
+            {
+              "id":"write-doc",
+              "title":"Contribute documentation",
+              "children": [
+
+                ]
+            }
+          ]
+      },
+      {
+        "id":"foundation",
+        "title":"Foundation",
+        "children": [
+            {
+              "title":"ASF",
+              "url":"http://www.apache.org";,
+              "children": [
+                ]
+            },
+            {
+              "title":"Sponsorship",
+              "url":"http://www.apache.org/foundation/sponsorship.html";,
+              "children": [
+                ]
+            },
+            {
+              "title":"Thanks",
+              "url":"http://www.apache.org/foundation/thanks.html";,
+              "children": [
+                ]
+            }
+          ]
+      },
+      {
+        "id":"search",
+        "title":"Search",
+        "children": [
+
+          ]
+      },
+      {
+        "id":"ivyde",
+        "title":"Apache IvyDE&#153",
+        "url":"http://ant.apache.org/ivy/ivyde/index.html";,
+        "children": [
+
+          ]
+      }
+    ]
+}
\ No newline at end of file

Added: ant/site/ivy/asciidoc/wiki.adoc
URL: 
http://svn.apache.org/viewvc/ant/site/ivy/asciidoc/wiki.adoc?rev=1829878&view=auto
==============================================================================
--- ant/site/ivy/asciidoc/wiki.adoc (added)
+++ ant/site/ivy/asciidoc/wiki.adoc Mon Apr 23 13:24:42 2018
@@ -0,0 +1,5 @@
+
+A wiki is available where you can easily share your ideas and knowledge:
+http://cwiki.apache.org/confluence/display/IVY/
+
+Any contribution is welcome, don't be too shy, go ahead and contribute!
\ No newline at end of file

Added: ant/site/ivy/asciidoc/write-doc.adoc
URL: 
http://svn.apache.org/viewvc/ant/site/ivy/asciidoc/write-doc.adoc?rev=1829878&view=auto
==============================================================================
--- ant/site/ivy/asciidoc/write-doc.adoc (added)
+++ ant/site/ivy/asciidoc/write-doc.adoc Mon Apr 23 13:24:42 2018
@@ -0,0 +1,216 @@
+
+Writing documentation for Apache Ivy™ is pretty simple.
+
+The documentation engine used is called 
link:http://xooki.sourceforge.net[xooki], and allows to edit pages while you 
browse them as soon as you browse them offline (and thus can actually save your 
modifications).
+
+To browse the doc offline, we recommend to check it out from git:
+
+[source]
+----
+
+git clone https://git-wip-us.apache.org/repos/asf/ant-ivy.git
+
+----
+
+Alternatively you can also check out the whole site:
+
+[source]
+----
+
+svn co https://svn.apache.org/repos/asf/ant/site/ivy ivy-site
+
+----
+
+Then open the index.html file, and you will browse the web site exactly as 
when you're online, except that you will see a small toolbar at the upper 
right, allowing to link:#edit-inline[edit the page], save it, move the page in 
the link:#edit-toc[TOC], create a child, and so on:
+ 
+ image:images/xooki-toolbar.png[]
+
+
+
+
+== [[edit-inline]]Inline editing
+
+When you choose edit you will see a pretty familiar textbox where you can edit 
the page source.
+
+link:images/xooki-edit.png[ image:images/xooki-edit-small.png[]]
+
+
+
+The source uses a format very familiar to those who sometimes write html. 
Indeed link:#issues[nearly] any html is allowed. But you also have some 
shortcuts and neat syntax.
+
+First, line breaks are automatically recognized, so you don't have to put br 
everywhere.
+Another interesting thing is the code fragment:
+
+[source]
+----
+
+<code>
+any text including <tags/>
+</code>
+
+----
+
+Very helpful to avoid escaping all xml with lt and gt.
+
+Finally, URLs are automatically recognized and convert to links, jira issues 
like link:http://issues.apache.org/jira/browse/IVY-202[IVY-202] are recognized 
too, and you can use a neat format to reference any ant ivy ant task like 
link:history/latest-milestone/use/install.html[install]. And you can also link 
to another page by providing its id (i.e. its url without the base and the 
.html) like the link:index.html[Home] or the 
link:history/latest-milestone/index.html[Documentation (2.4.0)].
+
+Feel free to edit this page to get a good overview of what is possible.
+
+And do not forget to save your changes before leaving the page! Then you can 
use your favorite IDE or git and compute a patch for what you changed, and 
submit this patch by attaching it to a jira issue, or simply sending it to the 
ivy-dev link:mailing-lists.html[mailing list].
+
+
+== [[edit-toc]]Editing the TOC
+
+
+The structure of the TOC is stored in the toc.json. Some operations are 
available in the toolbar, others need manual editing of the json file.
+
+
+=== Moving entries
+
+
+To move up or down an entry within its category, you can use the arrows in the 
toolbar. First go on the page you want to move and then use the arrows ( 
image:xooki/images/up.gif[]  image:xooki/images/down.gif[]). Note that the 
changes are directly done in the json file, there is no need to trigger some 
"save" action.
+
+
+=== Adding entries
+
+
+You can also add an entry to the TOC via the toolbar, but only as a child of 
an existing entry. Select the parent, and use the  
image:xooki/images/addchild.gif[] button. Then you will be asked for a title 
(displayed to the end user) and a path (the path of the html file on the 
filesystem, relative to the root).
+
+To add a root entry to the TOC, open the toc.json file with your favorite 
editor. In the root "children" array, add your entry:
+
+[source]
+----
+
+      {
+        "id":"mydir/myfilename",
+        "title":"My title",
+        "children": &#x5B;
+
+          &#x5D;
+      },
+
+----
+
+And create an HTML file mydir/myfilename.html with:
+
+[source]
+----
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd";>
+
+////
+
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.    
+
+////
+
+<html>
+<head>
+       <script type="text/javascript">var xookiConfig = {level: 0};</script>   
+       <script type="text/javascript" src="xooki/xooki.js"></script>
+</head>
+<body>
+       &lt;textarea id="xooki-source"&gt;
+&lt;/textarea&gt;
+<script type="text/javascript">xooki.postProcess();</script>
+</body>
+</html>
+
+----
+
+And finally reload the index.html in your favorite browser, the new entry will 
appear. You can now add some content by link:#edit-inline[editing the page].
+
+
+=== Abstract Entries
+
+
+Some entries in the tree of the TOC can be abstract. Such kind of node does 
not link to any page, but holds some children. So a node will appear in the 
tree, with an arrow to display or hide the children, but there is no html links 
associated, as there is no page to display.
+
+To specify a such node, edit the toc.json and set the "isAbstract" property to 
true:
+
+[source]
+----
+
+           {
+              "id":"myAbstractID",
+              "title":"My Abstract Node",
+              "isAbstract":true,
+              "children":
+                  .......
+           }
+
+----
+
+
+=== External TOC reference
+
+
+It is possible to not have the entire documentation in one place. This is 
particularly useful for the link:history.html[versioning of some 
documentation]. So the end user will see an unified tree whereas every 
information is not stored in the toc.json.
+
+So you have to define a node with the 3 following properties:
+
+
+* "title": the title of the imported entry
+
+* "importRoot": the relative path to the root of the external TOC (where to 
find the other toc.json)
+
+* "importNode": the ID of node in the external TOC to point to.
+
+
+For instance:
+
+[source]
+----
+
+{
+   "title":"My doc version 1.2.3",
+   "importRoot":"history/1.2.3",
+   "importNode":"index"
+},
+
+----
+
+
+=== [[toc-url]]External URL
+
+
+A entry in the toc can point to an arbitrary URL rather than on a page 
identified by its `id`.
+
+To make an entry point to an external URL, just add an `url` property:
+
+[source]
+----
+
+{
+   "id":"external-search"
+   "title":"Some www search engine",
+   "url":"http://www.google.com/";
+},
+
+----
+
+
+== [[issues]]Known issues
+
+
+There is a special xml tag used by Xooki to handle the inline edition of the 
content: textarea with id xooki-source. In the current page we had to include 
that special tag. So in the source of this page there would be two tags with 
the same id "xooki-source", which is forbidden. So we have to xml encode it in 
the source, with some &amp;lt; and &amp;gt;.
+
+There also an issue with some json code. Above there are some json code which 
has to be xml encoded unless Xooki got confused. So &#x5B; and &#x5D; have to 
be encoded into respectively  &amp;#x5B; and &amp;#x5D;.
+
+And there are some xml encoding issues while inline editing. Generally you 
don't need to xml encode them, Xooki will handle it for you. But as discussed 
above, sometimes you are forced to use some. So as you may see the source of 
this page, xml entities are encoded 3 times. If you want to display an xml 
encoded &amp; then you will have to write &amp;amp;amp;amp;.
+*IMPORTANT NOTE*: if you edit a page with Xooki which has some xml entities, 
Xooki will eat them and the triple encoding will disappear. Before saving you 
have to be sure to re-encode the &amp; of the entities two times: in the page 
you will see &amp;#x5D; which has to be replaced by &amp;amp;amp;#x5D;. The 
simpler though is to edit this kind of file via a text editor and not a browser.
\ No newline at end of file


Reply via email to