diff --git a/docs/theme/reference_options.html b/docs/theme/reference_options.html
index bcf91490..940f3158 100644
--- a/docs/theme/reference_options.html
+++ b/docs/theme/reference_options.html
@@ -1,7 +1,7 @@
## Options
{%- for name, option in options.items() recursive %}
-##{{loop.depth * "#"}} {{ name.replace("<", "<").replace(">", ">") }}
+##{{loop.depth * "#"}} {{ ((option.loc | join (".")) or name).replace("<", "<").replace(">", ">") }}
{{ option.description or '' }}
@@ -29,6 +29,7 @@
{%- endif -%}
+
{% endif %}
{%- if option.children -%}