Skip to content

Commit a4cf554

Browse files
author
Sebastian Sastre
committed
find->found
1 parent ae7fa7c commit a4cf554

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ The site is developed using [Jekyll](http://jekyllrb.com/).
1010
## How to add a page to this amber-documentation site?
1111

1212
1. Meet requirements. You need Jekyll in your system: `gem install jekyll`.
13-
2. Clone this repo with `git clone [email protected]:amber-smalltalk/amber-documentation.git`.
14-
3. `git checkout -b my-edit-or-new-doc-page`
15-
4. Run Jekyll with `jekyll serve` (it will rebuild the site after any file gets saved).
16-
5. Visit `http://localhost:4000` to see the current state.
13+
2. Fork github.com:amber-smalltalk/amber-documentation.git
14+
2. Clone your forked repo with `git clone [email protected]:yourgithubusername/amber-documentation.git`.
15+
3. `git checkout -b my-edit-or-contribution`
16+
4. Run Jekyll with `jekyll serve` (it will detect and rebuild the site after any file gets saved).
17+
5. Visit `http://localhost:4000` to see the current state of the documentation.
1718
6. Edit until you are satisfied.
1819
7. Commit, push and open a pull request
1920

faq.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ permalink: "faq.html"
55
parent: Overview
66
---
77

8-
#### Q: How do I start a new Amber project?
8+
#### How do I start a new Amber project?
99

10-
A: You can see the steps [described here](/getting-started.html) which are basically:
10+
You can see the steps [described here](/getting-started.html) which are basically:
1111

1212
1. `npm install -g amber-cli`
1313
2. `mkdir newProjectDir`
@@ -22,7 +22,7 @@ Here is also a terminal screencast doing just that:
2222
<iframe src="http://showterm.io/457dc8b24df38d67e421d#fast" width="640" height="480"></iframe>
2323

2424

25-
#### Q: How do I get back the Helios IDE after I have closed it?
25+
#### How do I get back the Helios IDE after I have closed it?
2626

2727
Press this sequence of keys: Shift, Shift, Ctrl, Shift.
2828
A dialog should appear with "Legacy IDE" and "Helios IDE" buttons.
@@ -32,7 +32,7 @@ In case the above did not work, evaluate the following in the JavaScript console
3232
`require('amber/helpers').popupHelios()`
3333

3434

35-
#### Q: What version is the amber website running?
35+
#### What version is the Amber website running?
3636

3737
1. Open IDE at [http://amber-lang.net/](http://amber-lang.net/).
3838
2. Go to the Workspace tab.
@@ -64,20 +64,28 @@ If you want to be sure which version is latest and which one is bleedingedge use
6464

6565
#### How do I get the text value of an input field?
6666

67-
If you have a field with an id of #field1, the way to get it's value is `'#field1' asJQuery val`.
67+
If you have `<input id="field1" ...`, the way to get its value is `'#field1' asJQuery val`.
6868

69-
Note: _All_ JavaScript methods in jQuery are available to you this way.
69+
#### How can I 'call' JavaScript functions from my Amber code?
7070

71-
Multi parameter functions are then mapped like:
71+
To allow you to use JavaScript from your Amber code, Amber uses a proxy that will route Smalltalk messages as JavaScript calls as transparent as possible. For example, _all_ JavaScript methods in jQuery are available to you this way:
7272

73-
`aQuery.sampleFunc(a,b,c);`
73+
**Without arguments**:
7474

75-
`aQuery sampleFunc: a andThis: b andThat: c.`
75+
`'#element-id' asJQuery hide`
76+
`'#element-id' asJQuery show`
7677

77-
The ``andThis:andThat:`` part can be any selectors. The only thing that matters for JavaScript and Amber is the first part of the keyword selector which has to match the JavaScript function name.
78+
**With one argument**:
7879

80+
`'#element-id' asJQuery attr: 'data' put: 'some-value'`
7981

80-
#### Where can I found more questions and answers?
82+
**With many arguments**:
83+
84+
`aQuery.sampleFunc(a,b,c);` translates to `aQuery sampleFunc: a andThis: b andThat: c.`
85+
86+
In the previous examples, the `put:` and the ``andThis:andThat:`` part of the Smalltalk selector can be named any way you want. For JavaScript functions the names in that part of the keyword are ignored. Amber needs only the first part of the selector matching the JavaScript function name.
87+
88+
#### Where can I find more questions and answers?
8189

8290
You can try the [wiki](https://github.com/amber-smalltalk/amber/wiki/FAQ) or join the Amber's chat group [here](https://gitter.im/amber-smalltalk/amber).
8391

js-glossary.md renamed to javascript-glossary.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: JS ecosystem glossary
2+
title: JavaScript ecosystem glossary
33
layout: default
4-
permalink: "js-glossary.html"
4+
permalink: "javascript-glossary.html"
55
parent: Overview
66
---
77

0 commit comments

Comments
 (0)