ansible-community / sphinx_ansible_theme

A reusable Ansible Sphinx Theme

Home Page:https://sphinx-ansible-theme.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Expand/collapse capability

samccann opened this issue · comments

Based on the Documentation working group meeting, we would like to investigate the option to add expand/collapse capability to the Ansible theme.

This is still an idea we need to flesh out some more, but the hope is that we can start creating Ansible example pages where we have multiple components to each example. At the minimum, a playbook and the associated output. Then the user could click on the title of an example that sounds interesting and 'expand' to see the example. This would make it potentially easier when scrolling through large example pages to find what's of interests without having to scroll past long coding or output sections that aren't of interest.

If this is possible, we could then expand the functionality to the module docs pages as well.

We need to see if this really belongs in the theme, though. It may be the case that the end-users could just use third-party extensions to achieve this.

Quick googling revealed https://sphinx-togglebutton.rtfd.io and https://sphinx-toolbox.rtfd.io/en/stable/extensions/collapse.html.

Also, somebody on the Write The Docs slack recently mentioned the new hotness — https://sphinx-design.readthedocs.io/en/furo-theme/dropdowns.html.

agreed and thanks!