Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Chapter

<Scopes scopeTypeType="chapter" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Named paragraph

<Scopes scopeTypeType="namedParagraph" />
5 changes: 5 additions & 0 deletions packages/app-web-docs/src/docs/contributing/scopes/part.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Part

<Scopes scopeTypeType="part" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Section level five

<Scopes scopeTypeType="sectionLevelFive" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Section level four

<Scopes scopeTypeType="sectionLevelFour" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Section level one

<Scopes scopeTypeType="sectionLevelOne" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Section level six

<Scopes scopeTypeType="sectionLevelSix" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Section level three

<Scopes scopeTypeType="sectionLevelThree" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Section level two

<Scopes scopeTypeType="sectionLevelTwo" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Sub paragraph

<Scopes scopeTypeType="subParagraph" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Sub section

<Scopes scopeTypeType="subSection" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Scopes } from "./components/Scopes";

# Sub sub section

<Scopes scopeTypeType="subSubSection" />
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export const scopeSupportFacetInfos: Record<
scopeType: "environment",
},

chapter: {
description: "A document chapter",
scopeType: "chapter",
},
section: {
description: "A document section",
scopeType: "section",
Expand All @@ -49,6 +53,51 @@ export const scopeSupportFacetInfos: Record<
"sections",
"the parent section",
),
subSection: {
description: "A document subsection",
scopeType: "subSection",
},
subSubSection: {
description: "A document subsubsection",
scopeType: "subSubSection",
},
sectionLevelOne: {
description: "A level one section",
scopeType: "sectionLevelOne",
},
sectionLevelTwo: {
description: "A level two section",
scopeType: "sectionLevelTwo",
},
sectionLevelThree: {
description: "A level three section",
scopeType: "sectionLevelThree",
},
sectionLevelFour: {
description: "A level four section",
scopeType: "sectionLevelFour",
},
sectionLevelFive: {
description: "A level five section",
scopeType: "sectionLevelFive",
},
sectionLevelSix: {
description: "A level six section",
scopeType: "sectionLevelSix",
},
namedParagraph: {
description: "A named paragraph",
scopeType: "namedParagraph",
},
subParagraph: {
description: "A subparagraph",
scopeType: "subParagraph",
},
part: {
description: "A document part",
scopeType: "part",
},

list: {
description: "A list/array",
scopeType: "list",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,21 @@ export const scopeSupportFacets = [
"endTag",
"attribute",

"chapter",
Comment thread
AndreasArvidsson marked this conversation as resolved.
"section",
"section.iteration.document",
"section.iteration.parent",
"subSection",
"subSubSection",
"sectionLevelOne",
"sectionLevelTwo",
"sectionLevelThree",
"sectionLevelFour",
"sectionLevelFive",
"sectionLevelSix",
"namedParagraph",
"subParagraph",
"part",

"selector",
"unit",
Expand Down
48 changes: 48 additions & 0 deletions resources/fixtures/scopeSupportFacetInfos.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
- `branch.try` A try/catch/finally branch
- `branch.try.iteration` Iteration scope for try/catch/finally branches: the try-catch statement.

### chapter

- `chapter` A document chapter

### character

- `character` A single character in the document
Expand Down Expand Up @@ -275,6 +279,10 @@
- `namedFunction.iteration.document` Iteration scope for named functions: the entire document including leading and trailing empty lines.
- `namedFunction.method` A named method declaration in a class

### namedParagraph

- `namedParagraph` A named paragraph

### nonWhitespaceSequence

- `nonWhitespaceSequence` A sequence of non-whitespace characters
Expand All @@ -291,6 +299,10 @@

- `paragraph` A single paragraph(contiguous block of lines) in the document

### part

- `part` A document part

### regularExpression

- `regularExpression` A regular expression
Expand All @@ -301,6 +313,30 @@
- `section.iteration.document` Iteration scope for sections: the entire document including leading and trailing empty lines.
- `section.iteration.parent` Iteration scope for sections: the parent section.

### sectionLevelFive

- `sectionLevelFive` A level five section

### sectionLevelFour

- `sectionLevelFour` A level four section

### sectionLevelOne

- `sectionLevelOne` A level one section

### sectionLevelSix

- `sectionLevelSix` A level six section

### sectionLevelThree

- `sectionLevelThree` A level three section

### sectionLevelTwo

- `sectionLevelTwo` A level two section

### selector

- `selector` A selector in a css rule set
Expand Down Expand Up @@ -363,6 +399,18 @@
- `string.multiLine` A multi-line string
- `string.singleLine` A single-line string

### subParagraph

- `subParagraph` A subparagraph

### subSection

- `subSection` A document subsection

### subSubSection

- `subSubSection` A document subsubsection

### surroundingPair

- `surroundingPair` A delimiter pair, such as parentheses or quotes
Expand Down
Loading