A static site generator for old Ouroboros project Talk forums, based on elevenpack.
yarn install
Install the dependencies.
yarn dev talk.sciencegossip.org
Use this script for local development.
Build and start a development site on http://localhost:8080.
This will run all dev:* scripts from package.json in parallel to build the HTML & JSON resources. API responses are cached in .cache/ for 30 days using eleventy-cache-assets.
yarn dev:boards talk.sciencegossip.org
Build development versions of dist/boards, dist/api/boards and dist/api/discussions then run a local Browsersync server. Useful if you want to test a build on http://localhost:8080 without cleaning the dist/ directory first.
yarn build talk.sciencegossip.org
Use this script to create resource pages prior to deploying. API responses are cached in .cache/ for 30 days using eleventy-cache-assets.
Will run the following build scripts in order:
yarn build:assetsto build thedist/assets/directory for static site.yarn build:boardsto builddist/boards,dist/api/boardsanddist/api/discussionsresources.yarn build:apibuildscollections,usersandproject.jsonfiles indist/api/.yarn build:sitebuildsdist/collections,dist/recent, anddist/userspages.yarn build:tagsbuilds JSON files indist/api/tagsand HTML pages indist/tags.yarn build:subjects-apibuildsdist/api/subjectsJSON files.yarn build:subjectsbuildsdist/subjectsindex pages.yarn build:subjectCollectionsbuildsdist/subjectscollection pages (the full list of collections for each subject.)
Alternatively run those scripts individually to build the API data in dist/api/ and HTML content in dist/ and cache the API responses in .cache.
yarn deploy -r talk.sciencegossip.org
Copy the site from /dist to S3.
Get a bash session in the container to develop or deploy resources:
docker-compose run --service-ports --rm talk-archiver bash
# build the relevant talk resources and serve them via http://localhost:8080
yarn dev
# or build
yarn build
# and deploy the resources
yarn deploySet the DEBUG environment variable to debug performance.
DEBUG=Eleventy:Benchmark* yarn build talk.sciencegossip.org