Skip to content

dancer1325/bitcoincore.org

 
 

Repository files navigation

  • Bitcoin Core project website's source code

Directory structure

  • File names format
    • "Y-m-d-title.md"
      • Example: 2015-12-31-title.md

Front Matter notes

  • uses
    • multilingual setup | ALL files
  • fields
    • name:
      • group name / UNIQUE article
      • SAME group name / EACH translation
        • Exmaple: october15-report
    • id:
      • TODO: 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:
      • article's translated title
    • type:
      • content type
        • Example: pages, posts, releases, meetings, etc.
    • layout:
      • layout template
        • Example: page, post, etc.
    • lang:
      • language code
        • Example: 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
---

how to build?

Install the bundle utility using the Ruby package manager, gem, and then use bundle to install the rest of the Ruby packages needed to build this site. Note, depending on your system configuration, you may need to run gem as the superuser by putting "sudo" followed by a space before the gem command. You shouldn't need to use sudo with the bundle command.

gem update --system
gem install bundler
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 htmlproofer --check-html --disable-external --url-ignore '/^\/bin/.*/' ./_site

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

References

About

Bitcoin Core project website

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 98.2%
  • SCSS 1.3%
  • Shell 0.2%
  • Go 0.1%
  • JavaScript 0.1%
  • Ruby 0.1%