From c822e836bc538c60cd29c929e55c1826fdd43900 Mon Sep 17 00:00:00 2001 From: milad nazeri Date: Tue, 8 May 2018 21:48:57 -0700 Subject: [PATCH] general format work --- tools/jsdoc/gravPrep.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tools/jsdoc/gravPrep.js b/tools/jsdoc/gravPrep.js index e6002571ac..105444a841 100644 --- a/tools/jsdoc/gravPrep.js +++ b/tools/jsdoc/gravPrep.js @@ -66,10 +66,12 @@ const html_reg_propertiesHeaderEdit_Replace = '

Properties

'; const html_reg_typeEdit = /(
Returns[\s\S]*?Type)(<\/dt[\s\S]*?type">)(.*?)(<\/span><\/dd>[\s\S]*?<\/dl>)/g; const html_reg_typeEdit_replace = '$1: $3' - const html_reg_methodSize = /()(<\/h4>)/g; + const html_reg_methodSize = /()(<\/h4>)/g; const html_reg_methodSize_replace = ''; const html_reg_typeDefSize = /()/g; const html_reg_typeDefSize_replace = ''; + const html_reg_typeReturnSize = /
Type:\<\/h5>/g; + const html_reg_typeReturnSize_replace = '
Type:
'; const html_reg_returnSize = /
Returns:<\/h5>/g; const html_reg_returnSize_replace = '
Returns:<\/h6>'; const html_reg_findByName = '
)/g; const html_reg_findClassLinks = /([\s\S]+?<\/a>)/g; - + const html_reg_pretty = /(
)([\s\S]*?)(<\/pre>)/g;
+    const html_reg_pretty_replace = "
$2<\/pre>";
+    const html_reg_code = /()([\s\S]*?)(<\/code>)/g;
+    const html_reg_code_replace = "$1$2$3";
 
 // Mapping for GroupNames and Members
     let groupNameMemberMap = {
@@ -281,9 +286,11 @@
             {% endblock %}
             
             {% block content %}
-                
-

{{ page.title }}

- ${contentHtml} +
+
+

{{ page.title }}

+ ${contentHtml} +
{% endblock %} ` @@ -525,6 +532,9 @@ .replace(html_reg_findGlobalLinks, html_reg_findGlobalLinks_replace) .replace(html_reg_findGeneralLinks, lowerCaseGeneralLinks) .replace(html_reg_findClassLinks, modifyClassLinks) + .replace(html_reg_typeReturnSize, html_reg_typeReturnSize_replace) + .replace(html_reg_code, html_reg_code_replace) + .replace(html_reg_pretty, html_reg_pretty_replace) .replace(html_reg_findByMethod, ""); // Fix for namespace and object links