We now override the toc.js originally provided by Spring Docs to customize the collapseDepth property and also jump to the #reference anchor if no anchor is set. This should be improved to rather provide a custom docinfo.html that includes an additional JavaScript file to tweak the tocbot settings and anchor defaulting.