autonlab / autonlab.github.io

https://autonlab.github.io/
3 stars 5 forks source link

Auton Lab Website

If you are reading this, you are likely attempting to update or maintain the Auton Lab website in some fashion. Everyone has the tools they need to make the changes they want to the website, but if you would feel more comfortable talking to someone to learn how to make your own edits to the website, please reach out to Nick. It will probably take less than 30 minutes to get you set up and making your first commits. Keep in mind that this new site is under version control, so try your best to add the content you want and if something breaks, we can always recover.

FAQ

How to view edits locally

Github Documentation

The directions on this page are good. The added note about adding webrick to the gemfile depending on the version of Jekyll that you are using came in handy. The general path to getting the website up and running on your local machine is:

Please file issues when you discover them

We want the site to look professional, so text spilling over or images rendering too tiny are all good points to raise so we can diagnose and fix.

Features of the website

Key points

Directory Structure (key elements shown)

/autonlab.github.io/

FAQ How-To:

Edit your personal page / Add a new employee

If you wish to add a staff member profile, it's very easy. Simply create a file in the directory autonlab.github.io/collections/_staff/ This file should have the format of lastname_firstname.md in all lowercase. The contents of the file must follow the format below, and category must be one of staff,faculty, alumni or student:

---
layout: homepage
first_name: [First]
last_name: [Last]
title: [e.g. PhD Student]
category: {student, staff, alumni, faculty} (selection tell the site where to sort your entry)
image: "/assets/images/[last]_[first].jpg" (can be left out if no image available,. Place the image in the directory as shown)
summary: "mouseover text"
---  
[Anything below the three dashes here is shown when the name is clicked. This can be used to make a simple(or complex!) homepage, using HTML or jekyll markdown.]

Add new publications to the searchable table

The website can handle bibtex entries. Add your bibtex citations to any file in autonlab.github.io/publications/ .We recommend creating a new file for all of your past and future publications named [last]_[first].bib.

I want to tweak text on an existing page

If you want to make straightforward changes to text (e.g. spelling error or new sentence in paragraph), you can make them directly on Github, you must be logged in to Github. Find the file you want to change and use the edit button (pencil). Changes to text are likely safe to commit directly to the master branch.

Note that if you are making larger changes to the text, like adding new elements to a list, you will need to pay attention to markdown syntax. In these cases, it would be safer to create a new branch for your commit and start a pull request.

Entries in the white/blue checker cells tend to be files in the autonlab.github.io/collections/* directories.

Updating the News Feed

The news feeds are located under the collections directory, under the _posts subdirectory. Each file MUST be titled in the format YYYY-MM-DD-XXXX.md, with XXXX a word or two description of the post. The actual post follows the format:

---
layout: post
title:  "Title here"
date:   YYYY-MM-DD HH:MM:SS -0400
categories: site news
excerpt: "Insert what appears on the front page here."
---

Place the text of the full news article here, if different from the excerpt. This can be forematted like an individual page with images and so on, using the markup language.

Currently, only the "site news" category is used.

Adding a new collection and linking to home page header

If you wish to add a new tab on the top of the home screen that links to a new collection, there are a few things you need to do.

How to change formatting of an element on a particular page

Check out static/page.css

It is highly recommended that you render the site locally to see the effect of your changes before pushing to the live site.

How to change formatting of an entire page

Check out _layouts/* which contain the templates that are called by all other files on the site (e.g., layout: research)

It is highly recommended that you render the site locally to see the effect of your changes before pushing to the live site.