mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Compare commits
4 Commits
2d7137628b
...
1c3dd41136
Author | SHA1 | Date | |
---|---|---|---|
|
1c3dd41136 | ||
|
d19c7b0a00 | ||
|
d80cc3caeb | ||
|
b98bc6f95a |
@ -90,27 +90,26 @@ addition or not.
|
||||
|
||||
## 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
|
||||
[here](https://middlemanapp.com/basics/install/)
|
||||
for more details.
|
||||
* Clone or zip download the
|
||||
[learnxinyminutes-site](https://github.com/adambard/learnxinyminutes-site)
|
||||
repository.
|
||||
* `git clone https://github.com/adambard/learnxinyminutes-site`
|
||||
* Install Middleman and other required dependencies using Bundler.
|
||||
* `cd learnxinyminutes-site/`
|
||||
* `bundle install`
|
||||
* Get the source in place
|
||||
* Copy the contents of your clone of the fork of learnxinyminutes-docs repo
|
||||
into the `source/docs` folder. There shouldn't be a `learnxinyminutes-docs`
|
||||
folder inside the `docs` folder, it should just contain all the repo
|
||||
contents.
|
||||
* Checkout your fork of the learnxinyminutes-docs repo as `source/docs`.
|
||||
* `cd source/docs/`
|
||||
* `git clone https://github.com/YOUR-USERNAME/learnxinyminutes-docs ./source/docs/`
|
||||
* Build the site or run a development server to test your changes (NOTE: run
|
||||
these commands at `learnxinyminutes-site/`).
|
||||
* Build - `bundle exec middleman build`
|
||||
* Dev server - `bundle exec middleman --force-polling --verbose`
|
||||
```sh
|
||||
brew install ruby
|
||||
```
|
||||
|
||||
then
|
||||
|
||||
```sh
|
||||
# Install Ruby bundler
|
||||
gem install bundler
|
||||
|
||||
# Clone the repo for the website
|
||||
git clone https://github.com/adambard/learnxinyminutes-site
|
||||
# and clone the repo with all the content (this repo) into it
|
||||
git clone https://github.com/<YOUR-USERNAME>/learnxinyminutes-docs ./learnxinyminutes-site/source/docs/
|
||||
|
||||
# Install the dependencies and run the site
|
||||
cd learnxinyminutes-site
|
||||
bundle install
|
||||
|
||||
bundle exec middleman serve
|
||||
```
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl-bg.pl
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
lang: ca-es
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Groovy
|
||||
category: language
|
||||
language: Groovy
|
||||
lang: ca-es
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
filename: learngo-cs.go
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: CUE
|
||||
category: language
|
||||
language: CUE
|
||||
filename: learncue.cue
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
lang: es-es
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl-es.pl
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Raku
|
||||
category: language
|
||||
language: Raku
|
||||
filename: learnraku-es.raku
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
filename: learngo-fi.go
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
lang: fr-fr
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl-fr.pl
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
filename: learngo.go
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
language: Go
|
||||
filename: learngo-it.go
|
||||
contributors:
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
filename: learngo-kr.go
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl.pl
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl-pl.pm
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
filename: learngo-pt.go
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl-pt.pl
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Red
|
||||
category: language
|
||||
language: Red
|
||||
filename: learnred.red
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Sing
|
||||
category: language
|
||||
language: Sing
|
||||
filename: learnsing.sing
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: C
|
||||
category: language
|
||||
language: C
|
||||
filename: learnc-tr.c
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: ruby
|
||||
language: Ruby
|
||||
filename: learnruby-tr.rb
|
||||
contributors:
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Go
|
||||
category: language
|
||||
language: Go
|
||||
filename: learngo-ua.go
|
||||
|
@ -54,6 +54,7 @@ specific points in the file, and for fast editing.
|
||||
?word # Highlights all occurrences of word before cursor
|
||||
n # Moves cursor to next occurrence of word after search
|
||||
N # Moves cursor to previous occurrence of word
|
||||
:nohl # Clear highlights of last search
|
||||
|
||||
:%s/foo/bar/g # Change 'foo' to 'bar' on every line in the file
|
||||
:s/foo/bar/g # Change 'foo' to 'bar' on the current line
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: java
|
||||
category: language
|
||||
language: Java
|
||||
lang: zh-cn
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
language: JavaScript
|
||||
category: language
|
||||
name: javascript
|
||||
filename: javascript-zh.js
|
||||
contributors:
|
||||
- ["Leigh Brenecki", "https://leigh.net.au"]
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl-cn.pl
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: Red
|
||||
category: language
|
||||
language: Red
|
||||
filename: LearnRed-zh.red
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
language: javascript
|
||||
language: JavaScript
|
||||
category: language
|
||||
name: javascript
|
||||
filename: javascript-zh-tw.js
|
||||
contributors:
|
||||
- ["Leigh Brenecki", "https://leigh.net.au"]
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
name: perl
|
||||
category: language
|
||||
language: Perl
|
||||
filename: learnperl-tw.pl
|
||||
|
Loading…
Reference in New Issue
Block a user