Skip to content

danieldiekmeier/rspec.github.io

This branch is 87 commits behind rspec/rspec.github.io:source.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 24, 2023
ee7ce44 · Aug 24, 2023
Dec 5, 2019
Mar 20, 2023
Aug 7, 2023
Mar 20, 2023
Aug 7, 2023
Jan 31, 2021
Jan 31, 2021
Mar 20, 2023
Aug 24, 2023
Nov 27, 2022
Mar 20, 2023
Jul 26, 2020
Nov 26, 2022
Nov 3, 2015

Repository files navigation

rspec.github.io

Source for https://rspec.info

Requires a recent version of Ruby (tested on 2.7.5, Ruby 3.x is not yet working), bundler and imagemagick (to generate favicons).

Local Setup

  • brew install imagemagick (or your package manager of choice).
  • bundle install
  • middleman build

Local Developing

Run LIVERELOAD=true middleman server

Docker Setup + Development

If you don't have a local Ruby environment suitable to making changes to rspec.info, or prefer containerised development; use the following scripts to build the included Docker image and build the site in the containerised environment instead.

# Start the middleman server. Access site at http://localhost:4567
bin/server

# Build the site in the `docs/` directory. Replacement for `middleman build`.
bin/build

# Start a console inside the docker container. Useful for debugging or running commands locally.
bin/console

Deploying

Run bundle exec middleman build, which will compile the site to ./docs. This folder is directly served from the source branch via the config settings for github pages so in order to deploy you only need to run the command locally and push up a PR to your target of choice, which are:

When deploying to the staging repository you should delete docs/CNAME, this can be done for you via bin/staging_deploy

Credits

Andrew Harvey - for his incredible effort of making this repository as it is now

About

source for rspec.info

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 55.2%
  • Ruby 12.9%
  • CSS 11.9%
  • Slim 11.7%
  • JavaScript 6.3%
  • HTML 1.0%
  • Other 1.0%