mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Merge pull request #1631 from mermaid-js/bug/improve_docs_gantt_example
Improve gantt example in documentation
This commit is contained in:
commit
7bb4f5591c
@ -43,12 +43,11 @@ gantt
|
|||||||
|
|
||||||
```
|
```
|
||||||
gantt
|
gantt
|
||||||
|
dateFormat YYYY-MM-DD
|
||||||
|
title Adding GANTT diagram functionality to mermaid
|
||||||
|
excludes weekends
|
||||||
|
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
|
||||||
|
|
||||||
|
|
||||||
dateFormat :YYYY-MM-DD
|
|
||||||
title :Adding GANTT diagram functionality to mermaid
|
|
||||||
excludes :excludes the named dates/days from being included in a charted task..
|
|
||||||
%% (Accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
|
|
||||||
section A section
|
section A section
|
||||||
Completed task :done, des1, 2014-01-06,2014-01-08
|
Completed task :done, des1, 2014-01-06,2014-01-08
|
||||||
Active task :active, des2, 2014-01-09, 3d
|
Active task :active, des2, 2014-01-09, 3d
|
||||||
@ -72,11 +71,13 @@ gantt
|
|||||||
Describe gantt syntax :after doc1, 3d
|
Describe gantt syntax :after doc1, 3d
|
||||||
Add gantt diagram to demo page :20h
|
Add gantt diagram to demo page :20h
|
||||||
Add another diagram to demo page :48h
|
Add another diagram to demo page :48h
|
||||||
```
|
```
|
||||||
```mermaid
|
```mermaid
|
||||||
gantt
|
gantt
|
||||||
dateFormat YYYY-MM-DD
|
dateFormat YYYY-MM-DD
|
||||||
title Adding GANTT diagram functionality to mermaid
|
title Adding GANTT diagram functionality to mermaid
|
||||||
|
excludes weekends
|
||||||
|
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
|
||||||
|
|
||||||
section A section
|
section A section
|
||||||
Completed task :done, des1, 2014-01-06,2014-01-08
|
Completed task :done, des1, 2014-01-06,2014-01-08
|
||||||
@ -101,7 +102,7 @@ gantt
|
|||||||
Describe gantt syntax :after doc1, 3d
|
Describe gantt syntax :after doc1, 3d
|
||||||
Add gantt diagram to demo page :20h
|
Add gantt diagram to demo page :20h
|
||||||
Add another diagram to demo page :48h
|
Add another diagram to demo page :48h
|
||||||
```
|
```
|
||||||
|
|
||||||
It is possible to set multiple depenendenies separated by space:
|
It is possible to set multiple depenendenies separated by space:
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user