No description
Find a file
2013-10-21 15:32:11 -04:00
_alerts Fix / Update external urls 2013-09-28 20:07:06 -04:00
_contrib Switch to transifex for translations 2013-05-21 01:07:13 -04:00
_events Add "Plug and play expo" in events (fixes #255) 2013-10-13 00:53:14 -04:00
_layouts Apply various syntax consistency improvements 2013-10-21 14:59:09 -04:00
_less Apply various syntax consistency improvements 2013-10-21 14:59:09 -04:00
_plugins Normalize page redirections 2013-10-14 14:59:10 -04:00
_redirects Update fr translation 2013-09-24 04:09:53 -04:00
_releases Fix "GitHub" capitalization in release notes 2013-10-05 23:07:52 -04:00
_templates Apply various syntax consistency improvements 2013-10-21 14:59:09 -04:00
_translations Update fr translation 2013-10-20 23:12:46 -04:00
css Apply a few CSS fixes for IE6-7 2013-10-21 15:32:11 -04:00
en Update / remove old redirections 2013-10-14 01:44:50 -04:00
font Add Persian (fa) translation (thanks Mohammad Rafigh, Foroozan Akhavan, Foroozan Sol) 2013-06-01 14:19:43 -04:00
img Add texts and artworks in "Innovation" page 2013-10-19 03:20:08 -04:00
js Drop deprecated javascript 2013-10-21 14:38:59 -04:00
.gitignore add common useless OS files in .gitignore 2013-03-23 01:55:40 -04:00
404.html Switch to transifex for translations 2013-05-21 01:07:13 -04:00
_config.yml Set latest download version automatically based on release notes 2013-09-04 13:29:36 -04:00
about.html Normalize page redirections 2013-10-14 14:59:10 -04:00
andreas_schildbach.asc Add gpg key for Andreas Schildbach (8B877A60). 2013-03-03 00:53:41 +01:00
bitcoin.pdf initial commit 2011-08-31 21:30:26 +02:00
clients.html Normalize page redirections 2013-10-14 14:59:10 -04:00
CNAME re-add CNAME with bitcoin.org 2011-09-03 17:41:56 +02:00
COPYING Add texts and artworks in "Innovation" page 2013-10-19 03:20:08 -04:00
favicon.ico new bitcoin.org 2013-03-18 14:29:59 -04:00
favicon.png temporary link to bitcoin-qt instead of multibit and a few minor fixes 2013-03-21 21:08:28 -04:00
gavinandresen.asc Updated keys (BE38D3A8 and 1FC730C1) for Gavin-- new 4096-bit RSA key, and both keys signed by several people. 2011-12-15 17:35:45 -05:00
gmaxwell.asc Update my gpg key. 2013-07-14 21:14:20 -07:00
google545411b7903b3247.html Setup Google Webmaster tools 2013-04-11 20:54:36 -04:00
index.html Batch url fixes 2013-09-01 00:01:15 -04:00
jgarzik-bitpay.asc Change Jeff Garzik public key and email address to bitpay 2013-05-23 12:27:10 -04:00
jgarzik-exmulti.asc initial commit 2011-08-31 21:30:26 +02:00
laanwj.asc add Wladimir to list of developers 2011-10-19 15:59:15 +02:00
news.html Normalize page redirections 2013-10-14 14:59:10 -04:00
pieterwuille.asc Updated my gpg key 2012-03-16 17:42:06 +01:00
README.md Replace "How it works" picture by an improved one 2013-09-29 22:14:02 -04:00
robots.txt new bitcoin.org 2013-03-18 14:29:59 -04:00
satoshinakamoto.asc Add Satoshi PGP key (fixes #79) 2013-04-06 05:15:26 -04:00
schneider.asc add press-list, renamed all PGP keys to .asc 2011-09-03 14:18:53 +02:00

Usage

Easy preview: Simple changes in the texts can be previewed live on bitcoin.org with any recent browser. You only need to click anywhere on the page and hold your mouse button for one second. You'll then be able to edit the page just like a document. Changes will be lost as soon as the page is refreshed.

Real preview: Install dependencies, edit the files, run jekyll (or "jekyll build" on older setups), and copy the output files from _site/ at the root of your web server. If you have no web server, run jekyll --server (or "jekyll serve" on older setups). This server requires you to add a trailing ".html" by hand in your browser window.

Requirements

Installing dependencies on Ubuntu 12.10

sudo apt-get install jekyll node-less ruby1.9.1-dev
sudo gem install ffi-icu

Installing dependencies on older Ubuntu and Debian distributions

sudo apt-get install rubygems ruby1.9.1-dev build-essential
sudo gem install jekyll json less therubyracer ffi-icu

Translation

How to translate

  • Translations can be done on Transifex https://www.transifex.com/projects/p/bitcoinorg/
  • You must be a native speaker for the language you choose to translate.
  • At least one other reviewer is required.
  • Changing the meaning of any statement should be avoided. In doubt, you can open a discussion on Transifex.
  • Sentences and popular expressions should be adapted so that they sound native in your language.

Import translations

Update translations: You can overwrite each language files in _translations by their updated version from Transifex. You should make sure that each .html files (in _layouts, _templates and _redirects) don't serve outdated content for those languages. You should also make sure that no url has been changed by translators.

Add a new language: You can put the language file from Transifex in _translations and add the language in _config.yml in the right display order for the language bar. Make sure to review all pages and check all links.

Update english strings

Any change in the english texts can be done through a pull request on GitHub. If your changes affect the html layout of a page, you should apply fallback html code for other languages until they are updated.

{% case page.lang %}
{% when 'fr' %}
  (outdated french content)
{% else %}
  (up to date english content)
{% endcase %}

When translation is needed: If you want all changes you've made to be re-translated, you can simply update the resource file (en.yml) on Transifex.

When translation is not needed: If you are only pushing typo fixes and that you don't want translators to redo all their work again, you can use the Transifex client to pull translations, update en.yml and push back all translations at once:

tx init
tx set --auto-remote https://www.transifex.com/projects/p/bitcoinorg/
tx pull -a -s --skip
tx set --source -r bitcoinorg.bitcoinorg -l en translations/bitcoinorg.bitcoinorg/en.yml
(update en.yml)
tx push -s -t -f --skip --no-interactive

Advanced Usage

Alerts

Network alerts should be placed in _alerts/YYYY-MM-DD-SHORTITLE.html and adhere to this format:

---
title: "11/12 March 2013 Chain Fork"
alias: "chainfork"
active: true
banner: "<b>Chain fork</b> - Please stop mining on bitcoin version 0.8.0. Click here for more information."
---

<p>
A chain fork is happening. Please stop mining on bitcoin version 0.8.0. Your bitcoins are safe but it is recommended that you postpone your Bitcoin transactions for the next hours.
</p>
<p>
More information will follow.
</p>
<div style="text-align:right">
  <i>This notice last updated: Thu, 16 May 2013 01:37:00 UTC</i>
</div>

  • SHORTTITLE is used to construct the URL.
  • title: ... will be used as the title in the layout.
  • alias: ... (optional) a short alias for Bitcoin-Qt alerts. Ex. "dos" will produce /dos.html
  • active: ... (true or false) define if the alert should appear as ongoing in the network status page.
  • banner: ... (optional) a short text that will be displayed in a red alert banner and link to the alert page.
  • last updated: ... should be kept up to date and be in RFC 2822 format ( date -uR ).

Release Notes

Release notes should be placed in _releases/YYYY-MM-DD-VERSION.md and adhere to this format:

---
title: Bitcoin version 0.3.24 released
src: http://sourceforge.net/mailarchive/message.php?msg_id=27771039
---

Bitcoin v0.3.24 is now available for download at
<https://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.3.24/>

...
  • VERSION is used to define the version and construct the URL. It should adhere to this format: v0.3.24.
  • title: ... will be used as the title
  • src: ... (optional) link to full annoucement

Events

Events should be placed in _events/YYYY-MM-DD-SHORTTITLE.md and adhere to this format:

---
title: "Bitcoin 2013 The future of payments"
city: "San Jose"
country: "United States"
link: "http://bitcoin2013.com/"
---

Aliases for contributors

Aliases for contributors are defined in _config.yml.

aliases:
  s_nakamoto: Satoshi Nakamoto
  --author=Satoshi Nakamoto: Satoshi Nakamoto
  gavinandresen: Gavin Andresen