Skip to content

Commit dc4ceb4

Browse files
authored
feat: new custompages upload command (#1265)
1 parent 7c5f577 commit dc4ceb4

File tree

22 files changed

+1845
-29
lines changed

22 files changed

+1845
-29
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: This is the document title
3+
content:
4+
body: frontmatter body
5+
---
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: This is the document title
3+
appearance:
4+
fullscreen: true
5+
metadata:
6+
description: A description
7+
keywords: something, another
8+
title: document
9+
privacy:
10+
view: public
11+
---
12+
13+
Body

__tests__/__fixtures__/custompages/existing-docs/not-a-markdown-file

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: This is the document title
3+
---
4+
5+
Body
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: This is another document title
3+
---
4+
5+
Another body
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: This is another document title
3+
content:
4+
type: html
5+
---
6+
7+
<h1>Here we have an HTML file</h1>
8+
<p>This is a paragraph in an HTML file.</p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Body
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: This is the document title
3+
appearance:
4+
is-this-a-valid-property: nope
5+
---
6+
7+
Body
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: This is the document title
3+
hidden: true
4+
fullscreen: true
5+
---
6+
7+
Body
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: This is the document title
3+
slug: some-slug
4+
---
5+
6+
Body

__tests__/__fixtures__/custompages/mixed-docs/not-a-markdown-file

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: This is the document title
3+
---
4+
5+
Body
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: This is the document title
3+
---
4+
5+
Body
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: This is the document title
3+
slug: some-slug
4+
---
5+
6+
Body

0 commit comments

Comments
 (0)