From fe2bafb795b203026cd37cae4e6f487d356b00d2 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 22 Feb 2016 19:24:21 -0800 Subject: [PATCH] hybrid sidebar for doc pages --- concept-fee-voting.html | 5 ++- concept-fees.html | 5 ++- concept-freeze.html | 5 ++- concept-issuing-and-operational-accounts.html | 9 ++++- concept-paths.html | 5 ++- concept-reserves.html | 5 ++- concept-transaction-cost.html | 5 ++- concept-transfer-fees.html | 5 ++- reference-data-api.html | 12 +++++- reference-ledger-format.html | 12 +++++- reference-rippleapi.html | 12 +++++- reference-rippled.html | 12 +++++- reference-transaction-format.html | 12 +++++- tool/devportal-config.yml | 38 +++++++++---------- tool/template-doc.html | 13 +++---- tutorial-gateway-guide.html | 9 ++++- tutorial-reliable-transaction-submission.html | 10 ++++- tutorial-rippleapi-beginners-guide.html | 10 ++++- tutorial-rippled-setup.html | 10 ++++- 19 files changed, 150 insertions(+), 44 deletions(-) diff --git a/concept-fee-voting.html b/concept-fee-voting.html index 0c4760574d..087a5613e4 100644 --- a/concept-fee-voting.html +++ b/concept-fee-voting.html @@ -123,7 +123,7 @@
+
+
In this page:
+
diff --git a/concept-fees.html b/concept-fees.html index 14b2ee5df2..48687380b7 100644 --- a/concept-fees.html +++ b/concept-fees.html @@ -123,7 +123,7 @@
+
+
In this page:
+
diff --git a/concept-freeze.html b/concept-freeze.html index 554512fbea..ccb1c63bae 100644 --- a/concept-freeze.html +++ b/concept-freeze.html @@ -123,7 +123,7 @@
+
+
In this page:
+
diff --git a/concept-issuing-and-operational-accounts.html b/concept-issuing-and-operational-accounts.html index 052769a7d0..050f83f64f 100644 --- a/concept-issuing-and-operational-accounts.html +++ b/concept-issuing-and-operational-accounts.html @@ -122,9 +122,16 @@
diff --git a/concept-paths.html b/concept-paths.html index 51075d96cf..858e08b115 100644 --- a/concept-paths.html +++ b/concept-paths.html @@ -123,7 +123,7 @@
+
+
In this page:
+
diff --git a/concept-reserves.html b/concept-reserves.html index 37806cb9ee..295ed1aec2 100644 --- a/concept-reserves.html +++ b/concept-reserves.html @@ -123,7 +123,7 @@
+
+
In this page:
+
diff --git a/concept-transaction-cost.html b/concept-transaction-cost.html index 893be55146..f411882530 100644 --- a/concept-transaction-cost.html +++ b/concept-transaction-cost.html @@ -123,7 +123,7 @@
+
+
In this page:
+
diff --git a/concept-transfer-fees.html b/concept-transfer-fees.html index 220fdee589..6fc1c0a65c 100644 --- a/concept-transfer-fees.html +++ b/concept-transfer-fees.html @@ -123,7 +123,7 @@
+
+
In this page:
+
diff --git a/reference-data-api.html b/reference-data-api.html index 6125280682..01aff4861b 100644 --- a/reference-data-api.html +++ b/reference-data-api.html @@ -122,9 +122,19 @@
diff --git a/reference-ledger-format.html b/reference-ledger-format.html index 48bd4ba947..b7645f34b6 100644 --- a/reference-ledger-format.html +++ b/reference-ledger-format.html @@ -122,9 +122,19 @@
diff --git a/reference-rippleapi.html b/reference-rippleapi.html index 85ea639d69..e2bab255c5 100644 --- a/reference-rippleapi.html +++ b/reference-rippleapi.html @@ -122,9 +122,19 @@
diff --git a/reference-rippled.html b/reference-rippled.html index 028af0efed..a38908e26a 100644 --- a/reference-rippled.html +++ b/reference-rippled.html @@ -122,9 +122,19 @@
diff --git a/reference-transaction-format.html b/reference-transaction-format.html index 05c0f59086..1a8b458b68 100644 --- a/reference-transaction-format.html +++ b/reference-transaction-format.html @@ -122,9 +122,19 @@
diff --git a/tool/devportal-config.yml b/tool/devportal-config.yml index b3d2f8320d..0968ed4e7b 100644 --- a/tool/devportal-config.yml +++ b/tool/devportal-config.yml @@ -42,21 +42,21 @@ pages: html: reference-rippled.html md: reference-rippled.md ripple.com: https://ripple.com/build/rippled-apis/ - sidebar: page-toc + sidebar: true - name: Transaction Format category: References html: reference-transaction-format.html md: reference-transaction-format.md ripple.com: https://ripple.com/build/transactions/ - sidebar: page-toc + sidebar: true - name: Ledger Format category: References html: reference-ledger-format.html md: reference-ledger-format.md ripple.com: https://ripple.com/build/ledger-format/ - sidebar: page-toc + sidebar: true - name: RippleAPI category: References @@ -64,14 +64,14 @@ pages: # Currently this is the only page that's fetched remotely. md: https://raw.githubusercontent.com/ripple/ripple-lib/0.16.7/docs/index.md ripple.com: https://ripple.com/build/rippleapi/ - sidebar: page-toc + sidebar: true - name: Ripple Data API v2 category: References html: reference-data-api.html md: reference-data-api.md ripple.com: https://ripple.com/build/data-api-v2/ - sidebar: page-toc + sidebar: true # Tutorials are step-by-step guides to a specific goal - name: RippleAPI Beginners Guide @@ -79,21 +79,21 @@ pages: html: tutorial-rippleapi-beginners-guide.html md: tutorial-rippleapi-beginners-guide.md ripple.com: https://ripple.com/build/rippleapi-beginners-guide/ - sidebar: page-toc + sidebar: true - name: rippled Setup category: Tutorials html: tutorial-rippled-setup.html md: tutorial-rippled-setup.md ripple.com: https://ripple.com/build/rippled-setup/ - sidebar: page-toc + sidebar: true - name: Reliable Transaction Submission category: Tutorials html: tutorial-reliable-transaction-submission.html md: tutorial-reliable-transaction-submission.md ripple.com: https://ripple.com/build/reliable-transaction-submission/ - sidebar: page-toc + sidebar: true # Concepts are introductions that explain a topic. # In the Dev Portal, these are mostly summaries of RCL features. @@ -102,49 +102,49 @@ pages: html: concept-paths.html md: concept-paths.md ripple.com: https://ripple.com/build/paths/ - sidebar: category-toc + sidebar: true - name: Fees (Disambiguation) category: Concepts html: concept-fees.html md: concept-fees.md ripple.com: https://ripple.com/knowledge_center/fees-disambiguation/ - sidebar: category-toc + sidebar: true - name: Transfer Fees category: Concepts html: concept-transfer-fees.html md: concept-transfer-fees.md ripple.com: https://ripple.com/knowledge_center/transfer-fees/ - sidebar: category-toc + sidebar: true - name: Transaction Cost category: Concepts html: concept-transaction-cost.html md: concept-transaction-cost.md ripple.com: https://ripple.com/build/transaction-cost/ - sidebar: category-toc + sidebar: true - name: Fee Voting category: Concepts html: concept-fee-voting.html md: concept-fee-voting.md ripple.com: https://ripple.com/build/fee-voting/ - sidebar: category-toc + sidebar: true - name: Reserves category: Concepts html: concept-reserves.html md: concept-reserves.md ripple.com: https://ripple.com/build/reserves/ - sidebar: category-toc + sidebar: true - name: Freeze category: Concepts html: concept-freeze.html md: concept-freeze.md ripple.com: https://ripple.com/build/freeze/ - sidebar: category-toc + sidebar: true # "Best Practices" documents are mostly in the same category as tutorials - name: Issuing and Operational Acounts @@ -153,7 +153,7 @@ pages: md: concept-issuing-and-operational-accounts.md # TODO publish this article separately on the website ripple.com: https://ripple.com/build/gateway-guide/#hot-and-cold-wallets - sidebar: page-toc + sidebar: true # The Gateway Guide is kind of a poor fit for the "tutorials" category - name: Gateway Guide @@ -161,14 +161,14 @@ pages: html: tutorial-gateway-guide.html md: tutorial-gateway-guide.md ripple.com: https://ripple.com/build/gateway-guide/ - sidebar: page-toc + sidebar: true # API tools are interactive software for interfacing with real APIs - name: WebSocket API Tool category: API Tools html: ripple-api-tool.html ripple.com: https://ripple.com/build/websocket-tool/ - sidebar: custom + sidebar: true targets: - local - ripple.com @@ -179,7 +179,7 @@ pages: html: data-api-v2-tool.html methods_js: js/apitool-methods-data_v2.js rest_host: https://data.ripple.com - sidebar: custom + sidebar: true targets: - local - ripple.com diff --git a/tool/template-doc.html b/tool/template-doc.html index d48ae666da..5aec8b42eb 100644 --- a/tool/template-doc.html +++ b/tool/template-doc.html @@ -20,24 +20,21 @@ {% endblock %} {% block sidebar %} - {% if currentpage.sidebar == "page-toc" %} -
-
-
-
- - {% elif currentpage.sidebar == "category-toc" %} + {% if currentpage.sidebar %}
+
+
In this page:
+
{% endif %} {% endblock %} diff --git a/tutorial-gateway-guide.html b/tutorial-gateway-guide.html index dc04b1e687..45b84bec47 100644 --- a/tutorial-gateway-guide.html +++ b/tutorial-gateway-guide.html @@ -122,9 +122,16 @@
diff --git a/tutorial-reliable-transaction-submission.html b/tutorial-reliable-transaction-submission.html index c811f7dc1f..e95e0b7cc5 100644 --- a/tutorial-reliable-transaction-submission.html +++ b/tutorial-reliable-transaction-submission.html @@ -122,9 +122,17 @@
diff --git a/tutorial-rippleapi-beginners-guide.html b/tutorial-rippleapi-beginners-guide.html index 96365f5e9d..9117c0884d 100644 --- a/tutorial-rippleapi-beginners-guide.html +++ b/tutorial-rippleapi-beginners-guide.html @@ -122,9 +122,17 @@
diff --git a/tutorial-rippled-setup.html b/tutorial-rippled-setup.html index a71761645a..8040f522c0 100644 --- a/tutorial-rippled-setup.html +++ b/tutorial-rippled-setup.html @@ -122,9 +122,17 @@