Skip to content

Commit

Permalink
Use yml for pubs instead of bib
Browse files Browse the repository at this point in the history
  • Loading branch information
bjack205 committed Feb 24, 2020
1 parent 3b41cb0 commit 950d3d6
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ navigation:
link: /code.html
- title: Joining
link: /join.html
- title: Pubs
link: /publications2.html
theme: jekyll-theme-cayman
42 changes: 42 additions & 0 deletions _data/pubs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
- title: "ALGAMES: A Fast Solver for Cosntrained Dynamic Games"
authors: [simon, Mac Schwager, zac]
date: "July 12, 2020"
pub-type: conference
publisher: "Robotics: Science and Systems"
abbrv: RSS
pdf: ALGAMES.pdf
venue: Corvallis, OR
projects: [ALGAMES]
status: Submitted

- title: Scalable Cooperative Transport of Cable-Suspended Loads with UAV's using Distributed Trajectory Optimization
authors: [brian, taylor, Kunal Shah, Mac Schwager, zac]
date: "May 31, 2020"
pub-type: conference
publisher: International Conference on Robotics and Automation
abbrv: ICRA
venue: Paris, France
pdf: distributed_quads.pdf
projects: [multirobot,trajopt]

- title: Planning and Control with Attitude
authors: [brian, zac]
date: "June 15, 2020"
pub-type: conference
publisher: Workshop on the Algorithmic Foundations of Robotics
abbrv: WAFR
venue: Oulu, Finland
pdf: planning_with_attitude.pdf
projects: [trajopt]
status: Submitted

- title: Linear-Time Variational Integrators in Maximal Coordinates
authors: [jan, zac]
date: "June 2020"
publisher: Workshop on the Algorithmic Foundations of Robotics
abbrv: WAFR
venue: Oulu, Finland
pdf: max_coord_dynamics.pdf
projects: [quadrupeds]
status: Submitted

31 changes: 31 additions & 0 deletions _includes/authors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% assign authors = include.authors %}


{% for author in authors %}
{% if forloop.last %}
and
{% endif %}

{%- assign name = author -%}

{% for entry in site.data.people %}
{% if author == entry[0] %}
{% assign person = entry[1] %}
{% if person.webpage %}
{% capture name %}
<a href="{{ person.webpage | escape }}"> {{- person.display_name -}} </a>
{% endcapture %}
{% else %}
{%- assign name = person.display_name -%}
{% endif %}
{% endif %}
{% endfor %}

<span class="author">
{% if forloop.last %}
{{ name | strip }}
{% else %}
{{ name | strip | append: "," }}
{% endif %}
</span>
{% endfor %}
59 changes: 59 additions & 0 deletions _includes/pub_entry.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{% assign pub = include.pub %}


{% if pub.pdf %}
{% assign url = "/papers/" | append: pub.pdf %}
{% capture title %}
<span class="pubtitle">
<img src={{ "img/pdficon_small.png" | relative_url }} width="20" height="20" alt="PDF" />
<a href="{{ url | escape }}"> {{ pub.title }} </a>
</span>
{% endcapture %}
{% else %}
{% assign title = pub.title %}
{% endif %}

{% assign year = pub.date | date: "%Y" %}
{% assign year = year | to_integer %}
{% assign month = pub.date | date: "%B" %}
{% capture date %}
<span class="date">
{% if year != include.prev_year %}
<big><strong>{{ year }}</strong></big><br />
{% else %}
<br />
{% endif %}
{{ month }}
</span>
{% endcapture %}

{% capture authors %}
{% include authors.html authors=pub.authors %}
{% endcapture %}

<tr>
<td>
{{ date }}
</td>
<td class="publication">
<span class="pubtitle">
{{ title }}
</span><br />
<span class="authors">
{{ authors }}
</span><br />
<span class="publisher">
{{ pub.publisher | strip }} ({{ pub.abbrv | strip }}).
</span>
{% if pub.pub-type == "conference" and pub.venue %}
<span class="venue">
{{ pub.venue | strip }}.
</span>
{% endif %}
{% if pub.status %}
<span class="status">
({{ pub.status | strip }})
</span>
{% endif %}
</td>
</tr>
17 changes: 17 additions & 0 deletions _layouts/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@

{{ content }}

<h2> Related Papers </h2>
{% assign tag = page.path | split: '/' | last | split: '.' | first %}
{% assign prev_year = 1000 %}
<table class="table">
<tbody>
{% for pub in site.data.pubs %}
{% if pub.projects %}
{% for project in pub.projects %}
{% if project == tag %}
{% include pub_entry.html pub=pub prev_year=prev_year%}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</tbody>
</table>

<h2> People </h2>
<section class="people project-people">
{% for uname in page.people %}
Expand Down
19 changes: 19 additions & 0 deletions publications2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: default
title: Publications
authors: [zac, jan, brian, Kunal Shah]
---
<p>
<a href="{{ site.base }}/bib/pubs.bib">Download BibTeX.</a>
</p>

{% assign prev_year = 1000 %}
{% assign pubs = site.data.pubs | sort: "date" %}
<table class="table">
<tbody>
{% for pub in pubs %}
{% include pub_entry.html pub=pub prev_year=prev_year%}
{% assign prev_year = pub.date | date: "%Y" | to_integer %}
{% endfor %}
</tbody>
</table>

0 comments on commit 950d3d6

Please sign in to comment.