diff options
| author | stefanorigano <sri@odoo.com> | 2017-11-27 14:32:22 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2017-12-01 10:51:53 +0100 |
| commit | c201cf2b77cf44e9ad15165ceadde41dfaa20ceb (patch) | |
| tree | ede1a10d312d599489c40f962aa160ef335767f0 /doc/_extensions/odoo_ext/translator.py | |
| parent | 676c982edaa448824292d712245fbf27aceb4f18 (diff) | |
[IMP] doc: revamp documentation design
A comprehensive theme’s revamp, details:
=== New features ===
- Show titles permalink markers on hover
- “Scrollspy” effect for the sidebar
=== Fixes ===
- Solve an issue causing the sidebar to flicker on scroll
- Hide the sidebar if less then two links
=== Design ===
- Improve typography vertical rhythm and line height
- Visually increase separation between sections
- Review alerts and <dl> design
- Reduce cover’s size
- Reduce overall paddings/margins.
Closes #21304
Diffstat (limited to 'doc/_extensions/odoo_ext/translator.py')
| -rw-r--r-- | doc/_extensions/odoo_ext/translator.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/_extensions/odoo_ext/translator.py b/doc/_extensions/odoo_ext/translator.py index 9b038fd906b..da4e8731628 100644 --- a/doc/_extensions/odoo_ext/translator.py +++ b/doc/_extensions/odoo_ext/translator.py @@ -312,9 +312,9 @@ class BootstrapTranslator(nodes.NodeVisitor, object): def visit_title(self, node): parent = node.parent - closing = u'</p>' + closing = u'</h3>' if isinstance(parent, nodes.Admonition): - self.body.append(self.starttag(node, 'p', CLASS='alert-title')) + self.body.append(self.starttag(node, 'h3', CLASS='alert-title')) elif isinstance(node.parent, nodes.document): self.body.append(self.starttag(node, 'h1')) closing = u'</h1>' @@ -633,9 +633,9 @@ class BootstrapTranslator(nodes.NodeVisitor, object): classes = env.metadata[ref].get('types', 'tutorials') classes += ' toc-single-entry' if not toc else ' toc-section' self.body.append(self.starttag(node, 'div', CLASS="row " + classes)) - self.body.append(u'<h2 class="col-sm-12">') + self.body.append(u'<div class="col-sm-12"><h2>') self.body.append(title if title else util.nodes.clean_astext(env.titles[ref])) - self.body.append(u'</h2>') + self.body.append(u'</h2></div>') entries = [(title, ref)] if not toc else ((e[0], e[1]) for e in toc[0]['entries']) for subtitle, subref in entries: |
