Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit c700fee

Browse files
authored
fix(contented-processor): fix getPipelineUniqueKey (#552)
<!-- Thanks for sending a pull request! --> #### What this PR does / why we need it: As per title.
1 parent 50c3cac commit c700fee

File tree

4 files changed

+51
-10
lines changed

4 files changed

+51
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ coverage
2424

2525
# contented
2626
.contented
27+
.git

packages/contented-example/docs/04-markdown.md

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,46 @@ custom prefix. If you used absolute links, the links would be broken.
138138
It is also highly advised against linking to another `"Type"` as you're assuming that the other site will be
139139
structured the same way as your site with the same prefix or even publishing that `"Type"` at all.
140140

141+
## Table
142+
143+
| Header 1 | Header 2 | Header 3 |
144+
| -------- | -------- | -------- |
145+
| Cell 1 | Cell 2 | Cell 3 |
146+
147+
```markdown
148+
| Header 1 | Header 2 | Header 3 |
149+
| -------- | -------- | -------- |
150+
| Cell 1 | Cell 2 | Cell 3 |
151+
```
152+
153+
:::div{class="table-fixed"}
154+
| Table Fixed | Header 2 | Header 3 |
155+
|----------|----------|----------|
156+
| Cell 1 | Cell 2 | Cell 3 |
157+
:::
158+
159+
```markdown
160+
:::div{class="table-fixed"}
161+
| Table Fixed | Header 2 | Header 3 |
162+
|----------|----------|----------|
163+
| Cell 1 | Cell 2 | Cell 3 |
164+
:::
165+
```
166+
167+
:::div{class="table-auto"}
168+
| Table Auto | Header 2 | Header 3 |
169+
|----------|----------|----------|
170+
| Cell 1 | Cell 2 | Cell 3 |
171+
:::
172+
173+
```markdown
174+
:::div{class="table-auto"}
175+
| Table Auto | Header 2 | Header 3 |
176+
|----------|----------|----------|
177+
| Cell 1 | Cell 2 | Cell 3 |
178+
:::
179+
```
180+
141181
## Admonitions
142182

143183
Admonitions with `remark-directive` and `remark-directive-rehype`.
@@ -211,9 +251,9 @@ graph LR
211251
````
212252

213253
```mermaid
214-
graph TD;
215-
A --> B;
216-
A --> C;
217-
B --> D;
218-
C --> D;
254+
graph TD
255+
A --> B;
256+
A --> C;
257+
B --> D;
258+
C --> D;
219259
```

packages/contented-processor/src/ContentedProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ export class ContentedProcessor {
165165

166166
function getPipelineUniqueKey(pipeline: Pipeline) {
167167
if (typeof pipeline.pattern === 'string') {
168-
return `${pipeline.type}:${pipeline.pattern}`;
168+
return `${pipeline.type}:${pipeline.dir ?? ''}:${pipeline.pattern}`;
169169
}
170170

171-
return `${pipeline.type}:${pipeline.pattern.join(',')}`;
171+
return `${pipeline.type}:${pipeline.dir ?? ''}:${pipeline.pattern.join(',')}`;
172172
}
173173

174174
function cloneFileIndex(index: FileIndex): FileIndex {

packages/contented/src/commands/contented/ContentedWatcher.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export class ContentedWatcher extends ContentedWalker {
2727
'**/.yarn',
2828
'**/.cache',
2929
'**/.npm',
30-
'.git',
31-
'.idea',
32-
'.vscode',
30+
'**/.git',
31+
'**/.idea',
32+
'**/.vscode',
3333
],
3434
});
3535
}

0 commit comments

Comments
 (0)