"Time for P6" conference panel preparation for 2026 TEI Conference
This repo hosts a reveal.js presentation built with Vite and deployed to GitHub Pages via the gh-pages branch.
- Node.js (LTS version recommended)
- npm (comes with Node)
- Git
-
Clone the repo (with https or ssh) and change directories into it.
git clone git@github.com:TEIC/timeForP6.git cd timeForP6or (with https)
git clone https://github.com/TEIC/timeForP6.git cd timeForP6 -
Install dependencies
npm install
This installs reveal.js, Vite, and the
gh-pagesdeploy tool as defined inpackage.json. -
Run the dev server
npm run dev
This starts Vite's local dev server (usually at
http://localhost:5173) with live reload. Editindex.htmlormain.jsand the browser updates automatically.
.
├── index.html # Slide content lives here (<section> per slide)
├── main.js # Reveal.js initialization + plugins/theme imports
├── vite.config.js # Vite config, including the `base` path for GitHub Pages
├── package.json
└── dist/ # Build output (generated, not committed)
We use feature branches and pull requests rather than committing directly to main.
-
Create a branch off
mainfor your change:git checkout main git pull git checkout -b your-name/short-description
(e.g.
alex/add-intro-slides) -
Make your changes, testing locally with
npm run devas you go. -
Commit and push:
git add . git commit -m "Describe the change" git push -u origin your-name/short-description
-
Open a Pull Request on GitHub against
main. Add a short description of what changed — new slides, plugin additions, styling, etc. -
Once reviewed and merged into
main, someone with deploy access can publish the update (see below).
Note:
mainis the source branch for editing content.gh-pagesis a generated/deploy-only branch — never edit it directly or open PRs against it. It gets overwritten every time someone runsnpm run deploy.
Only merge to main first, then deploy from main:
npm run deployThis runs vite build (producing dist/) and pushes that output to the gh-pages branch, which GitHub Pages serves automatically.
Live site: https://<org-or-user>.github.io/<repo-name>/
Slides live in index.html inside <div class="slides">. Each top-level <section> is a new slide; nested <section> elements create vertical slide stacks. See the reveal.js documentation for markup options, and main.js for enabled plugins (e.g. Markdown, syntax highlighting).
- Styles/scripts 404 after deploying: Check that
baseinvite.config.jsmatches your repo name exactly (/repo-name/), including leading/trailing slashes. - Local dev looks fine but the deployed site is broken: This is almost always the
basepath issue above — Vite assumes root (/) locally but GitHub Pages serves from a subpath. npm run deployfails with a permissions error: Confirm you have push access to the repo, and that thegh-pagesbranch isn't protected in a way that blocks force-pushes (thegh-pagespackage force-pushes the build output each time).
*These instructions were speedily generated and adapted with help from Claude Sonnet 5, 2026-07-16.