forked from ringcentral/slate
-
Notifications
You must be signed in to change notification settings - Fork 197
Installing Slate
Mike Ralphson edited this page Nov 26, 2019
·
18 revisions
You're going to need:
- Linux or macOS — Windows may work, but is unsupported. For OSX and Ubuntu see installing_nokogiri prior to getting started
- Ruby, version 2.3.1 or newer
-
Bundler — If Ruby is already installed, but the
bundle
command doesn't work, just rungem install bundler
in a terminal. - npm
- Fork this repository on Github.
- Clone your forked repository (not our original one) to your hard drive with
git clone https://github.com/YOURUSERNAME/slate.git
cd slate
- Initialize and start Slate. You can either do this locally, or with Vagrant:
# either run this to run locally
bundle install
bundle exec middleman server
# OR run this to run with vagrant
vagrant up
You can now see the docs at http://localhost:4567. Whoa! That was fast!
If you struggling from error message like in (#1003)
...
autodetect: Could not find a JavaScript runtime
...
Then you need to install JavaScript runtime for your machine / docker environment. Follow the instructions on NodeJS website. For example:
Linux:
apt-get install nodejs
macOS (for Brew users):
brew install node
StackOverflow question: ExecJS and could not find a JavaScript runtime
The next step is to learn how to edit source/index.md
to change the content of your docs.