Skip to content

docs: link element to partials#519

Merged
melissahenderson merged 2 commits intomainfrom
mh-link-partial
Apr 9, 2025
Merged

docs: link element to partials#519
melissahenderson merged 2 commits intomainfrom
mh-link-partial

Conversation

@melissahenderson
Copy link
Collaborator

The link-element page is placed in the main table of contents within For Developers > Wallet linking and also within API docs > HTML DOM API. The reason is that this page is appropriate in both places.

However, since it's the same page, but with different table of contents titles, there's a navigation issue. If you click Next at the bottom of Wallet linking > Webpage (HTML), it takes you to the Feed page. If you click Next at the bottom of HTML DOM API > Monetization link element, it ALSO takes you to Feed instead of taking you to Monetization interfaces. If you use Next to navigate, you end up stuck in a loop.

I've made the content of the link-element page into a partials so that the partials can be embedded within two different pages, allowing the navigation to behave as expected.

The link-element page is placed in the main table of contents within For Developers > Wallet linking and also within API docs > HTML DOM API. The reason is that this page is appropriate in both places.

However, since it's the same page, but with different table of contents titles, there's a navigation issue. If you click Next at the bottom of Wallet linking > Webpage (HTML), it takes you to the Feed page. If you click Next at the bottom of HTML DOM API > Monetization link element, it ALSO takes you to Feed instead of taking you to Monetization interfaces. If you use Next to navigate, you end up stuck in a loop.

I've made the content of the link-element page into a partials so that the partials can be embedded within two different pages, allowing the navigation to behave as expected.
@netlify
Copy link

netlify bot commented Apr 9, 2025

Deploy Preview for webmonetization-preview ready!

Name Link
🔨 Latest commit c40285e
🔍 Latest deploy log https://app.netlify.com/sites/webmonetization-preview/deploys/67f6bce8c6b87400085cbbb8
😎 Deploy Preview https://deploy-preview-519--webmonetization-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Removed links to #web-monetization-agent from the -multilink and -iframes partials since they were breaking.
@melissahenderson melissahenderson merged commit 399c2df into main Apr 9, 2025
6 checks passed
@melissahenderson melissahenderson deleted the mh-link-partial branch April 9, 2025 18:37
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.

2 participants