Backporting code from the forked module toc_ng

Created on 8 August 2024, about 1 year ago
Updated 12 September 2024, 12 months ago

The toc_ng module embeds an almost complete rewrite of the abandoned toc.js library. Rewriting this 10 years old code has allowed us to simplify and improve it significantly.

  • This version takes also profit of new CSS features available to modern browsers like the sticky positioning.
  • This version also add the possibility to display a node specific table of contents in a block.
  • This version can generate a multi-level UL > LI table of contents structure.
  • This version allows proper handling of Ajax updated content, when using the view_auto_refresh module for example.
  • This version improves and simplifies ToC item highlighting, properly handling dynamically updated content.
  • This version's behavior has been audited for accessibility by the french company Temesis.
  • This version includes proper Gitlab CI configuration and passes all tests green.
  • This version should be ready for Drupal 11.

We are willing to take an active role in the maintenance of this module for the years to come.

This issue's MR shows the difference between the toc_ng and toc.js code bases.

Further discussion could take place in the comments.

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇫🇷France mably

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024