Skip to content

MDLutoronto/workshop-intro-programming-absolute-beginners-python-2025

Repository files navigation

Map and Data Library JTD Theme

This is a customized version of the Just the Docs theme for the Map and Data Library at the University of Toronto Libraries.

Using the template

This repository is a GitHub template repository that you can use to create your own documentation site using the Just the Docs theme.

To create a new site using this template, click the green "Use this template" button above. This will create a new repository in your GitHub account with the contents of this repository.

Using as a remote theme

You can use this repository as a remote theme, powered by the jekyll-remote-theme plugin.

To do so, add the following two lines to your site's _config.yml file:

remote_theme: "MDLutoronto/jtd-theme"

plugins:
    - ... (if you have other plugins)
    - jekyll-remote-theme

Also, you need to install the jekyll-remote-theme (version 0.4.3) gem by adding this line to your Gemfile:

gem "jekyll-remote-theme", "~> 0.4.3"

Configuration options

Site options

You can set the following options in your site's _config.yml file to customize site-wide information:

Workshop series name (optional)

  • workshop_series_name: Set this to the name of your workshop series to have it displayed in that page. For example:
workshop_series_name: "NAME OF YOUR WORKSHOP SERIES"

This will display This workshop is part of the {{NAME OF YOUR WORKSHOP SERIES}} in the footer of each page.

License (optional)

By default, the theme displays a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license icon in the footer of each page, linking to the CC BY-SA 4.0 license.

You can set the following options to display license information in the footer of the site that applies to all pages:

  • license_name: Set this to the name of the license. For example:
license_name: "CC BY 4.0"
  • license_url: Set this to the URL of the license. For example:
license_url: "https://creativecommons.org/licenses/by/4.0/"
  • license_image_url: Set this to the URL of the license image you want to display. For example:
license_image_url: "https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/by-sa.svg"

Creative Commons Attribution-ShareAlike 4.0 International icon

Page options

You can set the following options in the front matter of your pages to customize the footer information:

Dates

  • created_date: Set this to the date the page was created. For example:
created_date: 2025-10-06
  • last_modified_date: Set this to the date the page was last modified. For example:
last_modified_date: 2025-10-07

This will display Content created: October 06, 2025 | Last updated: October 07, 2025 in the footer of the page.

If only one of these options is set, only that information will be displayed.

Staff information

  • staff_name: Set this to the name of the staff member who created the page. For example:
staff_name: Ken Lui
  • staff_link: Set this to the URL of the staff member's profile or website. For example:
staff_link: https://library.utoronto.ca/staff/ken-lui

This will display Tutorial created by Ken Lui in the footer of the page, with Ken Lui being a link to the specified URL. If no link is provided, the name will be displayed as plain text.

Student staff information (optional)

  • student_name: Set this to the name of the student staff member who created the page. For example:
student_name: Jane Doe
  • student_link: Set this to the URL of the student staff member's profile or website. For example:
student_link: https://library.utoronto.ca/staff/jane-doe

This will display Tutorial created by Jane Doe in the footer of the page, with Jane Doe being a link to the specified URL. If no link is provided, the name will be displayed as plain text.

Development

Testing the theme locally

To test the theme locally, you need to have Ruby and Bundler installed.

  1. Clone the repository:
git clone https://github.com/MDLutoronto/jtd-theme.git
  1. Navigate to the repository directory:
cd jtd-theme
  1. Install the dependencies and serve the site with live reload:
bundle install && bundle exec jekyll serve --livereload
  1. Open your web browser and go to http://localhost:4000 to view the site.

Deployment bug fix

If the deployment keeps looping the following messages:

...
Current status: deployment_queued
Getting Pages deployment status...
...

Unpublishing and republishing the site

A way to fix is is to go to the repository's Settings > Pages, unpublish the site by clicking the Unpublish site button, then republish it by clicking the Save button.

Changing the source temporarily

Another way to fix it is to try the following steps:

  1. Cancel the current deployment if it's still in progress.
  2. Go to the repository's Settings > Pages. Find the Source under the Build and deployment section, change it to Deploy from a branch
  3. Wait for a few seconds, then change it back to GitHub Actions.
  4. Retrigger the deployment by pushing a new commit, or re-running the workflow under the Actions > Deploy Jekyll site to Pages.