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

Add & use custom Markdoc component for "Try it!" and "Query example transaction" buttons #2967

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

mDuo13
Copy link
Collaborator

@mDuo13 mDuo13 commented Jan 29, 2025

Add a new Markdoc component for "Try it!" links, so they show up as a button again, and a related component for "Query example transaction" links. The component automatically provides a translatable label. The "Query example transactions" component uses APIv2 by default. Additionally:

  • I updated the existing instances of these to use the new syntax in both English and Japanese.
  • I added a couple new instances for methods and transactions that had examples available.
  • I documented the new components on the Contribute Documentation page. I made a couple other minor formatting edits to that page and mentioned a couple of our other custom Markdoc components while I was there.
  • I added the manifest and version commands to the WebSocket API tool using the examples from their respective documentation pages. I also changed the ledger method in the WS tool to use API v2.
  • I switched the order of AccountSet and AccountDelete in the sidebar to make them correctly alphabetical like the other transaction types.

@mDuo13 mDuo13 added web dev Styles, templates, or other technologies for how the site is built & presented dev-tools labels Jan 29, 2025
Copy link
Contributor

@DennisDawson DennisDawson left a comment

Choose a reason for hiding this comment

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

LGTM

@mDuo13 mDuo13 merged commit 4077af8 into master Jan 30, 2025
5 of 6 checks passed
@mDuo13 mDuo13 deleted the try_it_component branch January 30, 2025 00:46
tequdev added a commit to tequdev/xrpl-dev-portal that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools web dev Styles, templates, or other technologies for how the site is built & presented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants