8000 Sidebar is not using configuration prefix · Issue #10 · naver/jsdoc-to-mdx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sidebar is not using configuration prefix #10

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

Open
selankon opened this issue Nov 24, 2022 · 3 comments
Open

Sidebar is not using configuration prefix #10

selankon opened this issue Nov 24, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@selankon
Copy link

With this config file

{
  "locales": [],
  "outDir": "./docs",
  "localesDir": "./docs/i18n/{locale}/docusaurus-plugin-content-docs/current/sdk",
  "sidebar": "./docs",
  "prefix": "sdk/",
  "jsdoc": "./jsdoc.json"
}

The generated sidebar is called: sidebars-api.js and the generated is:

module.exports = {
  "api": [
    {
      "type": "category",
      "label": "Class",
      "items": [
        "sdk/AccountAPI",
        "sdk/CensusAPI",
//...

Note that for the menu and for the name of the sidebar is using de api prefix. But for the items is using sdk which is correct.

I didn't found where to config this.

@malangfox malangfox self-assigned this Nov 25, 2022
@malangfox malangfox added the question Further information is requested label Nov 25, 2022
@WoodNeck
Copy link
Member

There're no options for that, for now.
I can add the option to change that name if needed, but I want to ask something before that as I have to test something.
Does changing api to sdk make any different output on the document page?

@WoodNeck WoodNeck added enhancement New feature or request and removed question Further information is requested labels Nov 28, 2022
@WoodNeck WoodNeck assigned WoodNeck and unassigned malangfox Nov 28, 2022
@selankon
Copy link
Author

It not make any different output, so I adapted my code to work with this names

@WoodNeck
Copy link
Member

I'll add the option in the future update, thanks for the suggestion :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
0