Giter Site home page Giter Site logo

duembgen / bitcraze-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitcraze/bitcraze-website

0.0 0.0 0.0 116.96 MB

The Bitcraze website

Home Page: https://www.bitcraze.io

License: Other

HTML 13.48% CSS 32.96% Ruby 47.87% JavaScript 2.72% Shell 2.91% Batchfile 0.05%

bitcraze-website's Introduction

The Bitcraze website Build Status

This is the source code for the Bitcraze website.

Quick start

The content is written in markdown and html and the intention is to make it as easy as possible to modify the code. There is an integrated development and test environment based on Docker to reduce the amount of software required.

  1. Clone this repository

     git clone https://github.com/bitcraze/bitcraze-website.git
    
  2. Go to the root of the repository. All tools should be run from here.

     cd bitcraze-website
    
  3. Download dependencies. This will download Bootstrap and set things up.

     ./tools/do download_deps
    
  4. Start the development server. The development server in Jekyll continuously builds the site when the source changes.

     ./tools/run-in-dev.sh
    
  5. Open a web browser and go to http://localhost. If you are not on Linux you will have to use docker-machine to figure out your address.

  6. Make your changes. The site will automatically rebuild when you modify a file, so all you have to do is to reload the page in your browser to see the results.

  7. Make sure all tests and validations passes

     ./tools/do build
    
  8. Commit and issue a pull request

  9. Done!

prerequisites

To contribute you only need:

If you don't want to use docker you will need ruby on you system. We have not set our systems up this way but is should not be a big deal. If you do, please add documentation for it here.

Technologies

You can find more information about the technologies used here

  • Jekyll - we use Jekyll to generate static html and css from markdown, html and scss
  • Bootstrap - The CSS is based on Bootrstrap
  • Docker - Docker is used to create a consistent development and test environment
  • HTML Proofer

File structure

The top level directories are

  • src - the source code for ths site, markdown, js, scss, templates and so on. This is where you need to look if you want to add or change the text or styling. Read the Jekyll documentation for an explanation of the file structure here.
  • test - unit tests for Jekyll plugins
  • bootsrap - bootstrap is download here
  • _site - this is where the generated site goes
  • tools - scripts for building the site and running the server. See comments in the scripts for documentation on how to use them.

Tags and filters

We are aiming at writing most of the content using markdown. This makes it easy to add or change the content without getting lost in styling. We use liquid tags and filters to extend the functionality of markdown to generate more complex or specific HTML structures.

Documentation for tags and filters can be found in the source code for the tags in src/_plugins.

Integration with Wordpress

The code in this repository is the base for all static content on the website. The blog on the other hand, is not part if this code, it is running on a Wordpress instance. The dynamic content is injected into the static pages where needed, you will find tags in the source code indicating where. For instance

    <!-- inject wp blog -->

Using the toolbelt

Instead of running the tools/do script you can use the toolbelt. For instance, downloading dependencies would be

    tb download_deps 

or running the validations

    tb validate

bitcraze-website's People

Contributors

artob avatar ataffanel avatar evoggy avatar fbobrow avatar fredg02 avatar gsilano avatar imciner2 avatar jassi0709 avatar jleny avatar katzuv avatar knmcguire avatar krichardsson avatar robertf avatar tmarinho avatar tobbeanton avatar whoenig avatar wldevries 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.