Skip to content

Commit 09fc4e5

Browse files
committed
Merge #689: Sort RPC docs by descending version
da28dc0 Sort RPC docs by descending version (Sjors Provoost) Pull request description: Split from #686 <img width="257" alt="Schermafbeelding 2019-11-26 om 11 28 50" src="https://user-images.githubusercontent.com/10217/69621721-efc6f900-103f-11ea-9a2a-78052a7e1d67.png"> Also fixes the menu (this didn't work in a earlier version) ACKs for top commit: harding: Tested ACK da28dc0 . Thanks! Tree-SHA512: 4a8467a5f38aa5821a4bffebbd3c9c4b2f9c65a3536b71bbc4b0ffdf08c1ad214e4338da2f8572e23bc1325d3a42c6c375b3b1977c6a58f32dface791085cbc8
2 parents 36ec435 + da28dc0 commit 09fc4e5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

_includes/navigation.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<a href="{{article.url}}">RPC Docs</a>
3535
{% endif %}
3636
{% endfor %}
37-
{% assign groups = site.doc | group_by:"btcversion" | sort: "name" %}
37+
{% assign groups = site.doc | group_by:"btcversion" | sort_by: "btcversion" | reverse %}
3838
<ul>
3939
{% for group in groups %}
4040
{% if group.name != "index" %}
@@ -79,5 +79,3 @@
7979
</nav>
8080
</div><!-- /.top-navigation -->
8181
</div><!-- /.navigation-wrapper -->
82-
83-

_layouts/doc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h3 class="toc-header">
6666
Select a command group in the menu.
6767
{% else %}
6868
Following docs are available:
69-
{% assign groups = site.doc | group_by:"btcversion" | sort: "name" %}
69+
{% assign groups = site.doc | sort: "btcversion" | reverse | group_by:"btcversion" %}
7070
<ul>
7171
{% for group in groups %}
7272
{% if group.name != "index" %}
@@ -87,7 +87,7 @@ <h3 class="toc-header">
8787
<div class="footer-wrap">
8888
<footer>
8989
{% include footer.html %}
90-
</footer>
90+
</footer>
9191
</div><!-- /.footer-wrap -->
9292

9393
{% include scripts.html %}

0 commit comments

Comments
 (0)