This repo is for our public-facing site, which is hosted on https://skylight.digital.
The site is built with the Twitter Bootstrap front-end framework (for now), and uses Jekyll to generate static pages, which are served through GitHub Pages.
- If you’re using a Mac, install homebrew (see https://brew.sh/)
- After installing git (
brew install git),cdto the directory where you want to check out the site, and then clone it (git clone https://github.com/skylight-hq/skylight.digital.git). - Install rvm (
\curl -sSL https://get.rvm.io | bash -s stable), and then install a new version of ruby (rvm install 3.0.1). - Install the
bundlergem, then use bundler to install other project dependencies (gem install bundler && bundle install). - Install node (
brew install node -v7.10.0), and then runnpm installto install the local dependencies listed inpackage.json.
Mac users with an M1 chip should follow these instructions instead.
- In the directory you checked out the website into, run
jekyll serveto start the web server. - Navigate to http://localhost:4000 in your browser to see your changes.
- To execute lint tests, run the
npm run-script <script>command in the console. Available scripts include:scss-lint,html-lint, andjs-lint. - To check test for accessibility, HTML structure, and valid links, we use HTMLProofer. To run that, execute
rake testin your local terminal.
- If you’re using a Mac, install homebrew (see https://brew.sh/).
- Install docker.
- Install NPM
brew install node. - After installing git (
brew install git),cdto the directory where you want to check out the site, and then clone it (git clone https://github.com/skylight-hq/skylight.digital.git). - Enter the command
npm run docker-runto start the server. - Navigate to http://localhost:4000 in your browser.
- Install homebrew (see https://brew.sh/).
- After installing git (
brew install git),cdto the directory where you want to check out the site, and then clone it (git clone https://github.com/skylight-hq/skylight.digital.git). - Install asdf (
brew install asdf). - Install ruby with asdf by following the asdf ruby installation guide.
- Revert the version of ruby running in your working directory to 2.7.2 first with
asdf install ruby 2.7.2and thenasdf local ruby 2.7.2. - Install the
bundlergem, then use bundler to install other project dependencies (gem install bundler && bundle install). - Install NVM (
brew install nvm). - Follow instructions and update .zshr or .bash_profile.
- Restart terminal.
- Install Node 7.10.0,
nvm install 7.10.0. - Use Node 7.10.0,
nvm use 7.10.0. - Install node pacakges,
npm installto install the local dependencies listed inpackage.json. - Run site,
jekyll serve.