Skip to content

Commit 515a123

Browse files
committed
Markdown lint configuration and fixes
1 parent bee0ca1 commit 515a123

File tree

9 files changed

+49
-32
lines changed

9 files changed

+49
-32
lines changed

.markdownlint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"default": true,
3+
"MD013": { "line_length": 120},
4+
"MD041": false
5+
}

.remarkrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": [
3+
"remark-preset-lint-recommended",
4+
["remark-lint-list-item-indent", "space"]
5+
]
6+
}

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Todo
32

43
* maps
@@ -11,6 +10,7 @@
1110

1211
* <https://github.com/c2corg/v6_api/issues/730>
1312
handle if token is obsolote or corrupted
13+
1414
* no mail from c2c :
1515
* validate_new_password : callback when requestPasswordChange
1616
* validate_change_email

docs/development-environment.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11

2-
Actually, it will much more comfortable to have an UI to manage every dev tasks. First of all, install [Vue CLI](https://cli.vuejs.org/)
2+
Actually, it will much more comfortable to have an UI to manage every dev tasks. First of all, install [Vue CLI](<https://cli.vuejs.org/>)
33

4-
```
4+
```bash
55
npm install -g @vue/cli
66
```
77

88
Then, simply launch :
9-
```
9+
10+
```bash
1011
vue ui
1112
```
1213

13-
On http://localhost:8000, you will have on-click buttons for all features :
14+
On <http://localhost:8000>, you will have on-click buttons for all features :
1415

1516
* `serve` : launch a ready-to-code server with hot reload
1617
* `build` : build a ready-to-deploy production site

public/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
This folder contains [static files](https://cli.vuejs.org/guide/html-and-static-assets.html#static-assets-handling) referenced in `/src` by absolute path. Actually, it should not contains anything but index.html, and robots.txt.
1+
This folder contains [static files](https://cli.vuejs.org/guide/html-and-static-assets.html#static-assets-handling)
2+
referenced in `/src` by absolute path. Actually, it should not contains anything but index.html, and robots.txt.

src/assets/img/backgrounds/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
The images in this directory are used as backgrounds in the homepage.
22

33
They are provided courtesy of their authors with the following licences:
4-
* `alexbuisse-greenland.jpg` by Alex Buisse http://www.alexbuisse.com/ under a Creative Commons By NC SA license (https://creativecommons.org/licenses/by-nc-sa/3.0/deed)
5-
* `alexsaunier-monch.jpg` by Alex Saunier under a Creative Commons BY NC ND license (https://creativecommons.org/licenses/by-nc-nd/3.0/deed)
6-
* `laurentf-sajama.jpg` by Laurent F http://lolofreg2.over-blog.com/ under a Creative Commons BY NC ND license (https://creativecommons.org/licenses/by-nc-nd/3.0/deed)
7-
* `cermygian-crevasse.jpg` by cermygian https://www.camptocamp.org/profiles/279741/en under a Creative Commons By NC SA license (https://creativecommons.org/licenses/by-nc-sa/3.0/deed) Original image: https://www.camptocamp.org/images/566097/en/glacier-du-geant-m-blanc
4+
5+
* `alexbuisse-greenland.jpg` by Alex Buisse <http://www.alexbuisse.com/> under a Creative Commons By NC SA license (<https://creativecommons.org/licenses/by-nc-sa/3.0/deed>)
6+
* `alexsaunier-monch.jpg` by Alex Saunier under a Creative Commons BY NC ND license (<https://creativecommons.org/licenses/by-nc-nd/3.0/deed>)
7+
* `laurentf-sajama.jpg` by Laurent F <http://lolofreg2.over-blog.com/> under a Creative Commons BY NC ND license (<https://creativecommons.org/licenses/by-nc-nd/3.0/deed>)
8+
* `cermygian-crevasse.jpg` by cermygian <https://www.camptocamp.org/profiles/279741> under a Creative Commons By NC SA
9+
license (<https://creativecommons.org/licenses/by-nc-sa/3.0/deed>) Original image:
10+
<https://www.camptocamp.org/images/566097/en/glacier-du-geant-m-blanc>

src/components/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
This folder contains all Vue components.
22

3-
They are grouped by common behavior that share same children components :
3+
They are grouped by common behavior that share same children components:
44

5-
* cards : card component that display a card, given a camptocamp documents
5+
* cards: card component that display a card, given a camptocamp documents
66
* datatable
7-
* generics : generic components available everywhere. Simply add a .vue file here, and you can use it everywhere
8-
* helper : modal window that show a helper. Simply call `this.$helper.show(helperId)` in your component.
9-
* imagesUploader : upload image to a document
10-
* map : map component
11-
* markddownEditor : does it needs an explanation ?
7+
* generics: generic components available everywhere. Simply add a .vue file here, and you can use it everywhere
8+
* helper: modal window that show a helper. Simply call `this.$helper.show(helperId)` in your component.
9+
* imagesUploader: upload image to a document
10+
* map: map component
11+
* markdownEditor: does it needs an explanation ?

src/views/wiki/edition/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Edition views, one per document's type
1+
# Edition views, one per document's type
22

33
## Some infos
44

@@ -9,12 +9,12 @@ What is the logic behind field distribution in edition views ?
99
What is the logic behind field distribution in edition views ?
1010

1111
1. first tab, called "General informations"
12-
* all mandatory fields
13-
* and the shortest possible list of most used fields.
12+
* all mandatory fields
13+
* and the shortest possible list of most used fields.
1414
2. then, in other tabs
15-
* Ideally, this tab must not have vertical scroll
16-
* fields with common sense are kept together, on the same row if possible
17-
* then, rows are ordered by useness
15+
* Ideally, this tab must not have vertical scroll
16+
* fields with common sense are kept together, on the same row if possible
17+
* then, rows are ordered by useness
1818

1919
### Ergonomics targets
2020

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
Utilities for edition views.
22

3-
### form-row
3+
# form-row
4+
45
A row with two parts :
56

67
* on left side, a label
78
* on right side, one or more inputs
89

9-
This row will be visible if, and only if at least one of its children has `visible property set to `true`
10+
This row will be visible if, and only if at least one of its children has `visible` property set to `true`
1011

11-
#### Attributes
12+
## Attributes
1213

1314
* `label`, a mandatory string
1415
* `always-visible`, optional boolean
1516
* `is-grouped`, optional boolean, set it to true if you have severals inputs, and you need them to be sticked
1617

17-
#### Usage
18+
## Usage
1819

19-
``` HTML
20+
```html
2021
<!-- with two inputs -->
2122
<form-row :label="$gettext('waypoint')" is-grouped>
2223
<form-input :document="document" :field="fields.waypoint_type"/>
2324
<form-input :document="document" :field="fields.title"/>
24-
</form-row>
25+
</form-row>
2526

2627
<!-- with one input, always visible -->
2728

@@ -31,16 +32,16 @@ This row will be visible if, and only if at least one of its children has `visib
3132
</form-row>
3233
```
3334

34-
### form-simple-row
35+
# form-simple-row
3536

3637
``` HTML
3738
<form-simple-row :document="document" :field="fields.title" />
3839
```
3940

40-
### form-input
41+
# form-input
4142

4243
``` HTML
4344
<form-input :document="document" :field="fields.title"/>
4445
```
4546

46-
TODO : rname everyting
47+
TODO : rname everyting

0 commit comments

Comments
 (0)