mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-23 05:05:50 +00:00
Enable include_code by default
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
html: nftoken-batch-minting.html
|
||||
parent: non-fungible-tokens.html
|
||||
blurb: Minting NFToken objects in batches.
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: non-fungible-token-transfers.html
|
||||
parent: non-fungible-tokens.html
|
||||
blurb: NFTokenをダイレクトモードまたはブローカーモードで取引する。
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
status: not_enabled
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: non-fungible-token-transfers.html
|
||||
parent: non-fungible-tokens.html
|
||||
blurb: Trading NFTokens in direct or brokered mode.
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: non-fungible-tokens.html
|
||||
parent: tokens.html
|
||||
blurb: XRPL NFTの紹介。
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: non-fungible-tokens.html
|
||||
parent: tokens.html
|
||||
blurb: Introduction to XRPL NFTs.
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: nftokenoffer.html
|
||||
parent: ledger-object-types.html
|
||||
blurb: NFTを売買するオファーを作成する。
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: nftokenoffer.html
|
||||
parent: ledger-object-types.html
|
||||
blurb: Create offers to buy or sell NFTs.
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: nftokenpage.html
|
||||
parent: ledger-object-types.html
|
||||
blurb: NFTokenを記録するためのレジャー構造。
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
html: nftokenpage.html
|
||||
parent: ledger-object-types.html
|
||||
blurb: Ledger structure for recording NFTokens.
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
---
|
||||
parent: build-apps.html
|
||||
filters:
|
||||
- include_code
|
||||
targets:
|
||||
- en
|
||||
- ja # TODO: translate this page
|
||||
|
||||
@@ -8,8 +8,6 @@ blurb: Build a simple Java app that interacts with the XRP Ledger.
|
||||
cta_text: Build an XRP Ledger-connected app
|
||||
top_nav_name: Java
|
||||
top_nav_grouping: Get Started
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Development
|
||||
showcase_icon: assets/img/logos/java.svg
|
||||
|
||||
@@ -4,8 +4,6 @@ parent: get-started.html
|
||||
blurb: XRP Ledgerを参照するためのエントリーレベルのJavaScriptアプリケーションを構築します。
|
||||
top_nav_name: JavaScript
|
||||
top_nav_grouping: Get Started
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- 開発
|
||||
showcase_icon: assets/img/logos/javascript.svg
|
||||
|
||||
@@ -4,8 +4,6 @@ parent: get-started.html
|
||||
blurb: Build an entry-level JavaScript application for querying the XRP Ledger.
|
||||
top_nav_name: JavaScript
|
||||
top_nav_grouping: Get Started
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Development
|
||||
showcase_icon: assets/img/logos/javascript.svg
|
||||
|
||||
@@ -5,8 +5,6 @@ blurb: Build a simple Python app that interacts with the XRP Ledger.
|
||||
cta_text: Build an XRP Ledger-connected app
|
||||
top_nav_name: Python
|
||||
top_nav_grouping: Get Started
|
||||
filters:
|
||||
- include_code
|
||||
labels:
|
||||
- Development
|
||||
showcase_icon: assets/img/logos/python.svg
|
||||
|
||||
@@ -6,7 +6,6 @@ cta_text: XRPを送金しよう
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- 支払い
|
||||
- XRP
|
||||
|
||||
@@ -6,7 +6,6 @@ cta_text: Send XRP
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- XRP
|
||||
- Payments
|
||||
|
||||
@@ -5,7 +5,6 @@ blurb: Require users to specify a destination tag when sending to your address.
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Accounts
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ blurb: チケットは、通常のシーケンス順序以外でトランザク
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- アカウント
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ blurb: Use Tickets to send a transaction outside of normal Sequence order.
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Accounts
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ blurb: Permanently give up your account's ability to freeze tokens it issues.
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Tokens
|
||||
---
|
||||
|
||||
@@ -5,7 +5,6 @@ blurb: Freeze all tokens issued by your address.
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Tokens
|
||||
- Security
|
||||
|
||||
@@ -5,7 +5,6 @@ blurb: Freeze an individual holder of a token.
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Tokens
|
||||
- Security
|
||||
|
||||
@@ -5,7 +5,6 @@ blurb: Create your own token and issue it on the XRP Ledger Testnet.
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Tokens
|
||||
---
|
||||
|
||||
@@ -4,7 +4,6 @@ blurb: Buy or sell fungible tokens for each other or for XRP in the decentralize
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
labels:
|
||||
- Decentralized Exchange
|
||||
- Tokens
|
||||
|
||||
@@ -25,6 +25,7 @@ default_filters:
|
||||
- link_replacement
|
||||
- external_links
|
||||
- status_badges
|
||||
- include_code
|
||||
- include_svg
|
||||
- css_tables
|
||||
- slug
|
||||
|
||||
@@ -51,7 +51,7 @@ For privacy reasons, the memo does not and MUST NOT include personally identifyi
|
||||
|
||||
An interactive tutorial is a page, so you add it to the `dactyl-config.yml` page like any other page. However, you need to add the following pieces to make the interactive stuff work:
|
||||
|
||||
1. Set page properties, either in the config file or the page's frontmatter. The `interactive_steps` Dactyl filter gives you access to the functions you use to demarcate the interactive bits in your markdown file. The `include_code` filter is optional, but can be useful for pulling code samples out of another file. Most of the time, you'll also want to include xrpl.js and its dependencies as well; you can have the templates handle that for you by setting the field `embed_xrpl_js: true`. For example:
|
||||
1. Set page properties, either in the config file or the page's frontmatter. The `interactive_steps` Dactyl filter gives you access to the functions you use to demarcate the interactive bits in your markdown file. Most of the time, you'll also want to include xrpl.js and its dependencies as well; you can have the templates handle that for you by setting the field `embed_xrpl_js: true`. For example:
|
||||
|
||||
html: use-tickets.html
|
||||
parent: manage-account-settings.html
|
||||
@@ -59,7 +59,6 @@ An interactive tutorial is a page, so you add it to the `dactyl-config.yml` page
|
||||
embed_xrpl_js: true
|
||||
filters:
|
||||
- interactive_steps
|
||||
- include_code
|
||||
|
||||
Including the `interactive_steps` filter automatically causes the templates to load the [interactive-tutorial.js](../assets/js/interactive-tutorial.js) file on that page. This JavaScript file implements much of the functionality for interactive tutorials, and provides helper functions for a lot of other common things you might want to do.
|
||||
|
||||
@@ -76,7 +75,7 @@ An interactive tutorial is a page, so you add it to the `dactyl-config.yml` page
|
||||
|
||||
Use excerpts of the example code to demonstrate each step. You can gloss over certain parts of the sample code if they're tangential to the goal of the tutorial, like the nitty-gritty of getting credentials from the Testnet faucet.
|
||||
|
||||
This is where the `include_code` filter comes in really handy. You can pull in just an excerpt of a code sample based on starting and ending bits. For example:
|
||||
This is where `include_code` comes in really handy. You can pull in just an excerpt of a code sample based on starting and ending bits. For example:
|
||||
|
||||
{{ include_code("_code-samples/send-xrp/send-xrp.js",
|
||||
start_with="// Connect", end_before="// Get credentials",
|
||||
|
||||
Reference in New Issue
Block a user