Skip to content

Commit

Permalink
ALL Update to apply markdown linter - docs-guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel LE CORRE committed Mar 26, 2020
1 parent 66162b8 commit f917a9e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
20 changes: 12 additions & 8 deletions docs-guideline/docs-guideline.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All guides are stored in this [repository](#)

A `guide` belongs to a `product` that belongs to an `universe`. Keep this in mind :).

```
```bash
.
├── pages
| ├── web
Expand Down Expand Up @@ -45,12 +45,13 @@ _example_: `home.en-gb.md`, `universe.fr-fr.md`, ...
#### content-types

##### home

Home page for a specific `zone` and `language` pair.
No content in this file except metadata.

###### available metadata

| name | description | extra |
| name | description | extra |
|---------|----------------------------------|------------------------|
| title | title of the site | mandatory |
| excerpt | short desc of the site | |
Expand All @@ -70,7 +71,8 @@ Page that lists all visible products the universe owns.
No content in this file except metadata.

###### available metadata
| name | description | extra |

| name | description | extra |
|---------|----------------------------------|------------------------|
| title | title of the product | mandatory |
| excerpt | short desc of the universe | |
Expand All @@ -85,7 +87,7 @@ No content in this file except metadata.

###### available metadata

| name | description | extra |
| name | description | extra |
|---------|----------------------------------|------------------------|
| title | title of the product | mandatory |
| excerpt | short desc of the product | |
Expand All @@ -99,7 +101,7 @@ Page containing documentation about the subject of your choice.

###### metadata

| name | description | extra |
| name | description | extra |
|---------|----------------------------------|------------------------|
| title | title of the doc | mandatory |
| excerpt | short desc of the doc | |
Expand All @@ -112,7 +114,7 @@ Page containing documentation about the subject of your choice.

If you want to add some pictures in your guide, create a folder images within your guide folder and place your pics there.

```
```bash
...
├── my-super-guide
| ├── images
Expand All @@ -132,6 +134,7 @@ You can now reference your pics relatively to your guide. See below an example f
Each guide must be placed in a folder with a representative name

#### languages

Allowed `ISO 639-1` language code (*[wikipedia](https://en.wikipedia.org/wiki/ISO_639-1)*)

- `cs`: Czech
Expand All @@ -147,6 +150,7 @@ Allowed `ISO 639-1` language code (*[wikipedia](https://en.wikipedia.org/wiki/IS
- `pt`: Portuguese

#### zones

Allowed `ISO 3166-1` country code (*[wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1)*)

- `au`: Australia
Expand All @@ -172,6 +176,6 @@ ___

## Format

All ressources are written in `markdown`. [See examples](http://commonmark.org/help/)
All ressources are written in `markdown`. [See examples](http://commonmark.org/help/).

In order to write specific content, we extend the base syntax to fit our needs. [see examples](markdown-custom.md)
In order to write specific content, we extend the base syntax to fit our needs. [See examples](markdown-custom.md).
28 changes: 13 additions & 15 deletions docs-guideline/markdown-custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

### alert

```
```md
/* markdown */

> [!alert]
Expand All @@ -24,11 +24,11 @@

![alert notice](images/notice-alert.png)

### Other notices:
### Other notices

#### primary

```
```md
/* markdown */

> [!primary]
Expand All @@ -41,7 +41,7 @@

#### warning

```
```md
/* markdown */

> [!warning]
Expand All @@ -54,7 +54,7 @@

#### info

```
```md
/* markdown */

> [!info]
Expand All @@ -65,10 +65,9 @@

![alert notice](images/notice-simple.png)


## Carousel

```
```md
/* markdown */

> [!carousel]
Expand All @@ -80,7 +79,7 @@
```

```html
<!-- generated html -->
<!-- generated html -->

<div class="carousel">
<div>
Expand All @@ -102,7 +101,7 @@

## FAQ

```
```md
/* markdown */

> [!faq]
Expand All @@ -122,7 +121,7 @@
```

```html
<!-- generated html -->
<!-- generated html -->

<dl class="docutils">
<dt><em>Question 1</em></dt>
Expand Down Expand Up @@ -168,7 +167,7 @@

## Api

```
```md
/* markdown */

> [!api]
Expand All @@ -178,7 +177,7 @@
```

```html
<!-- generated html -->
<!-- generated html -->

<div class="ovh-api-main">
<a href="https://eu.api.ovh.com/console/#/ipLoadbalancing/{serviceName}/tcp/route#POST" target="_blank">
Expand All @@ -190,12 +189,11 @@

![api](images/api.png)


## Advanced

You can mix different custom syntax

```
```md
/* markdown */

> [!faq]
Expand Down Expand Up @@ -269,4 +267,4 @@ You can mix different custom syntax
</dl>
```

![custom](images/custom.jpg)
![custom](images/custom.jpg)

0 comments on commit f917a9e

Please sign in to comment.