-
Notifications
You must be signed in to change notification settings - Fork 94
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
Feature: Add page anchors (inter page links) #2841
Conversation
83f2e23
to
992a6b2
Compare
/compile amend |
992a6b2
to
39f3028
Compare
I just miss some testing coverage. |
Ok then I will add some tests for it, I guess checking for
is sufficient? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks for taking care of this. Just a minor wording comment.
6e45150
to
cae5654
Compare
Tasks done @vinicius73 @max-nextcloud |
Wording change looks good. Thanks! |
cae5654
to
56f77b5
Compare
/compile |
840a1e7
to
d918bd9
Compare
/compile amend |
d918bd9
to
257cb86
Compare
Which browser do you use? (So I can reproduce and try to fix it). |
257cb86
to
ea1678b
Compare
Chrome 104 I've sent a commit about this, check if it is ok pls. |
8850cae
to
34596c0
Compare
@vinicius73 thank you, now it works perfectly! |
/compile amend |
34596c0
to
3e0e371
Compare
3e0e371
to
34596c0
Compare
Handle inter-page links properly and use a heading view for displaying links and link anchors. Implements #2173 Also fix link handling, to scroll to selected header when clicking on an anchor link (`#some-id`). Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Also added a chai assertion for checking an element is currently shown in the viewport of the window. This is needed as the cypress visibility checks fail for tiptap elements, as they are overlaid by the author color / names. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
34596c0
to
24543c7
Compare
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Very nice. Thanks again for all the great contributions @susnux In case you haven't seen we will have the Nextcloud conference taking place in about a moth again in Berlin with a lot of talks over the weekend but also some coding days afterwards and it would be quite cool to have you there and meet each other in person. There is also travel support for contributors. More info is available at http://nextcloud.com/conference-2022/ or if you have any questions just let me know. |
⏪️ Revert #2841 (page anchors)
@juliushaertl I would loved to, but besides being invited for a important familiar event, I am down with the flu so it is and was not possible for me participate. Maybe in the future! |
Summary
This is a replacement of #2520 (pushed on this repository to enable the CI correctly).
Most parts were already resolved by #2688 (adding IDs to headings, creating the slugs etc), so this just provides the missing user interface (clickable anchor, copyable link, scrolling into view).
It shows the permalink when hovering the heading: