Dev Tools: fix landing page URL, blurbs; add Tx sender

This commit is contained in:
mDuo13
2019-04-25 13:01:32 -07:00
parent 71ee136cb0
commit c5fbd4b52f
5 changed files with 94 additions and 61 deletions

View File

@@ -7,22 +7,27 @@ Ripple provides a set of developer tools to help you test, explore, and validate
Use this JSON-RPC-based debugging tool to print raw information about a XRP Ledger account, transaction, or ledger.
* **[XRP Ledger Test Net Faucet](xrp-test-net-faucet.html)**
Use the WebSocket and JSON-RPC Test Net endpoints to test software built on the XRP Ledger without using real funds. Generate Test Net credentials and funds for testing purposes. Test net ledger and balances are reset on a regular basis.
<!--{# TODO: For information about how to connect your `rippled` test server to the Test Net, see [XXXXX](x). #}-->
* **[rippled API WebSocket Tool](websocket-api-tool.html)**
Need to see the rippled API in action ASAP? Use this tool to send prepopulated sample requests and get responses. No setup required.
<!--{# TODO: which methods are surfaced here -- is this all of them? #}-->
Need to see the rippled API in action ASAP? Use this tool to send sample requests and get responses. No setup required.
* **[Data API v2 Tool](data-api-v2-tool.html)**
Need to see the Data API v2 in action ASAP? Use this tool to send prepopulated sample requests and get responses. No setup required.
* **[rippled.txt Validator](ripple-txt-validator.html)**
* **[XRP Ledger Test Net Faucet](xrp-test-net-faucet.html)**
Use the WebSocket and JSON-RPC Test Net endpoints to test software built on the XRP Ledger without using real funds. Generate Test Net credentials and funds for testing purposes. Test Net ledger and balances are reset on a regular basis.
* **[ripple.txt Validator](ripple-txt-validator.html)**
Use this tool to verify that your `ripple.txt` is syntactically correct and deployed properly.
**Warning:** The `ripple.txt` file definition has been deprecated. Use an [xrp-ledger.toml file](xrp-ledger-toml.html) instead.
* **[Transaction Sender](tx-sender.html)**
Test how your code handles various XRP Ledger transactions by sending them over the Test Net to the address of your choice.
Have an idea for a tool not provided here? [Contact us >](mailto:docs@ripple.com)

View File

@@ -2870,12 +2870,21 @@ pages:
# Dev Tools --------------------------------------------------------------------
- md: dev-tools/dev-tools.md
html: dev-tools.html
funnel: Dev Tools
filters:
- buttonize
targets:
- local
- name: Dev Tools # Redirect page for old broken URL
html: dev-tools-dev-tools.html
template: template-redirect.html
redirect_url: dev-tools.html
funnel: Dev Tools
targets:
- local
- name: RPC Tool
funnel: Dev Tools
html: xrp-ledger-rpc-tool.html

View File

@@ -39,6 +39,7 @@
{% set printed_next_levels = [] %}
{% for onepage in thosepages %}
{% if onepage == parent %}{# pass #}
{% elif onepage.template == "template-redirect.html" %}{# don't list redirects #}
{% elif next_level_field == None or (onepage[next_level_field] is undefined and next_level_field != "supercategory") %}
{# direct child, print it! #}
<li class="level-{{indent_level}}"><a href="{{onepage.html}}">{{onepage.name}}</a>{% if show_blurbs and onepage.blurb is defined and indent_level == 1%}<p class="blurb child-blurb">{{onepage.blurb}}</p>{% endif %}</li>

View File

@@ -0,0 +1,14 @@
{% extends "template-base.html" %}
{% block head %}
<meta http-equiv="refresh" content="0;url={{currentpage.redirect_url}}" />
{% endblock %}
{% block main %}
<article class="p-3">
<div class="content">
<p>This page has been moved! You should be redirected automatically. If not, <a href="{{currentpage.redirect_url}}">click here to go to the new {{currentpage.name}} page</a>.
</div>
</article>
{% endblock %}

View File

@@ -38,6 +38,7 @@
<ul class="sidebar_pagelist">
{% for page in funnelpages %}
{% if loop.index == 1 %}{# Skip the first element since it's linked by the funnel header #}
{% elif page.template == "template-redirect.html" %}{# skip redirects #}
{% elif page == currentpage %}
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status is defined and page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
@@ -82,7 +83,8 @@
{% set printed_subcategories = [] %}
{% for page in catpages %}
{% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #}
{% if page.subcategory is undefined %}
{% if page.template == "template-redirect.html" %}{# skip redirects #}
{% elif page.subcategory is undefined %}
{% if page == currentpage %}
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status is defined and page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}
@@ -154,7 +156,8 @@
{% set printed_categories = [] %}
{% for subpage in supercatpages %}
{% if loop.index != 1 %}{# Skip the first element since it's linked by the supercategory header #}
{% if subpage.category not in printed_categories %}
{% if subpage.template == "template-redirect.html" %}{# skip redirects #}
{% elif subpage.category not in printed_categories %}
<li><a class="subcat-title" href="{{ subpage.html }}">{{ subpage.name }}{% if page.status is defined and page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% set category_members = supercatpages|selectattr('category', 'defined_and_equalto', subpage.category)|list %}
@@ -204,7 +207,8 @@
{% set printed_subcategories = [] %}
{% for page in catpages %}
{% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #}
{% if page.subcategory is undefined %}
{% if page.template == "template-redirect.html" %}{# skip redirects #}
{% elif page.subcategory is undefined %}
{% if page == currentpage %}
<li><a class="active nosubcat-page" href="{{ page.html }}">{{ page.name }}{% if page.status is defined and page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}</a></li>
{% else %}