This repository contains the source code for Blocknet's Block DX website.
Powered by Jekyll.
Block DX Github | Join Our Discord |
---|
Using Linux or MacOS:
bundle install
bundle update
bundle exec jekyll serve
You can now see the docs at http://localhost:4400. This will reload automatically when changes are saved.
source/_i18n/[lang].yml
file.permalink_es: /listados/
global
(Spanish example):link_listings: 'listados/'
[Fees]({{ baseurl | append: lang.global.link_fees }})
_config.yml
file.source/_includes/sections
.source/_includes/templates
.source/_includes
.{{ nav.downloads }}
{{nav.downloads}}
source/_data/manifest-latest.json
; used to populate Listings table.source/_data/profiles/
; used to populate asset profiles.Follow these steps if you'd like to contribute to translating the website to another language. If you are not familiar with how to create a PR, put the translations in a Google Doc and reach out to @hanniabu on Discord with the link. Also feel free to reach out for clarifications on these instructions. Collaborations are encouraged to help cross check the translations! For any questions or clarifications with translating, reach out to @hanniabu.
source/_i18n/
directory for the language you want to translate the site into. The files should be named after the language abbreviation. For example with French, it would be source/_i18n/fr.yml
.source/_i18n/en.yml
into this new file and begin translating. For those unfamiliar with YAML, each line starts with a key, followed by a colon delimiter, and then the associated text for that key. For example in lang: English
, lang is the key and English is the test you'd actually want to translate. For French the translated line would become lang: Français
. The top level keys (non-indented keys), for example nav:
, are used for context. So with nav:
, all the keys/text underneath it (up to the next top level key) is pertaining to the navigation menu.# Do not translate
(a #
signifies a comment).link_fees: 'fees/'
Many exchanges *claim* to be __decentralized__
[ ]
brackets.
[Fees]({{ lang.global.link_fees }})
{{ site.exlink_docs }}
_config.yml
and enable your language by adding it to the languages array (line ~28): languages: ["en"]
. For example if you completed translation for French, it would become languages: ["en", "fr"]
. The language abbreviation must match that used for the translation file, in this case source/_i18n/fr.yml
.source/_includes/nav.html
(line ~50).bundle exec htmlproofer ./build
url:
in _config.yml
is correct (not the staging URL).bundle exec jekyll build
command.build/
contents to staging site for testing.build/
contents to https://blockdx.com/.