Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add horizontal scrollbar to TOC when required #831

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

geographika
Copy link
Member

Currently due to long constant names there are overlaps between the TOC and the content at https://mapserver.org/mapscript/mapscript-api/index.html

image

This pull request ensures a horizontal scrollbar is used (when required) to avoid this overlap.

image

I was hoping the local TOC could be modified on that page, but it does not appeat to be possible. Failed attempts included adding:

.. toctree::
   :hidden:
   :maxdepth: 2

.. contents:: Table of Contents
   :local:
   :depth: 2

And also trying to modify localtoc2.html similar to how the Read the Docs theme works with the global TOC, but this does not work with toc:

{%- if display_toc %}
  <h3>{{ _('Current Table Of Contents') }}</h3>
  {{ toc(maxdepth=2) }}
{%- endif %}

@jmckenna
Copy link
Member

thanks @geographika

@jmckenna jmckenna added the backport branch-8-0 To backport a pull request to branch-8-0 label Aug 17, 2023
@jmckenna jmckenna merged commit c9a9df6 into MapServer:main Aug 17, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport branch-8-0 To backport a pull request to branch-8-0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants