Prettier
This commit is contained in:
parent
06cb0c3be9
commit
b2f6858ff7
|
@ -28,7 +28,9 @@ async function fetchContributors() {
|
||||||
console.log(`Fetched page ${page}`);
|
console.log(`Fetched page ${page}`);
|
||||||
page++;
|
page++;
|
||||||
} while (data.length === 100);
|
} while (data.length === 100);
|
||||||
} catch (e) { /* contributors fetching failure must not hinder docs development */ }
|
} catch (e) {
|
||||||
|
/* contributors fetching failure must not hinder docs development */
|
||||||
|
}
|
||||||
return collaborators.filter((name) => !name.includes('[bot]'));
|
return collaborators.filter((name) => !name.includes('[bot]'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -159,8 +159,8 @@ UK land based bioenergy,Bio-conversion,182.01
|
||||||
Wave,Electricity grid,19.013
|
Wave,Electricity grid,19.013
|
||||||
Wind,Electricity grid,289.366
|
Wind,Electricity grid,289.366
|
||||||
```
|
```
|
||||||
:::
|
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
|
@ -214,6 +214,7 @@ Pumped heat,"Heating and cooling, commercial",70.672
|
||||||
```
|
```
|
||||||
|
|
||||||
### Double quotes
|
### Double quotes
|
||||||
|
|
||||||
If you need to have double quote, put a pair of them:
|
If you need to have double quote, put a pair of them:
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
|
@ -236,28 +237,28 @@ Pumped heat,"Heating and cooling, ""commercial""",70.672
|
||||||
|
|
||||||
You can change graph layout by setting `nodeAlignment` to:
|
You can change graph layout by setting `nodeAlignment` to:
|
||||||
|
|
||||||
* `justify`
|
- `justify`
|
||||||
* `center`
|
- `center`
|
||||||
* `left`
|
- `left`
|
||||||
* `right`
|
- `right`
|
||||||
|
|
||||||
And adjust coloring of the links by setting `linkColor` to one of those:
|
And adjust coloring of the links by setting `linkColor` to one of those:
|
||||||
|
|
||||||
* `source`
|
- `source`
|
||||||
* `target`
|
- `target`
|
||||||
* `gradient`
|
- `gradient`
|
||||||
* hex code of color, like `#a1a1a1`
|
- hex code of color, like `#a1a1a1`
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script>
|
<script>
|
||||||
const config = {
|
const config = {
|
||||||
startOnLoad: true,
|
startOnLoad: true,
|
||||||
securityLevel: "loose",
|
securityLevel: 'loose',
|
||||||
sankey: {
|
sankey: {
|
||||||
linkColor: "source",
|
linkColor: 'source',
|
||||||
nodeAlignment: "left"
|
nodeAlignment: 'left',
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
mermaid.initialize(config);
|
mermaid.initialize(config);
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
Loading…
Reference in New Issue