mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Make instructions faster to copy/paste
This commit is contained in:
parent
d80cc3caeb
commit
d19c7b0a00
@ -90,27 +90,26 @@ addition or not.
|
|||||||
|
|
||||||
## Building the site locally
|
## Building the site locally
|
||||||
|
|
||||||
You can build the site locally to test your changes. Follow the steps below.
|
Install Ruby, on macOS you can do it by installing [Homebrew](https://brew.sh/) then
|
||||||
|
|
||||||
* Install Ruby language runtime and RubyGems. See
|
```sh
|
||||||
[here](https://middlemanapp.com/basics/install/)
|
brew install ruby
|
||||||
for more details.
|
```
|
||||||
* Clone or zip download the
|
|
||||||
[learnxinyminutes-site](https://github.com/adambard/learnxinyminutes-site)
|
then
|
||||||
repository.
|
|
||||||
* `git clone https://github.com/adambard/learnxinyminutes-site`
|
```sh
|
||||||
* Install Middleman and other required dependencies using Bundler.
|
# Install Ruby bundler
|
||||||
* `cd learnxinyminutes-site/`
|
gem install bundler
|
||||||
* `bundle install`
|
|
||||||
* Get the source in place
|
# Clone the repo for the website
|
||||||
* Copy the contents of your clone of the fork of learnxinyminutes-docs repo
|
git clone https://github.com/adambard/learnxinyminutes-site
|
||||||
into the `source/docs` folder. There shouldn't be a `learnxinyminutes-docs`
|
# and clone the repo with all the content (this repo) into it
|
||||||
folder inside the `docs` folder, it should just contain all the repo
|
git clone https://github.com/<YOUR-USERNAME>/learnxinyminutes-docs ./learnxinyminutes-site/source/docs/
|
||||||
contents.
|
|
||||||
* Checkout your fork of the learnxinyminutes-docs repo as `source/docs`.
|
# Install the dependencies and run the site
|
||||||
* `cd source/docs/`
|
cd learnxinyminutes-site
|
||||||
* `git clone https://github.com/YOUR-USERNAME/learnxinyminutes-docs ./source/docs/`
|
bundle install
|
||||||
* Build the site or run a development server to test your changes (NOTE: run
|
|
||||||
these commands at `learnxinyminutes-site/`).
|
bundle exec middleman serve
|
||||||
* Build - `bundle exec middleman build`
|
```
|
||||||
* Dev server - `bundle exec middleman --force-polling --verbose`
|
|
||||||
|
Loading…
Reference in New Issue
Block a user