Git Product home page Git Product logo

engineering-website's Introduction

YP Engineering Website

engineering.yp.com

This is our Engineering website. Everyone at YP is welcome to contribute.

How to add/edit a blog post?

You have 2 options - cloning the repo and pushing to origin master or email a markdown file to an admin.

Option 1 - Clone Repo and Push Your Post:

1 - Use (or create if you don't have one) an external github account.

2 - Ensure you have permissions to clone the repo - add your public ssh key to your external github account.

You'll know this is a problem if you get the following error:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

3 - Clone the repo using the following command (or follow instructions on github page) and go to the engineering-website directory on your local machine:

git clone [email protected]:yp-engineering/engineering-website.git
cd engineering-website

4 - install node and run it locally

npm install # installs all dependencies
node server.js # run the site locally

If you get the following error:

Error: Cannot find module './config.js'

run this command in the /engineering_website directory:

cp config.example.js config.js

5 - Open http://localhost:9778/ to view the website

6 - Create or edit a blog post. All posts are in _posts. Or to simply see how this works run the command:

touch _posts/best-restaurants.html.md
update the rss feed - require('./rss.js')('./_posts/', 'public/rss.xml')

7 - If it looks good on your localhost commit and push your changes

git add .
git commit -am "best restaurants"
git push

If you get the following error at this stage:

ERROR: Permission to yp-engineering/engineering-website.git denied to <you>.
fatal: The remote end hung up unexpectedly

send an email to [email protected] or [email protected] requesting that your external git account be added to the yp-engineering\owners team.

8 - Let us know the content is ready to push to production, or wait till we see the git activity: [email protected] or [email protected]

Option 2. email a markdown file

Write your blog post using markdown (see example below) and email - [email protected] or [email protected]

Example for blog post

We use markdown for writing blog posts.

{{{
  "title" : "Best places to eat in Glendale",
  "authorName": "Oren",
  "authorLink": "https://github.com/oren",
  "authorImage": "https://secure.gravatar.com/avatar/ea28a1533185f15e9364a8db6f9c0bae?s=140&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
  "tags" : [ "culture" ],
  "date" : "9-13-2012"
}}}

After many months of eating, hours of analyzing hundreds of dishes,
and untold numbers of discussions, we have compiled a list of the most compelling places to dine in Glendale—and beyond.
We hope our choices, and the order in which they're ranked, incite discussion—not to mention many nights out on the town.

When we set out to rank restaurants for our second annual 25 Best Restaurants list,
we didn’t expect there to be a huge shift from 2010’s roundup. Boy, were we wrong.
The last year has seen a tremendous number of new—and very good—restaurants open,
and the local dining scene has continued to mature and rocket upward.

We hope our choices, and the order in which they’re placed, incites discussion—not to mention many dinners out.

## Here are the top 3

* Raffi's Place Restaurant
* Far Niente Ristorante
* Mini Kabob

Markdown cheatsheet

headers

# this is an h1 header
## this is an h2 header
### this is an h3 header
#### this is an h4 header
##### this is an h5 header

this is an h1 header

this is an h2 header

this is an h3 header

this is an h4 header

this is an h5 header

list

* chipotle
* poquito mas
* olive garden
  • chipotle
  • poquito mas
  • olive garden

numbered lists

1. apple
1. grape
1. tomato
  1. apple
  2. grape
  3. tomato

link

what a great [website](http://www.google.com)

what a great website

image

![image](http://www.welaf.com/uploads/201007/20/imgs/1279673882_miserable-life-of-a-small-cat.jpg)

image

code: (4 spaces or 2 tabs)

    require 'kitty'
    cat = Kitty.new("Hello")
    puts cat.miaoo

(it's not showing here, but there is also automatic syntax highlight)

require 'kitty'
cat = Kitty.new("Hello")
puts cat.miaoo

line break (2 spaces after the first line)

hello
world

engineering-website's People

Contributors

oren avatar clemcke avatar christopherdolan avatar mversweyveld avatar brandonjschwartz avatar

Watchers

James Cloos avatar  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.