Skip to content

dartdoc version shipped with 3.2.0 has broken sidebar #54067

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

Closed
parlough opened this issue Nov 16, 2023 · 5 comments
Closed

dartdoc version shipped with 3.2.0 has broken sidebar #54067

parlough opened this issue Nov 16, 2023 · 5 comments
Assignees
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. dart-cli-doc

Comments

@parlough
Copy link
Member

parlough commented Nov 16, 2023

The left sidenav is missing on generated documentation for non-class templates/pages.

Example: https://api.dart.dev/stable/3.2.0/dart-ffi/NativeCallable/NativeCallable.isolateLocal.html

On the stable branch (3.2.0) dartdoc is at dart-lang/dartdoc@a3cfdc4.

There were a few related dartdoc fixes that landed after the beta cutoff:

dartdoc v7.0.1 should include all of these fixes, but it is a relatively wide range of commits, so I'm not sure if that's acceptable from a cherrypick perspective?

@parlough parlough added area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. dart-cli-doc labels Nov 16, 2023
@bkonyi
Copy link
Contributor

bkonyi commented Nov 16, 2023

FYI @srawlins @mit-mit

@srawlins
Copy link
Member

We generally pick commits, not pub-published versions of our DEPS dependencies, so it's not as bad as the range with 26 commits you point out, @parlough. Only 18 to get the fixes: dart-lang/dartdoc@a3cfdc4...4283dbc.

I would support this cherry-pick. In that range of commits I see:

I'll also note that Flutter bumped to dartdoc 7.0.1, for generation of api.flutter.dev, with flutter/flutter@997a94f, on Oct 20.

@srawlins
Copy link
Member

Ah, but this is of course a cherry-pick of a commit sitting in SDK main branch. So which commit do we pick? The DEPS rolls often include more than one package which would make it a much spookier cherry-pick, but luckily the commit that introduces the 3rd fix to the sidebars is 279f6d7, which includes only one more local commit (dart-lang/dartdoc@8c10339), a harmless docs change.

@parlough
Copy link
Member Author

Thanks for your thoughts and insight @srawlins. I agree that's a good commit to use and nothing in that range seems concerning. The original range included canonicalization changes, so this seems much better.

I opened #54073 and https://dart-review.googlesource.com/c/sdk/+/336780, but I've never created a cherry-pick request before, so let me know if I made any mistakes. Thank you!

copybara-service bot pushed a commit that referenced this issue Nov 17, 2023
Update dartdoc for missing sidebars and incorrect links in sidebars.

Fixes #54067
Closes #54073

Bug: #54067
Change-Id: I19c1e5c21a293aa29bfa6c1e93f097bba1fd8faa
Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/330666
Cherry-pick-request: #54073
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/336780
Reviewed-by: Ben Konyi <[email protected]>
Commit-Queue: Jonas Termansen <[email protected]>
Reviewed-by: Samuel Rawlins <[email protected]>
@parlough
Copy link
Member Author

parlough commented Dec 2, 2023

Fixed by 50b4c43 landing in stable :)

@parlough parlough closed this as completed Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. dart-cli-doc
Projects
None yet
Development

No branches or pull requests

3 participants