Skip to content

alexusbrown/APLS

 
 

Repository files navigation

layout nav_exclude search_exclude permalink
default
true
true
/README

Archive of Pittsburgh Language and Speech (APLS)

The GitHub repository djvill/APLS hosts documentation and files for users of the Archive of Pittsburgh Language and Speech aka APLS (pronounced like apples). It powers the website djvill.github.io/APLS and APLS 'splash page' apls.pitt.edu, both of which are hosted by GitHub Pages. This repository (unlike APLS itself) is licensed CC BY-NC-SA 4.0.

If you're looking for the APLS homepage, please visit apls.pitt.edu. The APLS corpus is at apls.pitt.edu/labbcat. This README page describes the repository itself, which may be of interest to developers.

This repo is still very much a work in progress. However, I anticipate it'll contain info for not only end-users, but also transcribers and corpus maintainers.

GitHub Pages/Jekyll

The public-facing pages are built and deployed to djvill.github.io/APLS using GitHub Pages. The page source is built from the main branch's root directory, using the "deploy from a branch" workflow. This repo uses the just-the-docs theme.

This repo only contains a few Jekyll files for customizing just-the-docs (e.g., overwriting _config.yml). As a result, the repo doesn't have all the files to preview the page locally (i.e., with bundle exec jekyll serve). I decided this limitation was worth not clogging up the repository with a ton of Jekyll code.

Page last_modified_date

Markdown files that have the last_modified_date parameter set in their YAML headers will have "Page last modified: DATE" appear in the footer. (To suppress this, just remove/don't add last_modified_date to the header.) To have this parameter automatically updated when changes are committed to a page, add a pre-commit hook as the file .git/hooks/pre-commit:

#!/bin/sh
# Replace `last_modified_date` timestamp with current time
# Credit: https://mademistakes.com/notes/adding-last-modified-timestamps-with-git/

git diff --cached --name-status | egrep -i "^(A|M).*\.(md)$" | while read a b; do
  cat $b | sed -b "/---.*/,/---.*/s/^last_modified_date:.*$/last_modified_date: $(date "+%Y-%m-%dT%H:%M:%S")/" > tmp
  mv tmp $b
  git add $b
done

Solution courtesy of https://mademistakes.com/notes/adding-last-modified-timestamps-with-git/.

Repo contents

  • _includes/: Content stubs (see Jekyll doc)
  • _layouts/: Page layouts (see Jekyll doc)
  • _sass/: Sass partials (see Jekyll doc)
  • assets/: Site assets (CSS, JavaScript, image files)
  • doc/: Documentation---the meat of the public-facing website
  • files/: Files relevant to the corpus
    • custom-dictionary/: Custom dictionary entries
    • layer-scripts/: Script files for APLS layers annotated by Python layer manager
  • ./ (this folder):

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 41.4%
  • HTML 28.3%
  • JavaScript 15.9%
  • R 11.7%
  • CSS 2.0%
  • Shell 0.7%