Skip to content

Commit 8a33082

Browse files
committed
Add test case for titles
1 parent 5be981d commit 8a33082

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

tests/_toc_files/basic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ subtrees:
66
numbered: true
77
entries:
88
- file: doc1
9+
title: "custom"
910
- file: doc2
1011
- file: doc3
1112
subtrees:

tests/test_parsing/test_create_toc_dict_basic_.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
entries:
22
- file: doc1
3+
title: custom
34
- file: doc2
45
- entries:
56
- file: subfolder/doc4

tests/test_parsing/test_file_to_sitemap_basic_.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ documents:
22
doc1:
33
docname: doc1
44
subtrees: []
5-
title: null
5+
title: custom
66
doc2:
77
docname: doc2
88
subtrees: []
@@ -29,7 +29,7 @@ documents:
2929
hidden: true
3030
items:
3131
- path: doc1
32-
title: null
32+
title: custom
3333
- path: doc2
3434
title: null
3535
- path: doc3

tests/test_sphinx/test_success_basic_.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<title>
44
Heading: intro.rst
55
<compound classes="toctree-wrapper">
6-
<toctree caption="Part Caption" entries="(None,\ 'doc1') (None,\ 'doc2') (None,\ 'doc3')" glob="False" hidden="True" includefiles="doc1 doc2 doc3" includehidden="False" maxdepth="-1" numbered="999" parent="intro" rawcaption="Part Caption" titlesonly="True">
6+
<toctree caption="Part Caption" entries="('custom',\ 'doc1') (None,\ 'doc2') (None,\ 'doc3')" glob="False" hidden="True" includefiles="doc1 doc2 doc3" includehidden="False" maxdepth="-1" numbered="999" parent="intro" rawcaption="Part Caption" titlesonly="True">

0 commit comments

Comments
 (0)