Skip to content

Commit dfc6770

Browse files
Merge pull request #142 from damien-carcel/doc-improvements
Doc improvements
2 parents ab8db1f + 9e23b91 commit dfc6770

File tree

8 files changed

+33
-18
lines changed

8 files changed

+33
-18
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
.DS_Store
66
/tmp/
77
config.json
8+
package-lock.json
9+
yarn.lock
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

content/php-client/resources/products.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $client = new \Akeneo\Pim\AkeneoPimClientBuilder('http://akeneo.com/')->buildAut
4343
$product = $client->getProductApi()->get('top');
4444
```
4545

46-
You can get more information about the returned format of the product values [here](/documentation/resources.html#product).
46+
You can get more information about the returned format of the product values [here](/documentation/resources.html#product-values).
4747

4848
### Get a list of products
4949

@@ -178,7 +178,7 @@ $client->getProductApi()->create('top', [
178178
);
179179
```
180180

181-
You can get more information about the expected format of the product values [here](/documentation/resources.html#product).
181+
You can get more information about the expected format of the product values [here](/documentation/resources.html#product-values).
182182

183183
### Upsert a product
184184

@@ -226,7 +226,7 @@ $client->getProductApi()->upsert('top', [
226226
);
227227
```
228228

229-
You can get more information about the expected format of the product values [here](/documentation/resources.html#product).
229+
You can get more information about the expected format of the product values [here](/documentation/resources.html#product-values).
230230

231231
### Upsert a list of products
232232

gulpfile.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ gulp.task('clean-dist', function () {
1414
// so as to relaunch the build into dist directory
1515
// Should be used for dev purpose
1616
gulp.task('watch', ['create-dist'], function() {
17-
gulp.watch('content/*.md', ['create-dist']);
18-
gulp.watch('content/php-client/*.md', ['create-dist']);
19-
gulp.watch('content/misc/*.md', ['create-dist']);
20-
gulp.watch('styles/*.less', ['create-dist']);
21-
gulp.watch('src/*.handlebars', ['create-dist']);
22-
gulp.watch('src/api-reference/*.handlebars',['create-dist']);
23-
gulp.watch('content/img/*', ['create-dist']);
17+
gulp.watch('content/**/*.md', ['create-dist']);
18+
gulp.watch('content/img/**/*', ['create-dist']);
2419
gulp.watch('content/*.yaml', ['create-dist']);
20+
gulp.watch('styles/*.less', ['create-dist']);
21+
gulp.watch('src/**/*.handlebars', ['create-dist']);
2522
});
2623

2724
// Launch a server with dist directory exposed on it

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"name": "pim-api-docs",
3+
"scripts": {
4+
"serve": "gulp serve"
5+
},
36
"dependencies": {
47
"jquery": "3.1.1",
58
"font-awesome": "4.7.0",

readme.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,32 @@ The API documentation can be found here: [api.akeneo.com](http://api.akeneo.com)
66
## Installation for dev/preview purposes
77

88
### Requirements
9-
[Node](https://nodejs.org/en/) is required and [Gulp-cli](https://github.com/gulpjs/gulp-cli) as well.
9+
[Node.js](https://nodejs.org/en/) is required.
10+
You can optionally choose [Yarn](https://yarnpkg.com/lang/en/) as package manager instead of NPM (provided with NodeJS by default).
11+
12+
### Run locally
13+
First, install the all dependencies with Yarn:
1014

1115
```bash
12-
sudo npm install --global n
13-
sudo n 7.2.0
14-
npm install
15-
sudo npm install --global gulp-cli
16+
yarn install
1617
```
1718

18-
### Run locally
19-
Once Node and gulp-cli installed, run:
19+
or with NPM:
2020

2121
```bash
2222
npm install
23+
```
24+
25+
Then run the Gulp server, with Yarn:
2326

24-
gulp serve
27+
```bash
28+
yarn serve
29+
```
30+
31+
or with NPM:
32+
33+
```bash
34+
npm serve
2535
```
2636

2737
The API documentation site is then available on `localhost:8000`.

0 commit comments

Comments
 (0)