-
Notifications
You must be signed in to change notification settings - Fork 21
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
Port and update Wikilink Docusaurus plugin #32
Comments
Had a shot at this, but I got stuck trying to access the list of pages within a custom remark plugin (which wrapped remark-wiki-link). We could crawl files but this isn't ideal as plugin-content-docs definitely keeps context of these. One solution I can think is to wrap plugin-content-docs so we can pass in the page list / sitemap, but I'd like to check with others before continuing as it does seem over the top. Another could be to have react components responsible for this, but it wouldn't be my first pick. |
Wrapping While I agree that crawling the Instead of stuffing all the functionality into a wrapper around the remark plugin, I'd recommend looking into creating our own Docusaurus plugin to load all the data using their existing lifecycle infrastructure ( It might also be possible (if undocumented) to get access to other Docusaurus plugins' context from within a different plugin. Might be worth looking at some of their bundled presets, like I'm not sure I understand how you'd implement this in React components without sending a whole map of link text -> URL to the client, at which point we'd still have to figure out how to make that map. |
description
integrate the wikilink docusaurus plugin into our wiki
requires a preprocessing step which lists out pages as available for the plugin
tests?
implementation?
how to validate?
dependencies?
The text was updated successfully, but these errors were encountered: