diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js
index 746a786599..72d1d677a8 100644
--- a/scripts/docs/processors/jekyll.js
+++ b/scripts/docs/processors/jekyll.js
@@ -29,6 +29,14 @@ module.exports = function jekyll(renderDocsProcessor) {
if (docs[i].href) {
docs[i].href = doc.href.replace('content/', '');
}
+ if (docs[i].description) {
+ docs[i].description = docs[i].description.replace(/(\#\#\#).+/g, (section) => {
+ const title = section.replace(/^(\#+\s?)/, '');
+ const segment = title.replace(/[^a-zA-Z0-9]+/g, '-').toLowerCase();
+
+ return `\n
\n`;
+ });
+ }
});
docs.push({
diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html
index 4720214a80..e8a2a70429 100644
--- a/scripts/docs/templates/common.template.html
+++ b/scripts/docs/templates/common.template.html
@@ -242,7 +242,7 @@ Improve this doc
<@ if doc.usage @>
-Usage
+
<@ block usage @>
<$ doc.usage | marked $>
<@ endblock @>
@@ -250,7 +250,7 @@ Improve this doc
<@ if doc.properties @>
-Attributes:
+
@@ -293,10 +293,10 @@ Improve this doc
<@- if doc.statics.length -@>
-Static Members
+
<@- for method in doc.statics @><@ if not method.internal @>
-<$ functionSyntax(method) $>
+
<$ method.description $>
@@ -327,14 +327,15 @@ Improve this doc
<@- if doc.members and doc.members.length @>
-Instance Members
+
<@- for method in doc.members @>
<$ method.description $>
@@ -366,26 +367,26 @@ Improve this doc
<@- if doc.inputs and doc.inputs.length @>
-Input Properties
+
<$ inputTable(doc.inputs) $>
<@- endif -@>
<@- if doc.outputs and doc.outputs.length @>
-Output Events
+
<$ outputTable(doc.outputs) $>
<@- endif -@>
<@ block advanced @>
<@- if doc.advanced -@>
-Advanced
+
<$ doc.advanced | marked $>
<@- endif -@>
<@ endblock @>
<@ if doc.sassVariables @>
-
+
<$ sassTable(doc.sassVariables) $>
<@ endif @>
@@ -393,7 +394,7 @@ Improve this doc
<@- if doc.see @>
-Related
+
<@ for s in doc.see @>
<$ s | safe $> <@- if not loop.last @>,<@- endif -@>
<@- endfor -@>