GithubHelp home page GithubHelp logo

alexxnica / bitcoincore.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitcoin-core/bitcoincore.org

0.0 1.0 0.0 4.34 MB

Bitcoin Core project website

Home Page: https://bitcoincore.org/

License: MIT License

Ruby 0.92% HTML 69.22% CSS 13.85% JavaScript 12.67% Python 2.67% Shell 0.67%

bitcoincore.org's Introduction

This repository is the source code of the Bitcoin Core project website built with Jekyll.

Directory structure

  • _posts/<lang>/posts for blog articles.
  • _posts/<lang>/pages for static pages.
  • _posts/<lang>/releases for Bitcoin Core release notes

File names must be in the format Y-m-d-title.md, e.g. 2015-12-31-title.md. File names can be translated.

Translations

The main translations can be found at Transifex. Please join if you wish to contribute to translating content.

Menu and miscellaneous localisations can be found in:

  • _data/lanaguges.yml
  • _data/navgation.yml
  • _data/translations.yml

Front Matter notes

The following Front Matter is required for the multilingual setup in all files. The required fields are as follows:

  • name: group name for unique article. Each translation must share the same group name, e.g. october15-report
  • id: each article translation must have a unique ID. Use the language code + -name field. e.g. en-october15-report
  • permalink: the must include the language code, end a trailing slash, e.g. /en/2015/12/31/report/.
  • title: the translated title of the article
  • type: the content type (pages, posts, releases, meetings, etc.)
  • layout: the layout template (page, post, etc.)
  • lang: the language code (en, fr, etc.)
---
title: Short Title
name: short-title
layout: post
type: posts
lang: en
id: en-short-title
permalink: /en/2016/01/01/short-title
---

Building

This website is based on Jekyll. To build locally, install Ruby 2.2.2 or greater and then run the following commands:

gem install bundle
bundle install

To preview the site (this will launch a tiny webserver on port 4000):

bundle exec jekyll server --future

To simply build the site (output placed in the _site directory):

bundle exec jekyll build --future

Note that the --future parameter is only required if you're adding any pages dated in the future (such as prepared release announcements).

To test the site:

bundle exec jekyll build --future --drafts --unpublished && bundle exec htmlproof ./_site

The additional parameters to jekyll build ensure that all possible pages are built and checked.

Contributing

Contributions welcome. Please see CONTRIBUTING.md for details.

bitcoincore.org's People

Contributors

0xadada avatar achow101 avatar ajtowns avatar bejavu avatar bitcoinerrorlog avatar bittylicious avatar brg444 avatar btcdrak avatar chainquery avatar christewart avatar codeshark avatar creationlayer avatar djpnewton avatar ernestodeltoro avatar felipelalli avatar friendsofbitcoin avatar g1lius avatar gabridome avatar harding avatar instagibbs avatar jl2012 avatar jonasschnelli avatar jonathancross avatar laanwj avatar luke-jr avatar mably avatar nicolasdorier avatar paveljanik avatar shea256 avatar veqtrus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.