nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitdoc: introduce `depth` service for DocComposite
[nit.git]
/
src
/
doc
/
html_templates
/
html_templates.nit
diff --git
a/src/doc/html_templates/html_templates.nit
b/src/doc/html_templates/html_templates.nit
index
83f6a36
..
7ffcdb0
100644
(file)
--- a/
src/doc/html_templates/html_templates.nit
+++ b/
src/doc/html_templates/html_templates.nit
@@
-284,10
+284,7
@@
redef class DocComposite
end
# Level <hX> for HTML heading.
- private fun hlvl: Int do
- if parent == null then return 0
- return parent.hlvl + 1
- end
+ private fun hlvl: Int do return depth
# Is `self` not displayed in the page.
#