GithubHelp home page GithubHelp logo

isabella232 / square.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from square/square.github.io

0.0 0.0 0.0 3.39 MB

A simple, static portal which outlines our open source offerings.

Home Page: https://square.github.io

CSS 50.01% Python 2.88% HTML 45.29% Ruby 1.83%

square.github.io's Introduction

Square Open Source Portal

Build Status

A simple, static portal which outlines our open source offerings. Intentionally themed to look like a Square merchant page on the directory.

Development

Run the site locally

gem install bundler # first time only
bundle install # first time only
bundle exec jekyll serve

Update list of repos:

pip install pystache requests pygithub3 # first time only
./generate.py

About the code

Due to the use of absolute URLs in CSS files that are (essentially) out of our control, the easiest way to develop is by running with Jekyll.

Repositories are listed in the repos.json file as a map of repository names to a list of their categories. Invoking the generate.py script will update the index.html page with the latest repos by using the index.mustache file as a template.

Repository data is pulled via the GitHub API (e.g., website). By default the script performs unauthenticated requests, so it's easy to run up against GitHub's limit of 60 unauthenticated requests per hour. To make authenticated requests and work around the rate-limiting, add an entry for api.github.com to your ~/.netrc file, preferably with a Personal Access Token from https://github.com/settings/tokens

machine api.github.com
  login YourUsername
  password PersonalAccessToken

Images are loaded by convention from the repo_images/ directory. Ensure the name is the same as the repo name in the repos.json file and has a .jpg extension. Currently all images are rotated 10 degrees counter-clockwise to break up the overwhelming horizontal and vertical visual lines on the page.

square.github.io's People

Contributors

jakewharton avatar compwron avatar zach-klippenstein avatar dependabot[bot] avatar vgaidarji avatar alokmenghrajani avatar mcpherrinm avatar mbostock avatar swankjesse avatar simoleone avatar mbyczkowski avatar puls avatar eventualbuddha avatar justjavac avatar ritvikgautam avatar pyricau avatar maxjacobson avatar trmw avatar keithchu avatar karelvuong avatar honzi avatar imgbotapp avatar grant avatar ezralopez avatar eburke avatar danielni avatar dfed avatar csstaub avatar brandonweeks avatar aleckazakova 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.