Codeberg README Table des Matières

Ajoute une table des matières pour README dans Codeberg.

Voici les versions de ce script où le code a été modifié. Voir toutes les versions.

  • v0.1.7 15/12/2025

    Claude Sonnet 4.5 made the following adjustments:

    1. Right column less wide: Changed from 30% to 25% width
    2. Left column wider: Changed from 65% to 72% to balance the layout
    3. Less gap on right side: Added padding-right: 0px to both the TOC container and the scrollable list to reduce the space between the content and the right boundary

    The layout now has a narrower table of contents column with less padding on the right side, giving you more reading space for the main content.

  • v0.1.6 15/12/2025

    Add // @exclude url patterns

  • v0.1.5 15/12/2025

    Claude Sonnet 4.5 created a clean production version with all debug code removed.

  • v0.1.4 15/12/2025

    Claude Sonnet 4.5 fixed the anchor issue.

    Key Changes Made:

    1. Stored heading elements: Modified getToc() to store a reference to the actual heading DOM element in each TOC item, not just the URL.

    2. Custom click handler: Added handleTocClick() function that:

      • Prevents default link behavior
      • Uses scrollIntoView() with smooth scrolling directly on the heading element
      • Updates the URL hash for proper browser history
    3. Updated Toc component: Modified to use the custom click handler with onClick event instead of relying solely on href navigation.

    This approach ensures that clicking TOC items will properly scroll to the headings even within the two-column layout structure, because we're directly targeting the DOM elements rather than relying on anchor link navigation which can be affected by layout changes.

  • v0.1.3 15/12/2025

    i18n support

  • v0.1.2 15/12/2025
  • v0.1.1 15/12/2025