Skip to content

Commit 8632f7d

Browse files
committed
[DOCS] Regenerate the class diagram in the README
The class diagram is (almost) unchanged to the output from `tasuku43/mermaid-class-diagram`, except for the kept `direction LR`. This is in preparation for adding a script for auto-creating the class diagram in #1297.
1 parent d250c86 commit 8632f7d

File tree

1 file changed

+87
-31
lines changed

1 file changed

+87
-31
lines changed

README.md

Lines changed: 87 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ class Sabberworm\CSS\CSSList\Document#4 (2) {
619619
## Class diagram
620620

621621
```mermaid
622+
%% start of the generated part
622623
classDiagram
623624
direction LR
624625
@@ -730,76 +731,131 @@ classDiagram
730731
CSSListItem <|-- AtRule: inheritance
731732
AtRule <|.. AtRuleBlockList: realization
732733
CSSBlockList <|-- AtRuleBlockList: inheritance
734+
AtRuleBlockList ..> OutputFormat: dependency
733735
AtRule <|.. AtRuleSet: realization
736+
AtRuleSet ..> OutputFormat: dependency
734737
RuleSet <|-- AtRuleSet: inheritance
735738
CSSList <|-- CSSBlockList: inheritance
736739
Renderable <|-- CSSElement: inheritance
740+
CSSFunction ..> OutputFormat: dependency
741+
CSSFunction ..> ParserState: dependency
737742
ValueList <|-- CSSFunction: inheritance
743+
CSSList ..> AtRuleBlockList: dependency
744+
CSSList ..> AtRuleSet: dependency
738745
CSSElement <|.. CSSList: realization
739746
CSSListItem <|.. CSSList: realization
747+
CSSList ..> CSSNamespace: dependency
740748
CSSList ..> Charset: dependency
741749
CSSList ..> Import: dependency
750+
CSSList ..> KeyFrame: dependency
751+
CSSList ..> OutputFormat: dependency
752+
CSSList ..> ParserState: dependency
742753
Positionable <|.. CSSList: realization
754+
CSSList ..> Selector: dependency
755+
CSSList ..> SourceException: dependency
756+
CSSList ..> UnexpectedTokenException: dependency
743757
Commentable <|-- CSSListItem: inheritance
744758
Renderable <|-- CSSListItem: inheritance
745759
AtRule <|.. CSSNamespace: realization
760+
CSSNamespace ..> OutputFormat: dependency
746761
Positionable <|.. CSSNamespace: realization
762+
CSSString ..> OutputFormat: dependency
763+
CSSString ..> ParserState: dependency
747764
PrimitiveValue <|-- CSSString: inheritance
765+
CSSString ..> SourceException: dependency
748766
CSSFunction <|-- CalcFunction: inheritance
767+
CalcFunction ..> CalcRuleValueList: dependency
768+
CalcFunction ..> ParserState: dependency
769+
CalcFunction ..> RuleValueList: dependency
770+
CalcFunction ..> UnexpectedTokenException: dependency
771+
CalcRuleValueList ..> OutputFormat: dependency
749772
RuleValueList <|-- CalcRuleValueList: inheritance
750773
AtRule <|.. Charset: realization
751774
Charset ..> CSSString: dependency
775+
Charset ..> OutputFormat: dependency
752776
Positionable <|.. Charset: realization
753777
CSSFunction <|-- Color: inheritance
778+
Color ..> OutputFormat: dependency
779+
Color ..> ParserState: dependency
780+
Color ..> Size: dependency
781+
Color ..> UnexpectedTokenException: dependency
782+
Comment ..> OutputFormat: dependency
754783
Positionable <|.. Comment: realization
755784
Renderable <|.. Comment: realization
785+
DeclarationBlock ..> KeyframeSelector: dependency
786+
DeclarationBlock ..> OutputException: dependency
787+
DeclarationBlock ..> OutputFormat: dependency
788+
DeclarationBlock ..> ParserState: dependency
756789
RuleSet <|-- DeclarationBlock: inheritance
757790
DeclarationBlock ..> Selector: dependency
791+
DeclarationBlock ..> UnexpectedTokenException: dependency
758792
CSSBlockList <|-- Document: inheritance
793+
Document ..> OutputFormat: dependency
794+
Document ..> ParserState: dependency
759795
AtRule <|.. Import: realization
796+
Import ..> OutputFormat: dependency
760797
Positionable <|.. Import: realization
798+
Import ..> URL: dependency
761799
AtRule <|.. KeyFrame: realization
762800
CSSList <|-- KeyFrame: inheritance
763-
764-
Positionable <|.. RuleSet: realization
765-
CSSElement <|.. RuleSet: realization
766-
CSSListItem <|.. RuleSet: realization
767-
RuleContainer <|.. RuleSet: realization
768-
Renderable <|.. Selector: realization
801+
KeyFrame ..> OutputFormat: dependency
769802
Selector <|-- KeyframeSelector: inheritance
770-
CSSElement <|.. Rule: realization
771-
Positionable <|.. Rule: realization
772-
Commentable <|.. Rule: realization
773-
SourceException <|-- OutputException: inheritance
774-
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
775-
Exception <|-- SourceException: inheritance
776-
Positionable <|.. SourceException: realization
777-
SourceException <|-- UnexpectedTokenException: inheritance
778-
PrimitiveValue <|-- URL: inheritance
779-
Value <|-- ValueList: inheritance
803+
LineName ..> OutputFormat: dependency
804+
LineName ..> ParserState: dependency
780805
ValueList <|-- LineName: inheritance
781-
CSSElement <|.. Value: realization
782-
Positionable <|.. Value: realization
783-
PrimitiveValue <|-- Size: inheritance
784-
Value <|-- PrimitiveValue: inheritance
785-
ValueList <|-- RuleValueList: inheritance
786-
CSSList ..> CSSList: dependency
787-
CSSList ..> Comment: dependency
788-
CSSList ..> RuleSet: dependency
789-
CSSNamespace ..> Comment: dependency
790-
Charset ..> Comment: dependency
791-
Import ..> Comment: dependency
792-
OutputFormat ..> OutputFormat: dependency
806+
SourceException <|-- OutputException: inheritance
793807
OutputFormat ..> OutputFormatter: dependency
808+
OutputFormatter ..> Commentable: dependency
809+
OutputFormatter ..> InvalidArgumentException: dependency
794810
OutputFormatter ..> OutputFormat: dependency
811+
Parser ..> Document: dependency
795812
Parser ..> ParserState: dependency
813+
ParserState ..> Anchor: dependency
814+
ParserState ..> Comment: dependency
796815
ParserState ..> Settings: dependency
797-
Rule ..> Comment: dependency
816+
ParserState ..> SourceException: dependency
817+
ParserState ..> UnexpectedEOFException: dependency
818+
ParserState ..> UnexpectedTokenException: dependency
819+
Value <|-- PrimitiveValue: inheritance
820+
Renderable ..> OutputFormat: dependency
821+
CSSElement <|.. Rule: realization
822+
Commentable <|.. Rule: realization
823+
Rule ..> OutputFormat: dependency
824+
Rule ..> ParserState: dependency
825+
Positionable <|.. Rule: realization
798826
Rule ..> RuleValueList: dependency
799-
RuleSet ..> Comment: dependency
827+
RuleContainer ..> Rule: dependency
828+
CSSElement <|.. RuleSet: realization
829+
CSSListItem <|.. RuleSet: realization
830+
RuleSet ..> OutputFormat: dependency
831+
RuleSet ..> ParserState: dependency
832+
Positionable <|.. RuleSet: realization
800833
RuleSet ..> Rule: dependency
834+
RuleContainer <|.. RuleSet: realization
835+
RuleSet ..> UnexpectedValueException: dependency
836+
ValueList <|-- RuleValueList: inheritance
837+
Selector ..> OutputFormat: dependency
838+
Renderable <|.. Selector: realization
839+
Size ..> OutputFormat: dependency
840+
Size ..> ParserState: dependency
841+
PrimitiveValue <|-- Size: inheritance
842+
Exception <|-- SourceException: inheritance
843+
Positionable <|.. SourceException: realization
801844
URL ..> CSSString: dependency
802-
ValueList ..> Value: dependency
845+
URL ..> OutputFormat: dependency
846+
URL ..> ParserState: dependency
847+
PrimitiveValue <|-- URL: inheritance
848+
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
849+
SourceException <|-- UnexpectedTokenException: inheritance
850+
CSSElement <|.. Value: realization
851+
Value ..> CSSFunction: dependency
852+
Value ..> ParserState: dependency
853+
Positionable <|.. Value: realization
854+
Value ..> RuleValueList: dependency
855+
Value ..> UnexpectedTokenException: dependency
856+
ValueList ..> OutputFormat: dependency
857+
Value <|-- ValueList: inheritance
858+
%% end of the generated part
803859
```
804860

805861
## API and deprecation policy

0 commit comments

Comments
 (0)