layout | nav_exclude | search_exclude | permalink |
---|---|---|---|
default |
true |
true |
/README |
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.
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.
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/.
_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 websitefiles/
: Files relevant to the corpuscustom-dictionary/
: Custom dictionary entrieslayer-scripts/
: Script files for APLS layers annotated by Python layer manager
./
(this folder):.gitignore
: For Git version control_config.yml
: Site configuration file (see Jekyll doc)_todo.md
: Site maintenance to-do list404.md
: Custom "Page not found" error page (see Jekyll doc)LICENSE.md
: Markdown conversion of legal code for CC BY-NC-SA 4.0 licenseREADME.md
: What you're reading right now!SPLASH.md
: APLS homepage (aka splash page), injected via<iframe>
into apls.pitt.edu