GithubHelp home page GithubHelp logo

isabella232 / neat.bourbon.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thoughtbot/neat.bourbon.io

0.0 0.0 0.0 302 KB

This is the source code for the Neat website

Home Page: https://neat.bourbon.io/

License: MIT License

Ruby 13.35% Shell 0.44% CSS 55.46% HTML 26.03% JavaScript 4.72%

neat.bourbon.io's Introduction

Neat logo

Neat Website

This is the source code for the Neat website. It’s built with Middleman.

You can find the Neat Sass library source code here.

Setup

  1. Get the code:

    git clone https://github.com/thoughtbot/neat.bourbon.io.git
    
  2. Set up your machine:

    bin/setup
    
  3. Run the app:

    bundle exec middleman
    
    open http://localhost:4567
    

Generate Documentation

Neat uses SassDoc to document its source code. For this website, we use a Rake task to run SassDoc’s CLI, which parses documentation-specific comments from Neat’s source and outputs them as versioned JSON files (e.g. neat_2_0_0.json). We then use a proxy in Middleman to generate unique pages for each version.

To generate documentation for a published version of Neat, use the generate_docs_for task:

rake generate_docs_for 2.0.0

Hosting & Deployment

The website is hosted on Netlify, and is automatically built and deployed when changes are pushed to the master branch. Credentials for Netlify can be found in 1Password.

Front-end Architecture

This project uses:

  • Sass, with Bourbon
  • BEM-style CSS class names
    • library/: Global variables, mixins and functions; all non-rendering Sass
    • base/: Unclassed HTML elements (e.g. a {}, input {})
    • patterns/: Abstractions, highly reusable pieces of style that are used in any number of unrelated contexts (e.g. .media {})
    • components/: Discrete, implementation-specific piece of UI (e.g. .site-nav {})
    • views/: An object who's styles are modified by the view's body class (e.g. .page-index {})
  • Autoprefixer
  • SCSS-Lint, with Hound (configuration)
  • A variety of CSS units:
    • em for typographical-related elements
    • rem for lengths related to components
    • px for borders, text shadows, etc.
    • vw/vh for lengths that should be relational to the viewport
  • modular-scale() (which outputs em values) for font sizes

neat.bourbon.io's People

Contributors

danbee avatar dependabot-preview[bot] avatar dependabot-support avatar jasonetco avatar tysongach avatar whmii 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.