Enable include_code by default

This commit is contained in:
mDuo13
2022-11-22 16:18:30 -08:00
parent 3cbc0400af
commit bc752f213d
26 changed files with 3 additions and 41 deletions

View File

@@ -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
---

View File

@@ -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

View File

@@ -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
---

View File

@@ -2,8 +2,6 @@
html: non-fungible-tokens.html
parent: tokens.html
blurb: XRPL NFTの紹介。
filters:
- include_code
labels:
- Non-fungible Tokens, NFTs
---

View File

@@ -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
---

View File

@@ -2,8 +2,6 @@
html: nftokenoffer.html
parent: ledger-object-types.html
blurb: NFTを売買するオファーを作成する。
filters:
- include_code
labels:
- Non-fungible Tokens, NFTs
---

View File

@@ -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
---

View File

@@ -2,8 +2,6 @@
html: nftokenpage.html
parent: ledger-object-types.html
blurb: NFTokenを記録するためのレジャー構造。
filters:
- include_code
labels:
- Non-fungible Tokens, NFTs
---

View File

@@ -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
---

View File

@@ -1,7 +1,5 @@
---
parent: build-apps.html
filters:
- include_code
targets:
- en
- ja # TODO: translate this page

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -6,7 +6,6 @@ cta_text: XRPを送金しよう
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
labels:
- 支払い
- XRP

View File

@@ -6,7 +6,6 @@ cta_text: Send XRP
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
labels:
- XRP
- Payments

View File

@@ -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
---

View File

@@ -5,7 +5,6 @@ blurb: チケットは、通常のシーケンス順序以外でトランザク
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
labels:
- アカウント
---

View File

@@ -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
---

View File

@@ -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
---

View File

@@ -5,7 +5,6 @@ blurb: Freeze all tokens issued by your address.
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
labels:
- Tokens
- Security

View File

@@ -5,7 +5,6 @@ blurb: Freeze an individual holder of a token.
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
labels:
- Tokens
- Security

View File

@@ -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
---

View File

@@ -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

View File

@@ -25,6 +25,7 @@ default_filters:
- link_replacement
- external_links
- status_badges
- include_code
- include_svg
- css_tables
- slug

View File

@@ -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",