diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..2b09726b9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +version: 2 + +updates: +- package-ecosystem: npm + directory: / + target-branch: develop + schedule: + interval: daily +- package-ecosystem: github-actions + directory: / + target-branch: develop + schedule: + interval: daily diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index 077cc568b..5ed526bc5 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -1,3 +1,4 @@ 'Type: Bug / Error': 'bug/*' 'Type: Enhancement': 'feature/*' 'Type: Other': 'other/*' +'Type: Dependabot': 'dependabot/*' diff --git a/cypress/integration/rendering/gantt.spec.js b/cypress/integration/rendering/gantt.spec.js index 422af1165..02a9305e4 100644 --- a/cypress/integration/rendering/gantt.spec.js +++ b/cypress/integration/rendering/gantt.spec.js @@ -258,4 +258,40 @@ describe('Gantt diagram', () => { expect(svg).to.not.have.attr('style'); }); }); + it('should render a gantt diagram with data labels at the top when topAxis is true', () => { + renderGraph( + ` + gantt + dateFormat YYYY-MM-DD + axisFormat %d/%m + title Adding GANTT diagram to mermaid + excludes weekdays 2014-01-10 + + section A section + Completed task :done, des1, 2014-01-06,2014-01-08 + Active task :active, des2, 2014-01-09, 3d + Future task : des3, after des2, 5d + Future task2 : des4, after des3, 5d + + section Critical tasks + Completed task in the critical line :crit, done, 2014-01-06,24h + Implement parser and jison :crit, done, after des1, 2d + Create tests for parser :crit, active, 3d + Future task in critical line :crit, 5d + Create tests for renderer :2d + Add to mermaid :1d + + section Documentation + Describe gantt syntax :active, a1, after des1, 3d + Add gantt diagram to demo page :after a1 , 20h + Add another diagram to demo page :doc1, after a1 , 48h + + section Last section + Describe gantt syntax :after doc1, 3d + Add gantt diagram to demo page : 20h + Add another diagram to demo page : 48h + `, + { gantt: { topAxis: true } } + ); + }); }); diff --git a/docs/Configuration.md b/docs/Configuration.md new file mode 100644 index 000000000..41a37a473 --- /dev/null +++ b/docs/Configuration.md @@ -0,0 +1,19 @@ +# Configuration + +Configuration is the second half of Mermaid for one or for many diagrams. + +This section will briefly introduce the different methods of configuring of the behaviors and apperances of Mermaid Diagrams. +The Following are the most commonly used methods, and are all tied to the [Deployment](./n00b-gettingStarted.md) methods. + +1. Configuration Section in the [Live Editor](./Live-Editor.md). + + +2. The [Initialize call](), for when Mermaid is called via an API, or through a