Skip to content

Commit

Permalink
fix: don't ignore input directory in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yndx-birman committed Sep 16, 2021
1 parent 1c59e6f commit 5591094
Show file tree
Hide file tree
Showing 21 changed files with 68 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ build
input
output
output-html
!test/**/input
!tests/**/input

# libraries
npm-debug.log
Expand Down
1 change: 1 addition & 0 deletions tests/mocks/single-page/test1/input/.yfm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
singlePage: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## First include

{% include [Second](./second-include.md) %}

{% include [Third](./third-include.md) %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Second include

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
##Third include

5 changes: 5 additions & 0 deletions tests/mocks/single-page/test1/input/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# First page

{% include [Second](_includes/first-include.md) %}

{% include [Third](_includes/third-include.md) %}
5 changes: 5 additions & 0 deletions tests/mocks/single-page/test1/input/pages/third.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Third page

{% include [Second](../_includes/second-include.md) %}

{% include [Third](../_includes/third-include.md) %}
1 change: 1 addition & 0 deletions tests/mocks/single-page/test1/input/second.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Second page
10 changes: 10 additions & 0 deletions tests/mocks/single-page/test1/input/toc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Single page
items:
- name: First
href: index.md

- name: Second
href: second.md

- name: Third
href: pages/third.md
1 change: 1 addition & 0 deletions tests/mocks/single-page/test2/input/.yfm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
singlePage: true
6 changes: 6 additions & 0 deletions tests/mocks/single-page/test2/input/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: First page
description: First page
links:
- title: Second page
description: Second page
href: second.md
1 change: 1 addition & 0 deletions tests/mocks/single-page/test2/input/second.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Second page
5 changes: 5 additions & 0 deletions tests/mocks/single-page/test2/input/toc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: Single page
href: index.yaml
items:
- name: Second
href: second.md
1 change: 1 addition & 0 deletions tests/mocks/single-page/test3/input/.yfm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
singlePage: true
6 changes: 6 additions & 0 deletions tests/mocks/single-page/test3/input/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: First page
description: First page
links:
- title: Second page
description: Second page
href: second.md
1 change: 1 addition & 0 deletions tests/mocks/single-page/test3/input/second.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Second page
1 change: 1 addition & 0 deletions tests/mocks/single-page/test3/input/service1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Service 1
4 changes: 4 additions & 0 deletions tests/mocks/single-page/test3/input/service1/toc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Service 1
items:
- name: First
href: index.md
1 change: 1 addition & 0 deletions tests/mocks/single-page/test3/input/service2/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Service 2
4 changes: 4 additions & 0 deletions tests/mocks/single-page/test3/input/service2/toc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Service 2
items:
- name: First
href: index.md
5 changes: 5 additions & 0 deletions tests/mocks/single-page/test3/input/toc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: Single page
href: index.yaml
items:
- name: Second
href: second.md

0 comments on commit 5591094

Please sign in to comment.