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

On this page #1504

Merged
merged 1 commit into from
Oct 9, 2020
Merged

On this page #1504

merged 1 commit into from
Oct 9, 2020

Conversation

MarcinAman
Copy link
Contributor

@MarcinAman MarcinAman commented Sep 23, 2020

Component is available on pages with tabs and anchors as for other pages it doesn't make sense.
It is made to be on hover, just to quickly navigate to desired section.
What do you think about it?

@MarcinAman MarcinAman marked this pull request as draft September 23, 2020 18:16
@MarcinAman MarcinAman linked an issue Sep 23, 2020 that may be closed by this pull request
@MarcinAman MarcinAman marked this pull request as ready for review September 24, 2020 07:47
@@ -103,6 +106,7 @@ open class HtmlRenderer(
}
node.hasStyle(TextStyle.Paragraph) -> p(additionalClasses) { childrenCallback() }
node.hasStyle(TextStyle.Block) -> div(additionalClasses) { childrenCallback() }
node.isAnchorable -> buildAnchor(node.anchor, node.anchorLabel!!, node.sourceSetsFilters) { childrenCallback() }
Copy link
Contributor

Choose a reason for hiding this comment

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

Must we have a !! here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, because without it this doesn't make sense.
Also this wont produce NPE since isAnchorable checks if anchorLabel != null

@MarcinAman MarcinAman force-pushed the on-this-page branch 2 times, most recently from d1d2b32 to c5d54af Compare September 29, 2020 12:44
@MarcinAman
Copy link
Contributor Author

I dont know if you have realized but this PR depends on: #1307, so this one also needs a review ;D

@MarcinAman MarcinAman force-pushed the 1054-anchors-hint branch 2 times, most recently from 9ca5ae7 to cee5ab7 Compare October 8, 2020 16:46
Base automatically changed from 1054-anchors-hint to master October 8, 2020 17:05
@kamildoleglo
Copy link
Contributor

/rebase

@MarcinAman MarcinAman force-pushed the on-this-page branch 2 times, most recently from 1c2006b to 7bceb0a Compare October 9, 2020 11:48
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.

Create "On this page" dropdown
4 participants