-
Notifications
You must be signed in to change notification settings - Fork 13
Setting up your development environment
To edit the Prospector website, you will need some software installed and set up on your local machine. This walkthrough should get you there: please edit if you find omissions or mistakes!
Jekyll is the static website generator which powers GitHub Pages and lots of other blogs and static sites.
Instructions for installing Jekyll on Windows are based on those available from this page.
- Install Ruby - use Ruby Installer. Install a 32-bit version WITH DEVKIT.
Ruby+Devkit 2.6.6-1 (x86) is recommended. Make sure to run the
ridk install
step on the last stage of the installaton wizard. Please note this step could take a while. Again, install the 32-bit version and not the 64-bit version to avoid running into any compatibility issues. - Install jekyll and its dependencies - run
gem install bundler wdm jekyll
in a new command prompt.
Condragulations, you have jekyll!
Node features npm
, the "node package manager" which is used for installing and managing all of the myriad javascript tools and libraries that are needed to build a modern fancy website.
- Install Node -- the version "recommended for most users" is fine. It is currently 12.17.0 LTS.
- Install some required tools into the global npm path. From a command window:
This installs webpack, which is a javascript preprocessor and surge, tools for free webhosting.
npm install --global webpack surge
Condragulations, you have set up Node!
- If you don't already have Git installed, get it from from https://www.git-scm.com
- I think choosing all the default options in the installer should be fine
- There are several settings which make Git work better. After installation is finished, open a command prompt and type in the following commands:
git config --global pull.rebase true git config --global push.default simple git config --global user.name "Your Name" git config --global user.email your@email.address
Condragulations, you have Git!
The is the topic of many flamewars. I really like Sublime Text 3 and Notepad++ but please use whatever you want. But whatever you choose, find its settings panel and:
- Enable "Replace tabs with spaces"
- Set "Default tab width" to 2
- Enable "Trim trailing spaces on save"
On Notepad++ the first two options are oddly under Settings / Preferences / Language
.
Condragulations, you have a decent text editor!
Your development environment is now set up! You can now advance to Building Prospector locally.
Get Started
- Back-End Setup
- Setting up your development environment
- Building Prospector locally
- Publishing your changes
Other Useful Links
- Recipes for typical tasks
- Glossary
- Publishing instructions for CMP standalone site
- Deploying a new release GitHub Pages and Prospector
Platform Considerations
Background Information