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

auto copy header link #4411

Merged
merged 24 commits into from
Nov 16, 2023
Merged

auto copy header link #4411

merged 24 commits into from
Nov 16, 2023

Conversation

mirnawong1
Copy link
Contributor

@mirnawong1 mirnawong1 commented Nov 7, 2023

This PR adds a headerLinkCopy function/script that will auto copy H2 and H3 header links when header or 🔗 icon is clicked. The script also has a pop up confirming the link was auto copied and times out after 3 seconds.

@mirnawong1 mirnawong1 requested a review from a team as a code owner November 7, 2023 20:38
Copy link

vercel bot commented Nov 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2023 10:46am

@github-actions github-actions bot added Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address labels Nov 7, 2023
@github-actions github-actions bot added the content Improvements or additions to content label Nov 7, 2023
@github-actions github-actions bot added size: large This change will more than a week to address and might require more than one person and removed size: medium This change will take up to a week to address labels Nov 8, 2023
@github-actions github-actions bot added size: medium This change will take up to a week to address and removed size: large This change will more than a week to address and might require more than one person labels Nov 13, 2023
Copy link
Collaborator

@JKarlavige JKarlavige left a comment

Choose a reason for hiding this comment

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

Awesome work with this @mirnawong1! Just have one requested change. I shared a loom along with a hint on what to adjust. Let me know if you have any questions and we can walk through it!

website/static/js/headerLinkCopy.js Outdated Show resolved Hide resolved
website/static/js/headerLinkCopy.js Show resolved Hide resolved
@mirnawong1
Copy link
Contributor Author

hey @JKarlavige thank you so much! ok i've tested this out and added another eventlistener - it looks like this world in a page refresh too. can you give it another review whenever you have a chance. thank you!

Copy link
Collaborator

@JKarlavige JKarlavige left a comment

Choose a reason for hiding this comment

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

all lgtm! great idea and awesome work again on this @mirnawong1! it even works in the blog which is pretty cool.

@mirnawong1
Copy link
Contributor Author

thank you so much for your guidance and help @JKarlavige ! 🚀

@mirnawong1 mirnawong1 merged commit 1adb441 into current Nov 16, 2023
5 checks passed
@mirnawong1 mirnawong1 deleted the mwong-auto-copy-header branch November 16, 2023 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants