diff --git a/ontospy/gendocs/CONFIG.py b/ontospy/gendocs/CONFIG.py
index 3c42652..63795a1 100755
--- a/ontospy/gendocs/CONFIG.py
+++ b/ontospy/gendocs/CONFIG.py
@@ -24,17 +24,17 @@
},
{
"ID": "d3-bubble-chart",
- "Title": "D3 Bubble chart [alpha]",
+ "Title": "D3 Bubble chart",
"Description": "@todo",
},
{
"ID": "d3-pack-hierarchy",
- "Title": "D3 Pack hierarchy [alpha]",
+ "Title": "D3 Pack hierarchy",
"Description": "@todo",
},
{
"ID": "d3-bar-hierarchy",
- "Title": "D3 Bar hierarchy [alpha]",
+ "Title": "D3 Bar hierarchy",
"Description": "@todo",
},
{
diff --git a/ontospy/gendocs/jinja_env.py b/ontospy/gendocs/jinja_env.py
index ab8dc28..cea9cba 100644
--- a/ontospy/gendocs/jinja_env.py
+++ b/ontospy/gendocs/jinja_env.py
@@ -40,13 +40,16 @@ def slugify_filter(value):
@pass_eval_context
def linebreaks_filter(eval_ctx, value):
"""A filter for legacy django templates."""
- if not value:
- return ""
- result = u'\n\n'.join(u'
%s
' % p.replace('\n', '
\n')
- for p in _paragraph_re.split(escape(value)))
- if eval_ctx.autoescape:
- result = Markup(result)
- return result
+ try:
+ if not value:
+ return ""
+ result = u'\n\n'.join(u'%s
' % p.replace('\n', '
\n')
+ for p in _paragraph_re.split(escape(value)))
+ if eval_ctx.autoescape:
+ result = Markup(result)
+ return result
+ except:
+ return value
env.filters['linebreaks'] = linebreaks_filter
diff --git a/ontospy/gendocs/media/templates/d3/d3_bar_hierarchy.html b/ontospy/gendocs/media/templates/d3/d3_bar_hierarchy.html
index b463f2d..97cf076 100755
--- a/ontospy/gendocs/media/templates/d3/d3_bar_hierarchy.html
+++ b/ontospy/gendocs/media/templates/d3/d3_bar_hierarchy.html
@@ -49,6 +49,7 @@
background: white;
}
+
{% endblock custom_css %}
@@ -61,25 +62,48 @@
+
+
- {% if TOTAL_CLASSES %}
-
-
Classes ({{TOTAL_CLASSES}})
+
-
-
Branch:
-
Owl:Thing
-
+
+
Branch:
+
Owl:Thing
+
-
-
+
+
+
- {% endif %}
+
+
+
@@ -124,7 +148,7 @@
Classes ({{TOTAL_CLASSES}})
-
-
-
-
-
- {% else %}
-
-
-
-
-
-
-
-
- {% endif %}
-
-
-
-
- {% include 'shared/js_slidereveal.html' %}
-
-
-
-
-
-{# JAVASCRIPT FOR D3 TREE #}
-
-
-
-
-
-
-
-
-{% endblock the_javascript %}
-
-
-
-
diff --git a/ontospy/gendocs/media/templates/d3/d3_dendogram.html b/ontospy/gendocs/media/templates/d3/d3_dendogram.html
index 4115eec..72f1d77 100755
--- a/ontospy/gendocs/media/templates/d3/d3_dendogram.html
+++ b/ontospy/gendocs/media/templates/d3/d3_dendogram.html
@@ -5,79 +5,75 @@
{% block custom_css %}
+
+
{% endblock custom_css %}
@@ -91,37 +87,34 @@
{% block main_content %}
-
- {% if TOTAL_CLASSES %}
-
-
Classes ({{TOTAL_CLASSES}})
-
-
-
-
-
+
- {% endif %}
-
- {% if TOTAL_PROPERTIES %}
-
-
Properties ({{TOTAL_PROPERTIES}})
-
-
-
-
-
- {% endif %}
-
-
- {% if TOTAL_CONCEPTS %}
-
-
Concepts ({{TOTAL_CONCEPTS}})
-
+
+
+
+
@@ -129,8 +122,6 @@
Concepts ({{TOTAL_CONCEPTS}})
- {% endif %}
-
@@ -195,14 +186,15 @@
Concepts ({{TOTAL_CONCEPTS}})