diff options
author | Petr Prikryl <prikryl@atlas.cz> | 2014-12-30 08:11:03 (GMT) |
---|---|---|
committer | Petr Prikryl <prikryl@atlas.cz> | 2014-12-30 08:11:03 (GMT) |
commit | 493e15310f140d610604ef67446c7e6b48076143 (patch) | |
tree | c5af9e1a608ccb193825e86d267d593da3570114 /templates/html/htmljsnavtree.tpl | |
parent | 84898eb601b4708ef4c310a517b99a4bf09f4954 (diff) | |
parent | ed39dab59f8af2c5b42cfac0b3140cf594412121 (diff) | |
download | Doxygen-493e15310f140d610604ef67446c7e6b48076143.zip Doxygen-493e15310f140d610604ef67446c7e6b48076143.tar.gz Doxygen-493e15310f140d610604ef67446c7e6b48076143.tar.bz2 |
Merge branch 'master' of https://github.com/doxygen/doxygen.git
Diffstat (limited to 'templates/html/htmljsnavtree.tpl')
-rw-r--r-- | templates/html/htmljsnavtree.tpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/html/htmljsnavtree.tpl b/templates/html/htmljsnavtree.tpl new file mode 100644 index 0000000..a7ad88e --- /dev/null +++ b/templates/html/htmljsnavtree.tpl @@ -0,0 +1,20 @@ +var NAVTREE = +[ +{% recursetree index.nav %} + [ "{{ node.name }}", {% if node.file %}"{{ node.file }}{{ config.HTML_FILE_EXTENSION }}{% if node.anchor %}#{{ node.anchor }}{% endif %}"{% else %}null{% endif %},{% if not node.is_leaf_node %} [ + {{ children }} + ]{% else %} null{% endif %} ]{% if not node.last %},{% endif %} +{% endrecursetree %} +]; + +var NAVTREEINDEX = +[ +{% with navlist=index.nav|flatten|listsort:config.HTML_FILE_EXTENSION|prepend:'{{file}}'|append:'#{{anchor}}' navpages=navlist|paginate:250 %} + {% for page in navpages %} + "{{ page.0.file }}{{ config.HTML_FILE_EXTENSION }}{% if page.0.anchor %}#{{ page.0.anchor }}{% endif %}"{% if not forloop.last %},{%endif %} + {% with idx=forloop.counter0 entries=page %} + {% create forloop.counter0|prepend:'navtreeindex'|append:'.js' from 'htmljsnavindex.tpl' %} + {% endwith %} + {% endfor %} +{% endwith %} +]; |