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 table of contents to the documentation page sidebar #140

Merged

Conversation

caendesilva
Copy link
Member

Adds a configurable table of contents to the documentation page sidebar. By default, heading levels between 2 and 4 are added.

image

// config/hyde.php

    /*
    |--------------------------------------------------------------------------
    | Documentation Table of Contents Settings
    |--------------------------------------------------------------------------
    |
    | The Hyde Documentation Module comes with a fancy Sidebar that, by default,
    | has a Table of Contents included. Here, you can configure its behavior,
    | content, look and feel. You can also disable the feature completely.
    |
    */

    'documentationPageTableOfContents' => [
        'enabled' => true,
        'minHeadingLevel' => 2,
        'maxHeadingLevel' => 4,
        'smoothPageScrolling' => true,
    ]

@caendesilva caendesilva linked an issue Apr 20, 2022 that may be closed by this pull request
@caendesilva caendesilva merged commit 840eb1f into master Apr 20, 2022
@caendesilva caendesilva deleted the 115-add-table-of-contents-to-the-documentation-page-sidebar branch April 20, 2022 08:53
caendesilva pushed a commit that referenced this pull request Jul 2, 2022
…snavigationmenu-when-having-a-page-file-starting-with-an-underscore-after-updating-to-v044x

Fix bug causing files starting with underscores to add empty values to the file collection array hydephp/develop@a6aada7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table of contents to the documentation page sidebar
2 participants