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 docuteOptions to pass options into docute #190

Open
wants to merge 2 commits into
base: monorepo
Choose a base branch
from

Conversation

johnsusek
Copy link

@johnsusek johnsusek commented Aug 8, 2020

This allows more flexibility to add docute options to the output.

Example vuese.config.js:

module.exports = {
  docuteOptions: {
    darkThemeToggler: true
  }
};

Additionally, if docuteOptions.sidebar exists, the sidebars will be merged with the custom content first, then vuese sidebar below it.

Screen Shot 2020-08-07 at 9 35 19 PM

In this screenshot, the "Plugins" section is defined like this in the config:

module.exports = {
  docuteOptions: {
    sidebar: [
      {
        title: 'Plugins',
        links: [
          {
            title: 'EvMenu',
            link: '/plugins/EvMenu'
          }
        ]
      }
    ]
  }
};

Thanks!

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.

None yet

1 participant