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

Auto-generated separate reference pages for Julia objects / docstrings #2133

Open
mortenpi opened this issue May 26, 2023 · 4 comments
Open
Labels
Type: Feature Type: Plugin A feature that should be implemented as a separate package.

Comments

@mortenpi
Copy link
Member

Originally mentioned in #212, but in light of @odow's work in jump-dev/JuMP.jl#3386, I think this deserves a dedicated issue.

Have function, type, module etc. reference as a separate set of pages, one item per page. Every item would then have a systematic URL (e.g. /reference/Documents/Page) to page that would contain the docstring, but also additional information (source links, lists of methods etc).

I think this is definitely a feature that should be explored, to nudge people towards more thorough docstrings etc.

One thing we could also do is generate backlinks from those reference pages to (1) where the docstring is referenced with at-ref, and (2) if we simultaneously allow including the docstrings in-line (related: #1079), we should also backlink to those.

I do think this should be done, in the first iteration, as a plugin package. Once that stabilizes, we could integrate it into Documenter-proper.

@mortenpi mortenpi added Type: Feature Type: Plugin A feature that should be implemented as a separate package. labels May 26, 2023
@fredrikekre
Copy link
Member

Xref JuliaLang/julia#29552

@mortenpi
Copy link
Member Author

Also mentioned in https://discourse.julialang.org/t/generate-structured-documentation/99247 and worth noting that Pollen.jl has this feature.

@odow
Copy link
Collaborator

odow commented May 26, 2023

Adding some screenshots from https://fluxml.ai/FastAI.jl/dev/FastAI@dev/ref/FastAI.html.

I like the table of symbols sorted by type. And the backlink feature. Makes it easy to see where that function is used in the documentation.

image image image

@odow
Copy link
Collaborator

odow commented Nov 1, 2023

See #443 for some other suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Type: Plugin A feature that should be implemented as a separate package.
Projects
None yet
Development

No branches or pull requests

3 participants