mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Compare commits
3 Commits
c4a53d83a2
...
18f28fd3fe
Author | SHA1 | Date | |
---|---|---|---|
|
18f28fd3fe | ||
|
d19c7b0a00 | ||
|
d80cc3caeb |
@ -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`
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl-bg.pl
|
filename: learnperl-bg.pl
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
lang: ca-es
|
lang: ca-es
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Groovy
|
|
||||||
category: language
|
category: language
|
||||||
language: Groovy
|
language: Groovy
|
||||||
lang: ca-es
|
lang: ca-es
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
filename: learngo-cs.go
|
filename: learngo-cs.go
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: CUE
|
|
||||||
category: language
|
category: language
|
||||||
language: CUE
|
language: CUE
|
||||||
filename: learncue.cue
|
filename: learncue.cue
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
lang: es-es
|
lang: es-es
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl-es.pl
|
filename: learnperl-es.pl
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Raku
|
|
||||||
category: language
|
category: language
|
||||||
language: Raku
|
language: Raku
|
||||||
filename: learnraku-es.raku
|
filename: learnraku-es.raku
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
filename: learngo-fi.go
|
filename: learngo-fi.go
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
lang: fr-fr
|
lang: fr-fr
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl-fr.pl
|
filename: learnperl-fr.pl
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
filename: learngo.go
|
filename: learngo.go
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
language: Go
|
language: Go
|
||||||
filename: learngo-it.go
|
filename: learngo-it.go
|
||||||
contributors:
|
contributors:
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
filename: learngo-kr.go
|
filename: learngo-kr.go
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl.pl
|
filename: learnperl.pl
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl-pl.pm
|
filename: learnperl-pl.pm
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
filename: learngo-pt.go
|
filename: learngo-pt.go
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl-pt.pl
|
filename: learnperl-pt.pl
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Red
|
|
||||||
category: language
|
category: language
|
||||||
language: Red
|
language: Red
|
||||||
filename: learnred.red
|
filename: learnred.red
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Sing
|
|
||||||
category: language
|
category: language
|
||||||
language: Sing
|
language: Sing
|
||||||
filename: learnsing.sing
|
filename: learnsing.sing
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: C
|
|
||||||
category: language
|
category: language
|
||||||
language: C
|
language: C
|
||||||
filename: learnc-tr.c
|
filename: learnc-tr.c
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: ruby
|
|
||||||
language: Ruby
|
language: Ruby
|
||||||
filename: learnruby-tr.rb
|
filename: learnruby-tr.rb
|
||||||
contributors:
|
contributors:
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Go
|
|
||||||
category: language
|
category: language
|
||||||
language: Go
|
language: Go
|
||||||
filename: learngo-ua.go
|
filename: learngo-ua.go
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: java
|
|
||||||
category: language
|
category: language
|
||||||
language: Java
|
language: Java
|
||||||
lang: zh-cn
|
lang: zh-cn
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
language: JavaScript
|
language: JavaScript
|
||||||
category: language
|
category: language
|
||||||
name: javascript
|
|
||||||
filename: javascript-zh.js
|
filename: javascript-zh.js
|
||||||
contributors:
|
contributors:
|
||||||
- ["Leigh Brenecki", "https://leigh.net.au"]
|
- ["Leigh Brenecki", "https://leigh.net.au"]
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl-cn.pl
|
filename: learnperl-cn.pl
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: Red
|
|
||||||
category: language
|
category: language
|
||||||
language: Red
|
language: Red
|
||||||
filename: LearnRed-zh.red
|
filename: LearnRed-zh.red
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
language: javascript
|
language: JavaScript
|
||||||
category: language
|
category: language
|
||||||
name: javascript
|
|
||||||
filename: javascript-zh-tw.js
|
filename: javascript-zh-tw.js
|
||||||
contributors:
|
contributors:
|
||||||
- ["Leigh Brenecki", "https://leigh.net.au"]
|
- ["Leigh Brenecki", "https://leigh.net.au"]
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
name: perl
|
|
||||||
category: language
|
category: language
|
||||||
language: Perl
|
language: Perl
|
||||||
filename: learnperl-tw.pl
|
filename: learnperl-tw.pl
|
||||||
|
Loading…
Reference in New Issue
Block a user