archivesspace / tech-docs

Technical documentation for ArchivesSpace
https://archivesspace.github.io/tech-docs/
Other
27 stars 29 forks source link

Configure Jekyll for graceful local development #152

Closed brianzelip closed 1 year ago

brianzelip commented 1 year ago

The current Tech Docs site seems to rely fully on GitHub Pages for building and deployment. It doesn’t provide a local development environment.

This PR provides the basis for opting-in to local development and building the Tech Docs site, while maintaining the ability to edit content directly on github.com, or by any other means. Deployment is still handled via GitHub Pages.

This is the first step in adding a fresh coat of paint to the tech docs.

Closes #153

TL;DR

This PR adds the ability to opt-in to local development; it does not change the current user experience of reading the docs, nor the current contributor experience of updating the docs.

Create local dev environment

Requires Ruby and Bundler.

1. Install dependencies

bundle install

2. Build and serve

bundle exec jekyll serve

Serves on localhost:3000. See Jekyll docs for more options.

Live demo

See this PR in action at https://brianzelip.github.io/tech-docs-jekyll/

What changed?

Settings

Content

searcy commented 1 year ago

Thanks @brianzelip -- this looks great.