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

Allow the version to link to the versioned pages on api.dart.dev #3931

Open
athomas opened this issue Nov 18, 2024 · 1 comment
Open

Allow the version to link to the versioned pages on api.dart.dev #3931

athomas opened this issue Nov 18, 2024 · 1 comment
Labels
P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@athomas
Copy link
Member

athomas commented Nov 18, 2024

Currently, dartdoc generates the version as plain text. On api.dart.dev, it would be nice if the version was a link to the versioned (permalink) variant of the page:

https://api.dart.dev/dart-ffi/dart-ffi-library.html
-> Click the version number (the current stable in this case)
https://api.dart.dev/stable/3.5.4/dart-ffi/dart-ffi-library.html (same page, but will not change when new versions are published)

https://api.dart.dev/beta/latest/dart-ffi/dart-ffi-library.html
-> Click the version number (the current beta in this case)
https://api.dart.dev/beta/3.6.0-334.4.beta/dart-ffi/dart-ffi-library.html (same page, but will not change when new versions are published, note: unlike stable links, this page will expire at some point)

@athomas
Copy link
Member Author

athomas commented Nov 18, 2024

A fancier variant would be a version selector as requested here:
dart-archive/api.dart.dev#86

@pq pq added the P3 A lower priority bug or feature request label Nov 20, 2024
@srawlins srawlins added the type-enhancement A request for a change that isn't a bug label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants