Giter Club home page Giter Club logo

penndsg.github.io's Introduction

Penn Data Science Group website

Build site

To build the website locally, clone the repo with:

git clone https://github.com/penndsg/website_source.git

Make sure you have ruby installed (preferrably using RVM). If you don't have the bundler gem installed, install it by typing

gem install bundler

Then install necessary Ruby dependencies by running bundle install from within the website_source directory. After this, the site can be be built with:

jekyll build

This creates the static website files in the _site directory. To view the site, run jekyll serve (still from within the website_source directory) and point a browser to http://localhost:4000/. More information on Jekyll can be found here.

Add new member

To add a new member, use the new_member.py script. For example, to add John Doe, type

python new_member.py "John Doe"

This will create a file with a path like members/_posts/2016-12-14-john-doe.md. The file will look something like this:

---
layout: member
title: "John Doe"
degree: "[Degree] [Program] [Grad Year]"
# cv: /pdfs/members/john-doe-cv.pdf
# resume: /pdfs/members/john-doe-resume.pdf
# twitter: your-twitter-handle
# github: your-github-handle
# bitbucket: your-bitbucket-handle
# scholar: your-google-scholar-id
# linkedin: your-linkedin-id (the part that goes after linkedin.com/in/)
# researchgate: your-researchgate-id
# website: your-website.com
# email: name at example.edu
# phone: "(123) 456-7890"
# image: /images/members/john-doe.jpg
---

Tell us about yourself here. You can add links like [this](https://www.google.com/search?q=this).

Open this file and edit it to your liking. Add info for whatever links you want to appear in your profile and uncommend those lines. Feel free to delete commented lines you don't want to use. If you don't want a boring default profile picture, add a SQUARE profile picture (same number of pixels wide as tall) to (in this case) /images/members/john-doe.jpg and uncomment the image line.

Add new blog post

To add a new blog post, type

python new_blog_post.py "My Blog Post Title"

This will create a file with a path like projects/_posts/2018-09-26-my-blog-post-title.md. This file will look something like this:

---
layout: post
title: "My Blog Post Title"
# author:
# image: /images/blog/my-blog-post-title.png
---

Blog post content here. To see what you can do with Markdown, check out
[this Markdown cheatsheet]
(https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet).

Uncomment the author line and add the name of the author. If the name matches the name of someone with a member profile (someone with a file in members/_posts/), then their image will be displayed over their name in the blog post, and a link to their profile will be generated.

If there's a header image associated with the blog post, uncomment the image line in the file and make sure the path points to a valid image.

Add a new event

For that, just copy a previous event file in the events/_posts directory. Make sure the date in the file name is the date of the event. Edit the file to your liking. Make sure to add a picture associated with the event and uncomment the image line.

Commit and push changes to the source files

If you have write access to this git repo (website admins only), then after you make changes locally you'd like the website to have, do a git add ., git commit -m "commit message", and git push origin master from within the website_source directory. This does not save the generated source files since _site is included in the .gitignore file.

If you don't have write access, then fork this repo and create a pull request after you push your changes to your own repo. We'll review the changes and either accept them or work with you to clean them up.

Deploy site (website admins only)

To deploy changes to the site, first make sure you have been added as a contributor to the penndsg/website_source.git repo, then type

./deploy.sh

from within the website_source directory. You should immediately see your changes reflected in penndsg.github.io.

penndsg.github.io's People

Contributors

benlindsay avatar rgupta90 avatar hyunhw avatar andrew-cui avatar arranzignacio avatar penndsg avatar

Watchers

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