mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Revert "Revert "Merge pull #793: Dev Docs: New Glossary & JS Search Box""
This reverts commit 961d6c988f
.
This commit is contained in:
parent
ceaf266040
commit
a2a5f454cb
126 changed files with 3827 additions and 470 deletions
94
en/developer-glossary.html
Normal file
94
en/developer-glossary.html
Normal file
|
@ -0,0 +1,94 @@
|
|||
---
|
||||
# This file is licensed under the MIT License (MIT) available on
|
||||
# http://opensource.org/licenses/MIT.
|
||||
|
||||
title: Developer Glossary - Bitcoin
|
||||
layout: base
|
||||
lang: en
|
||||
---
|
||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||
|
||||
{% capture markdown_content %}
|
||||
# Bitcoin Developer Glossary
|
||||
|
||||
<input id="glossary_term" class="glossary_term" placeholder="Search the glossary, RPCs, and more">
|
||||
|
||||
<div markdown="block" class="notice">
|
||||
<span markdown="span">This is a technical glossary. Regular users should use the [vocabulary
|
||||
page](/en/vocabulary).</span>
|
||||
</div>
|
||||
|
||||
{% comment %}
|
||||
## The following single-space-indented code (sorry, whitespace
|
||||
## sensitive) takes the alphabetized array of individual hash objects
|
||||
## and puts them in a list sorted by the first character of each term
|
||||
## characters (case insensitive). E.g.:
|
||||
##
|
||||
## Alpha
|
||||
## Apropos
|
||||
##
|
||||
## Beta
|
||||
##
|
||||
## Gamma
|
||||
## Gnu
|
||||
##
|
||||
## The current style sheet gives each item a certain width and then
|
||||
## floats them so terms starting with the same character are grouped
|
||||
## together. Hopefully this strikes the right balance between
|
||||
## information density and too much whitespace.
|
||||
{% endcomment %}
|
||||
## Numbers
|
||||
<!-- no subhead-links here -->
|
||||
{% for item in site.devsearches.Glossary %}
|
||||
{% if forloop.first %}{% assign first_term = true %}{% else %}{% assign first_term = false %}{% endif %}
|
||||
{% for term in item %}
|
||||
{% capture text_and_link %}<a href="{{term[1]}}">{{term[0]}}</a>{% endcapture %}
|
||||
{% capture first_character %}{{term[0] | downcase | truncate: 1, '' }}{% endcapture %}
|
||||
{% if first_character == 'a' %}
|
||||
{% assign finished_with_numbers = true %}
|
||||
{% endif %}
|
||||
{% if first_character == last_first_character %}
|
||||
<li markdown="span">{{text_and_link}}</li>
|
||||
{% else %}
|
||||
{% unless first_term %}
|
||||
</ul><br class="clear">
|
||||
{% endunless %}
|
||||
{% if finished_with_numbers %}
|
||||
## {{ first_character | upcase }}
|
||||
<!-- no subhead-links here -->
|
||||
{% endif %}
|
||||
|
||||
{% case first_character %}
|
||||
{% when 'b' %}
|
||||
See also: [Bitcoin Improvement Proposals (BIPs)](https://github.com/bitcoin/bips#readme)
|
||||
{% when 'o' %}
|
||||
See also: [Op codes](https://en.bitcoin.it/wiki/Script#Words)
|
||||
{% when 'p' %}
|
||||
See also: [P2P protocol messages](/en/developer-reference#data-messages)
|
||||
{% when 'r' %}
|
||||
See also: [Bitcoin Core RPCs](/en/developer-reference#rpc-quick-reference)
|
||||
{% endcase %}
|
||||
|
||||
<ul class="wrapped_list">
|
||||
<li markdown="span">{{text_and_link}}</li>
|
||||
{% endif %}
|
||||
{% capture last_first_character %}{{first_character}}{% endcapture %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% comment %}Close off last list and end the float: {% endcomment %}
|
||||
</ul><br class="clear">
|
||||
|
||||
<div markdown="block" class="notice">
|
||||
<span markdown="span">Can't find what you're looking for? [Suggest a
|
||||
new term][] for the glossary!</span>
|
||||
</div>
|
||||
|
||||
[suggest a new term]: https://github.com/bitcoin/bitcoin.org/issues/new?title=New%20glossary%20term%20suggestion:
|
||||
{% include references.md %}
|
||||
{{site.glossary_links}}
|
||||
{% endcapture %}
|
||||
{{ markdown_content | markdownify }}
|
||||
|
||||
<script src="/js/jquery-1.11.2.min.js"></script>
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script src="/js/devsearch.js"></script>
|
Loading…
Add table
Add a link
Reference in a new issue