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 :reference_apps option #1709
Add :reference_apps option #1709
Conversation
assets/fonts/remixicon.woff2
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've bumped the Remix Icon font to its latest version, since the currently used version does not support the external-link icon
|
My concern with this is that after you follow the link you will lose the original search context because the new app you landed will not have the same deps. Something that has come up recently is that it can be hard to navigate the phoenix docs because phoenix has been split out into multiple apps over time. Imagine you are in https://hexdocs.pm/phoenix and search for "render", you get hits for I think we need another solution that is not based on deps. |
|
Additionally, the way things are at the moment we need to put into :reference_apps things that are already in deps(), ie it's redundant and instead things from deps should automatically be available? |
|
Hey @ericmj and @wojtekmach, I see what you mean. The idea would to have something like In a way that projects can build "unified" search results across multiple ex_doc instances, without directly depending on them, right? Also, in order for ease of testing, I think we first try to reach the local deps and fallback to pulling it from hex |
|
Wouldn't The workflow could be something like Enum.map([:ecto, :ecto_phoenix], &build_app_docs/1)where Since it would always be run when building the docs and stored inside the project, I think there would be no cache issues. Also, should we always link to the latest version? Currently it links to the version used by the project, but I think this will no longer make sense when fetching remote deps |
|
Thank you @viniciusmuller! This is amazing but I guess there are good concerns about the feature not being transitive. :( |
|
Given the limitations above, we will plan to tackle this in other ways, such as providing hexdocs-wide search. Thank you! |

This pull request adds the
:reference_appsoption, which will take a list of dependencies and generate completions in the sidebar that link to their original documentation page.I invite anyone who might be interested in this feature to give the branch a try and report any issues
Preview
TODO
Closes #1551