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

[Feature Request] Global options with multiple sidebar #172

Open
mrleblanc101 opened this issue Sep 13, 2024 · 0 comments
Open

[Feature Request] Global options with multiple sidebar #172

mrleblanc101 opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mrleblanc101
Copy link

Hi,
Maybe I'm missing something, but I think there should be a way to define some option globally instead of repeating every time when using the multiple sidebar option:

    sidebar: generateSidebar([
        {
            scanStartPath: 'frontend',
            basePath: '/frontend/',
            resolvePath: '/frontend/',
            // useTitleFromFileHeading: true,
            hyphenToSpace: true,
            underscoreToSpace: true,
            capitalizeFirst: true,
            collapsed: true,
            sortMenusByName: true,
        },
        {
            scanStartPath: 'backend',
            basePath: '/backend/',
            resolvePath: '/backend/',
            // useTitleFromFileHeading: true,
            hyphenToSpace: true,
            underscoreToSpace: true,
            capitalizeFirst: true,
            collapsed: true,
        },
        {
            scanStartPath: 'sysadmin',
            basePath: '/sysadmin/',
            resolvePath: '/sysadmin/',
            // useTitleFromFileHeading: true,
            hyphenToSpace: true,
            underscoreToSpace: true,
            capitalizeFirst: true,
            collapsed: true,
        },
        {
            scanStartPath: 'devops',
            basePath: '/devops/',
            resolvePath: '/devops/',
            // useTitleFromFileHeading: true,
            hyphenToSpace: true,
            underscoreToSpace: true,
            capitalizeFirst: true,
            collapsed: true,
        },
    ]),
    ```
@mrleblanc101 mrleblanc101 added the bug Something isn't working label Sep 13, 2024
@jooy2 jooy2 added enhancement New feature or request and removed bug Something isn't working labels Sep 16, 2024
@jooy2 jooy2 mentioned this issue Feb 7, 2025
10 tasks
@jooy2 jooy2 added the good first issue Good for newcomers label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants