Author: hboutemy
Date: Wed Apr  6 00:52:19 2016
New Revision: 1737906

URL: http://svn.apache.org/viewvc?rev=1737906&view=rev
Log:
added support for Doxia

Modified:
    
maven/site/trunk/content/markdown/developers/website/component-reference-documentation-helper.md

Modified: 
maven/site/trunk/content/markdown/developers/website/component-reference-documentation-helper.md
URL: 
http://svn.apache.org/viewvc/maven/site/trunk/content/markdown/developers/website/component-reference-documentation-helper.md?rev=1737906&r1=1737905&r2=1737906&view=diff
==============================================================================
--- 
maven/site/trunk/content/markdown/developers/website/component-reference-documentation-helper.md
 (original)
+++ 
maven/site/trunk/content/markdown/developers/website/component-reference-documentation-helper.md
 Wed Apr  6 00:52:19 2016
@@ -11,6 +11,9 @@ select component category, then type art
 <li><a href="?plugins">plugins</a></li>
 <li><a href="?pom">poms</a></li>
 <li><a href="?skins">skins</a></li>
+<li><a href="?doxia">Doxia</a></li>
+<li><a href="?doxia-sitetools">Doxia Sitetools</a></li>
+<li><a href="?doxia-tools">Doxia Tools</a></li>
 <li><a href="?others">others</a></li>
 </ul>
  
@@ -67,11 +70,6 @@ function instructions() {
   var artifactId = document.getElementById('artifactId').value;
   var version = document.getElementById('version').value;
   var svnmucc = svnmuccTemplate;
-  if (category == "others") {
-    // category directory is based on artifactId
-    svnmucc = replaceAll(svnmucc, '${category}/${artifactId}', 
'${artifactId}');
-    svnmucc = replaceAll(svnmucc, '${category}', '${artifactId}');
-  }
   if (category == "core") {
     artifactId = "Maven";
     svnmucc = svnmucc.substr(0, svnmucc.indexOf("  rm "))
@@ -79,6 +77,17 @@ function instructions() {
     svnmucc = replaceAll(svnmucc, '${category}-archives', 'ref');
     svnmucc = replaceAll(svnmucc, '${artifactId}-${version} \\', 
'${version}\n\n');
   }
+  if (category.indexOf("doxia") == 0) {
+    svnmucc = replaceAll(svnmucc, 'maven/components', 'maven-doxia/content');
+    if (category != "doxia-tools") {
+      document.getElementById('artifactId').value = category;
+    }
+  }
+  if (category == "others" || category == "doxia" || category == 
"doxia-sitetools") {
+    // category directory is based on artifactId
+    svnmucc = replaceAll(svnmucc, '${category}/${artifactId}', 
'${artifactId}');
+    svnmucc = replaceAll(svnmucc, '${category}', '${artifactId}');
+  }
   svnmucc = replaceAll(svnmucc, '${category}', category);
   if (artifactId) {
     svnmucc = replaceAll(svnmucc, '${artifactId}', artifactId);
@@ -94,6 +103,8 @@ var svnmuccTemplate = document.getElemen
 
 if (category == "core") {
   selectCategory('docs/history.html', 'ref/');
+} else if (category.indexOf("doxia") == 0) {
+  selectCategory('doxia/' + category + '/', 'doxia/' + category + 
'-archives/');
 } else if (category == "others") {
   selectCategory('', 'components/');
 } else if (category != "") {


Reply via email to