From a6493f77af47652bcf8aff56af1a00185e128759 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 9 Apr 2015 10:29:38 +0200 Subject: [PATCH] [IMP] fix links to business mementoes * rename functional -> business * fix navbarification of main toctree: would stop processing after it hit the first toc item without children, and the business links (with children) follow the web service toc item (without children) --- doc/_themes/odoodoc/sphinx_monkeypatch.py | 2 +- doc/business.rst | 7 +++++++ doc/conf.py | 2 +- doc/index.rst | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 doc/business.rst diff --git a/doc/_themes/odoodoc/sphinx_monkeypatch.py b/doc/_themes/odoodoc/sphinx_monkeypatch.py index 5bce9c9a155..60e8ed5a4b3 100644 --- a/doc/_themes/odoodoc/sphinx_monkeypatch.py +++ b/doc/_themes/odoodoc/sphinx_monkeypatch.py @@ -50,7 +50,7 @@ def navbarify(node, navbar=None): # reference # no bullet_list.list_item -> don't dropdownify if not list_item.children[1].children: - return + continue list_item['classes'].append('dropdown') # list_item.compact_paragraph.reference diff --git a/doc/business.rst b/doc/business.rst new file mode 100644 index 00000000000..26d4dfdf97a --- /dev/null +++ b/doc/business.rst @@ -0,0 +1,7 @@ +================== +Business Mementoes +================== + +.. toctree:: + + Accounting Memento diff --git a/doc/conf.py b/doc/conf.py index 93fda3ab786..91fd81bf07b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -194,7 +194,7 @@ def setup(app): app.add_config_value('versions', '', 'env') app.connect('html-page-context', analytics) - app.add_config_value('google_analytics_key', False, 'env') + app.add_config_value('google_analytics_key', '', 'env') def canonicalize(app, pagename, templatename, context, doctree): """ Adds a 'canonical' URL for the current document in the rendering diff --git a/doc/index.rst b/doc/index.rst index 906fdedb31a..131547b3d77 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -14,7 +14,7 @@ Odoo Technical Documentation setup reference api_integration - functional mementoes + business .. ifconfig:: todo_include_todos