Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update schedule section of cookiecutter #41

Merged
merged 16 commits into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/setupconda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ runs:
environment-file: conda/conda-${{ runner.os == 'Linux' && 'linux' || 'osx' }}-64.lock
activate-environment: hackweek
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!

- name: Add pip packages to environment
shell: bash -l {0}
run: pip install --no-deps jinja-markdown==1.210911
231 changes: 0 additions & 231 deletions book/schedule.md

This file was deleted.

17 changes: 16 additions & 1 deletion book/schedule.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
timezone: UTC -7 (Pacific Daylight Time)
tabs:
- title: Day 1
date: Wed 12, Oct
Expand All @@ -9,6 +10,9 @@ tabs:
leads:
- Scott Henderson
- Anthony Arendt
resources:
- title: "SnowEx Hackweek 2021: Introductory Session"
url: https://youtu.be/cHQloxZFtOQ
- time: 9:30 - 10:00
location: Room A5
title: Coffee Break
Expand All @@ -17,7 +21,18 @@ tabs:
leads: []
- title: Day 2
date: Thu 13, Oct
contents:
- time: 1:00 - 2:00 PM
title: Coffee Break
description: |

more refueling, but with a bulleted list:

- list1
- list2
- title: Day 3
date: Fri 14, Oct
- title: Day 4
date: Sat 15, Oct
date: Sat 15, Oct
- title: Day 5
date: Sun 16, Oct
6 changes: 5 additions & 1 deletion conda/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ channels:
dependencies:
- cookiecutter
- ipyleaflet
- jinja2>=2.11
- jupyter-book=0.12
- jupyterhub-singleuser
- jupyterlab=3
- jupyter-resource-usage
- mamba
- markdown
JessicaS11 marked this conversation as resolved.
Show resolved Hide resolved
- pip
- sphinxcontrib-bibtex
- pygments>=2.6.1
- pymdown_extensions >= 7.1
- sphinxcontrib-bibtex
4 changes: 3 additions & 1 deletion cookiecutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ footer:
icon_pack: fab
link: https://github.com/uwhackweek/
_copy_without_render:
- assets
- assets
_extensions:
- jinja_markdown.MarkdownExtension
27 changes: 22 additions & 5 deletions {{ cookiecutter.repo_directory }}/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ <h5>Interests / Expertise</h5>
{%- if cookiecutter.schedule %}
<section id="schedule-section" class="schedule-section section">
<div class="container">
<h3 class="section-heading text-center mb-5">Schedule</h3>
<h3 class="section-heading text-center mb-1">Schedule</h3>
<h4 class="text-center mb-5"> All times listed below are {{ cookiecutter.schedule.timezone }}.
You might want to consult this <a href="https://www.timeanddate.com/time/map/" target="_blank">Time Zone Map</a> to figure out times in your location.</h4>
{%- if cookiecutter.schedule["tabs"] %}
<!-- Nav tabs -->
<ul class="schedule-nav nav nav-pills nav-fill" id="myTab" role="tablist">
Expand Down Expand Up @@ -355,12 +357,19 @@ <h4 class="time mb-3">{{ content['time'] }}</h4>
<!--//meta-->
<div class="content">
<h3 class="title mb-3">{{ content['title'] }}</h3>
<div class="location mb-3"><i class="fas fa-map-marker-alt me-2"></i>{{ content['location']
}}</div>
<div class="desc">{{ content['description'] }}</div>
{% if 'location' in content %}
<div class="location mb-3"><i class="fas fa-map-marker-alt me-2"></i>
{{ content['location'] }}
</div>
{% endif %}
<div class="desc">
{%- markdown -%}
{{ content['description']|safe }}
{%- endmarkdown -%}
</div>
{%- if 'leads' in content and content['leads']|length > 0 %}
<div class="profile">
<h6 class="mb-1 mt-2"> Tutorial Lead(s)</h4>
<h6 class="mb-1 mt-2"> Tutorial Lead(s)</h6>
{%- for lead in content['leads'] %}
{%- set person = cookiecutter.team['people']|selectattr('title', '==', lead)|list|first %}
{%- set modal_name = person['title']|lower|replace(' ', '--') %}
Expand All @@ -371,6 +380,14 @@ <h6 class="mb-1 mt-2"> Tutorial Lead(s)</h4>
{%- endfor %}
</div>
{%- endif %}
{%- if 'resources' in content and content['resources']|length > 0 %}
<div>
<h6 class="mb-1 mt-2"> Resource(s)</h6>
{%- for resource in content['resources'] %}
<a href="{{resource['url']}}" target="_blank">{{resource['title']}}</a>
{%- endfor %}
</div>
{%- endif -%}
</div>
<!--//content-->
</div>
Expand Down