mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
git ls-tree --full-tree -r HEAD \ | sed 's/^.\{53\}//' \ | xargs sed -i 's^https://github.com/bitcoin/bitcoin.org^https://github.com/bitcoin-dot-org/bitcoin.org^g'
90 lines
3.2 KiB
Markdown
90 lines
3.2 KiB
Markdown
---
|
|
# This file is licensed under the MIT License (MIT) available on
|
|
# http://opensource.org/licenses/MIT.
|
|
|
|
type: posts
|
|
layout: post
|
|
category: blog
|
|
|
|
title: "Dev Docs: New Glossary And Search Feature"
|
|
permalink: /en/posts/developer-docs-glossary-and-search.html
|
|
date: 2015-04-14
|
|
author: >
|
|
David A. Harding (<a href="mailto:dave@dtrt.org">email</a>, <a
|
|
href="https://github.com/harding">GitHub</a>,
|
|
<a href="http://www.reddit.com/user/harda/">Reddit</a>)
|
|
---
|
|
|
|
*Thanks to [several volunteers][] and the financial sponsorship of [The
|
|
Bitcoin Foundation][], we've added two major new features to the
|
|
[Bitcoin.org Developer Documentation][].*
|
|
|
|
A new [glossary section][] has been added to the Bitcoin.org Developer
|
|
Documentation, and with it comes a fully-Javascript search engine that
|
|
helps you look up glossary entries, Bitcoin Core RPCs, Bitcoin BIPs,
|
|
Script-language op codes, and Bitcoin P2P protocol messages.
|
|
|
|
## Developer glossary main page
|
|
|
|

|
|
|
|
The glossary main page provides a search box and a sorted list of terms.
|
|
It uses a floating list so that it looks good on both mobiles and
|
|
desktop/laptop screens.
|
|
|
|
A link is provided at the bottom of the page to allow readers to
|
|
recommend new glossary terms. (It works like the Submit New Event link
|
|
on the [Events page][].)
|
|
|
|
### Glossary entries
|
|
|
|

|
|
|
|
Each glossary entry has its own page providing a short definition
|
|
(limited to 255 characters), one or more synonyms, zero or more "not to
|
|
be confused with" terms, and zero or more links to resources on and off
|
|
Bitcoin.org. Separate pages were used to allow search engines to link
|
|
directly to the most relevant entry, rather than forcing users to scroll
|
|
through a giant page of definitions.
|
|
|
|
The glossary currently has:
|
|
|
|
* 89 glossary entry pages
|
|
* 51 additional synonyms
|
|
* 222 links (all internal to Bitcoin.org or to Bitcoin Wiki, BitcoinTalk, or Bitcoin StackExchange)
|
|
|
|
Each page includes links to edit it, view its history, or report an
|
|
issue about it.
|
|
|
|
### Dev search box
|
|
|
|

|
|
|
|
A Javascript-powered search box is added to the following pages: [Dev
|
|
Guide][], [Dev Reference][], [Dev Examples][], [Dev Glossary][], and individual
|
|
glossary entry pages.
|
|
|
|
The box allows finding the following by keyword, listed in the order
|
|
they appear in the search:
|
|
|
|
* Glossary entries (Bitcoin.org)
|
|
* RPCs (Bitcoin.org)
|
|
* Op codes (Bitcoin Wiki)
|
|
* BIPs (just notable and non-withdrawn BIPs; GitHub.com BIPs repo)
|
|
* Bitcoin P2P protocol messages (Bitcoin.org)
|
|
|
|
The search uses [JQuery][] and [JQuery UI][], both MIT-licensed. Both are
|
|
loaded from the Bitcoin.org server so there's no stats leakage when
|
|
people load them.
|
|
|
|
[dev guide]: /en/developer-guide
|
|
[dev reference]: /en/developer-reference
|
|
[dev examples]: /en/developer-examples
|
|
[dev glossary]: /en/developer-glossary
|
|
[jquery]: https://jquery.com/
|
|
[jquery ui]: https://jqueryui.com/
|
|
[several volunteers]: https://github.com/bitcoin-dot-org/bitcoin.org/pull/793
|
|
[Bitcoin.org developer documentation]: /en/developer-documentation
|
|
[the bitcoin foundation]: https://bitcoinfoundation.org/
|
|
[glossary section]: /en/developer-glossary
|
|
[events page]: /en/events
|