Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Oct 3, 2024

  • Deployed to staging for verification.
  • The floating part is extremely limited, but provides 80% of the value for very little investment, and we can iterate on it later. When the display is narrow, the table of contents is inlined as part of the admin page.
  • Floating example:
image

@isoos isoos requested review from jonasfj and sigurdm October 3, 2024 13:35
@isoos isoos changed the title Table of Contents for package admin page + minimal floating implementation. Table of Contents for package admin page. Oct 4, 2024
@isoos
Copy link
Collaborator Author

isoos commented Oct 4, 2024

Note: removed the floating part for now, let's iterate on it separately.

@jonasfj
Copy link
Member

jonasfj commented Oct 4, 2024

We should probably deploy this to staging.

@jonasfj jonasfj requested review from szakarias and removed request for jonasfj October 7, 2024 09:04
@jonasfj
Copy link
Member

jonasfj commented Oct 7, 2024

@sigurdm and @szakarias do you have opinions?

child: d.div(
classes: ['pub-toc'],
children: [
d.div(child: d.b(text: 'Contents')),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open question. Should we (specifically for the admin page) call this

Suggested change
d.div(child: d.b(text: 'Contents')),
d.div(child: d.b(text: 'Sections')),

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is fine to call it Sections on any page really. It is not that we can guarantee that a random README actually has a content, only the section headers.

@sigurdm
Copy link
Contributor

sigurdm commented Oct 7, 2024

There's ...something.. about the layout. I cannot quite put words to it.

But I think it is good enough for starters. We can always iterate on it.

Copy link
Contributor

@sigurdm sigurdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine.

I'm OK with keeping 'Contents' just wanted to consider it.

@isoos isoos merged commit 7e8f0b1 into dart-lang:master Oct 7, 2024
32 checks passed
@isoos isoos deleted the admin-toc branch October 7, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants