CollectionBuilder-DHSI Workshop Tutorial

Day 2 - Software and Conventions

An overview of the software and techniques used to create CollectionBuilder sites.

Day 2: Tuesday, June 8

Topics: Git, Git Clone, Local Development with Jekyll, YML, CSV

Major Learning Objectives:

Conceptual

  • Understand the differences between Git, GitHub, GitHub Pages, and GitHub Desktop
  • Understand the difference between Ruby and Jekyll
  • Understand how and why one would develop locally and collaborate via the cloud*

Technical

  • Be able to start a development server on your computer
  • Be able to locate your project repository and edit your repository files on your computer
  • Be able to perform the basic Git workflow (commit, push, pull) locally and check results on GitHub + GitHub Pages*

Day 2 Workshop Recording:

https://youtu.be/pZz5LYwdLUA

Day 2 Outline:

  1. Quick check in (look at Issue introductions)

  2. CollectionBuilder technical overview - slides (Evan)
    • Define Git, GitHub, GitHub Pages, Jekyll, Ruby, Bundler, CollectionBuilder
  3. Software setup check in (Devin)
    • If you’re having problems, we will help you! (after class)
  4. From Clone To Push: A CollectionBuilder + GitHub Desktop Step by Step (Devin)
    • Introduction to Git
    • Clone your homework collection to your computer using GitHub Desktop
    • Introduce the local development environment:
    • Folder of files = CollectionBuilder project
    • Text editor: Visual Studio Code
    • Command Line Jekyll (bundler best practices/troubleshooting)
    • Use Jekyll to serve your site locally
    • Quick intro to _data/theme.yml (much more later!) and _config.yml
    • Edit files locally
    • Introduce Git commit, push, and pull from your computer using GitHub Desktop
    • Check your GitHub pages site to see changes go “Live”
  5. Overview of Git pull, commit, and push using the command line and Visual Studio Code (alternate methods to GitHub Desktop) (Evan)

  6. Further customize collection locally and push (if time allows) (Olivia)
    • _data/theme.yml
    • Default page settings
    • _data/config .csv
    • Customize page settings (Browse, Nav, Metadata)

Homework

Pull your collection down to your computer and customize your collection

  1. Clone your collection repository: https://collectionbuilder.github.io/cb-docs/docs/repository/clone/
  2. Open your collection repository in Visual Studio Code: https://collectionbuilder.github.io/cb-docs/docs/repository/open/

  3. Serve your collection locally on your Jekyll development server: https://collectionbuilder.github.io/cb-docs/docs/repository/generate/
  4. Edit some files in your repository.
  5. Use Git to commit and push changes to your repository
  6. Get in touch if you run into any issues or have any questions!