-
Notifications
You must be signed in to change notification settings - Fork 177
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
docusaurus: inject 'slug: /' in api/index.md #143
Comments
ok thanks will have a look at this. |
@felipecrs fixed in 0.2.0 |
I see that now, I worked around it by implementing my own In any case, if in the future this feature gets implemented (facebook/docusaurus#3475), we will be in business anyway. |
I see. I suppose we could provide another option |
Beyond that, I would need to disable the |
Good point. In fact, after #203, I would need a new option: |
Also, just to you know, I tried to make docusaurus use the $ docusaurus start
Starting the development server...
Info: Loaded plugin typedoc-plugin-markdown
Info: TypeDoc sidebar written to /home/felipesantos/repos/megatar/website/typedoc-sidebar.js
Generated 7 of 7 TypeDoc docs
Info: Documentation generated at /home/felipesantos/repos/megatar/docs/api
Error: Error loading {"type":"category","collapsed":true,"label":"0","items":"a"}. "items" must be an array.
at assertIsCategory (/home/felipesantos/repos/megatar/node_modules/@docusaurus/plugin-content-docs/lib/sidebars.js:51:15)
at normalizeItem (/home/felipesantos/repos/megatar/node_modules/@docusaurus/plugin-content-docs/lib/sidebars.js:91:13)
at arrayMap (/home/felipesantos/repos/megatar/node_modules/lodash.flatmap/index.js:140:21)
at map (/home/felipesantos/repos/megatar/node_modules/lodash.flatmap/index.js:1928:10)
at Object.flatMap [as default] (/home/felipesantos/repos/megatar/node_modules/lodash.flatmap/index.js:1881:22)
at normalizeSidebar (/home/felipesantos/repos/megatar/node_modules/@docusaurus/plugin-content-docs/lib/sidebars.js:114:36)
at /home/felipesantos/repos/megatar/node_modules/lodash/lodash.js:13469:38
at /home/felipesantos/repos/megatar/node_modules/lodash/lodash.js:4967:15
at baseForOwn (/home/felipesantos/repos/megatar/node_modules/lodash/lodash.js:3032:24)
at Function.mapValues (/home/felipesantos/repos/megatar/node_modules/lodash/lodash.js:13468:7)
at normalizeSidebars (/home/felipesantos/repos/megatar/node_modules/@docusaurus/plugin-content-docs/lib/sidebars.js:117:21)
at Object.loadSidebars (/home/felipesantos/repos/megatar/node_modules/@docusaurus/plugin-content-docs/lib/sidebars.js:132:12)
at loadVersion (/home/felipesantos/repos/megatar/node_modules/@docusaurus/plugin-content-docs/lib/index.js:98:45)
at Array.map (<anonymous>)
at Object.loadContent (/home/felipesantos/repos/megatar/node_modules/@docusaurus/plugin-content-docs/lib/index.js:150:68)
at /home/felipesantos/repos/megatar/node_modules/@docusaurus/core/lib/server/plugins/index.js:55:59 This doesn't affect me as I'm using my own |
Hey @tgreyuk, I just saw something at Docusaurs and I wanted to let you know: Also, news at sidebars is incoming: |
Thanks for heads-up @felipecrs |
@felipecrs Can we close this ticket? |
Idk what I'm doing wrong, but I get the slug as something weird:
Because of this Docusaurus won't start. Any leads? |
I think this was because of changes in typedoc 0.21. If you try again with latest version it should work. |
Hey @tgreyuk Perhaps this is a separate issue but it would be great if we could specify the slug we want to use in Would you be open to that? |
@edew yeah could provide an |
As for the original ticket the feature does appear to be doable as per facebook/docusaurus#3475 . |
Since
homePageId: "api/index"
is deprecated, thedocs/api/index.md
should contain a new header:The text was updated successfully, but these errors were encountered: