Fix build error and add clearer error message for similar typos

This commit is contained in:
mDuo13
2022-02-18 11:41:09 -08:00
committed by Amarantha Kulkarni
parent 40b8627dcc
commit 32813e4ec7
3 changed files with 12 additions and 8 deletions

View File

@@ -381,16 +381,16 @@ pages:
- reserves.html
- xrp-testnet-faucet.html
- run-rippled-as-a-validator.html
- build-run-rippled-in-reporting-mode.html
- intro-to-consensus.html
- public-rippled-methods.html
- run-rippled-in-reporting-mode.html
top_nav_hero_image: top-nav-hero-docs
popular_pages: #TODO: find a way so this isn't a partial duplicate of top_nav_shortcuts?
- send-xrp.html
- reserves.html
- xrp-testnet-faucet.html
- run-rippled-as-a-validator.html
- run-rippled-in-reporting-mode.html
- build-run-rippled-in-reporting-mode.html
- intro-to-consensus.html
- public-rippled-methods.html
blurb: Explore XRP Ledger documentation and everything you need to know to start building and integrating with the ledger.
@@ -418,6 +418,7 @@ pages:
- reserves.html
- xrp-testnet-faucet.html
- run-rippled-as-a-validator.html
- build-run-rippled-in-reporting-mode.html
- intro-to-consensus.html
- public-rippled-methods.html
top_nav_hero_image: top-nav-hero-docs
@@ -426,7 +427,7 @@ pages:
- reserves.html
- xrp-testnet-faucet.html
- run-rippled-as-a-validator.html
- run-rippled-in-reporting-mode.html
- build-run-rippled-in-reporting-mode.html
- intro-to-consensus.html
blurb: Dive into XRP Ledger technology and start integrating. #TODO: translate
filters:
@@ -949,9 +950,6 @@ pages:
- md: concepts/consensus-network/federated-sidechains.md
targets:
- en
- md: concepts/consensus-network/federated-sidechains.ja.md
targets:
- ja
- md: concepts/the-rippled-server/the-rippled-server.md
@@ -1659,7 +1657,7 @@ pages:
- md: tutorials/manage-the-rippled-server/installation/build-run-rippled-in-reporting-mode.md
targets:
- en
- ja
- ja
- md: tutorials/manage-the-rippled-server/installation/capacity-planning.md
targets:
@@ -1705,7 +1703,7 @@ pages:
- md: tutorials/manage-the-rippled-server/configuration/run-rippled-as-a-wallet-server.md
targets:
- en
- ja
- ja
# TODO: translate this page & blurb
- md: tutorials/manage-the-rippled-server/configuration/configure-amendment-voting.md

View File

@@ -29,6 +29,9 @@
{% set dropdownchildren = top_page.children|list %}
{% for linkhtml in top_page.top_nav_shortcuts %}
{% set _ = dropdownchildren.append(pages|selectattr("html", "defined_and_equalto", linkhtml)|first) %}
{% if _ is not defined %}
{% include "ERROR: Couldn't find page "+linkhtml+" from top_nav_shortcuts" %}
{% endif %}
{% endfor %}
{% for link in dropdownchildren if not link.top_nav_omit %}
{% if link.top_nav_grouping not in printed_groupings %}

View File

@@ -31,6 +31,9 @@
<ul class="nav flex-column">
{% for pg_html in currentpage.popular_pages %}
{% set page = pages|selectattr("html", "defined_and_equalto", pg_html)|first %}
{% if page.html is not defined %}
{% include "ERROR: Couldn't find page "+pg_html+" from popular_pages" %}
{% endif %}
<li class="nav-item"><a href="{% if '//' not in page.html %}{{target.prefix}}{% endif %}{{page.html}}" class="nav-link">{{page.name}}</a>
{% endfor %}
</ul>