# Set toc\_object\_entries=True to auto add functions/classes to the page's table of contents?

**URL:** <https://forum.djangoproject.com/t/set-toc-object-entries-true-to-auto-add-functions-classes-to-the-pages-table-of-contents/38902>\
**Category:** Documentation\
**Created:** [February 17, 2025, 11:57am UTC](https://forum.djangoproject.com/t/set-toc-object-entries-true-to-auto-add-functions-classes-to-the-pages-table-of-contents/38902 "2025-02-17T11:57:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sarahboyce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sarahboyce/32/12734_2.png) [@sarahboyce](https://forum.djangoproject.com/u/sarahboyce)\
**Post date:** [February 18, 2025, 4:27pm UTC](https://forum.djangoproject.com/t/set-toc-object-entries-true-to-auto-add-functions-classes-to-the-pages-table-of-contents/38902/5 "2025-02-18T16:27:42Z")

</div>

Been reflecting and I think the [@accessibility](https://forum.djangoproject.com/groups/accessibility) team should consult here

Folks who use assistive technologies/screen-readers would have to navigate the page differently if we remove headers (they would navigate via lists/list items instead `<dl>`, `<dt>`…).

I also think the indents impact where the information is structured in the HTML and we should perhaps get guidance on this.

Hence, I would love the accessibility team to review the options available as to how we can structure the reference docs and advise us on the best result in terms of a good table of contents and a good screen reader experience.

We can then add that to the contributing guide and work towards it. 👍

---

_[View the full topic](https://forum.djangoproject.com/t/set-toc-object-entries-true-to-auto-add-functions-classes-to-the-pages-table-of-contents/38902)._
