I did this by customising layout.html with a condition check:
{%- if pagename != "index" and pagename != "search" %}
{%- block sidebar1 %}
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
{% endblock %}
{%- endif %}
On Monday, August 6, 2018 at 11:34:45 PM UTC+2, Barbara Snyder wrote:
>
> I have searched high and low for this info and just can't find it.
>
> We are using a customized alabaster theme and are playing with a re-org of
> our docs that would replace the need for a toctree in the sidebar. I would
> like to remove the sidebar completely, so the text of an HTML page is the
> full width of the browser window. I have commented out everything I can
> find related to sidebars, but it is still there. I even tried setting it to
> 1 pixel in width, but nothing has changed.
>
> How can I tell sphinx to not include the sidebar at all?
>
> Thanks -- Barbara
>
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.