Skip to content

Commit 3066495

Browse files
authored
Fix: have table of contents render the tensors contents correctly (#527)
1 parent 1c15631 commit 3066495

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎docs/make.jl‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,19 @@ links = InterLinks(
2020
"TensorKitSectors" => "https://quantumkithub.github.io/TensorKitSectors.jl/dev/"
2121
)
2222

23+
TENSOR_PAGES = [
24+
"man/tensors.md", "man/linearalgebra.md", "man/indexmanipulations.md",
25+
"man/factorizations.md", "man/contractions.md", "man/precompilation.md",
26+
]
27+
2328
pages = [
2429
"Home" => "index.md",
2530
"Manual" => [
2631
"man/intro.md", "man/tutorial.md",
2732
"man/spaces.md", "man/symmetries.md",
2833
"man/sectors.md", "man/gradedspaces.md",
2934
"man/fusiontrees.md",
30-
"Tensors" => [
31-
"man/tensors.md",
32-
"man/linearalgebra.md",
33-
"man/indexmanipulations.md",
34-
"man/factorizations.md",
35-
"man/contractions.md",
36-
"man/precompilation.md",
37-
],
35+
"Tensors" => TENSOR_PAGES,
3836
],
3937
"Library" => [
4038
"lib/sectors.md", "lib/fusiontrees.md",

‎docs/src/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Support for storing and manipulating tensors on Nvidia and AMD GPUs is currently
2424
## Contents of the manual
2525

2626
```@contents
27-
Pages = ["man/intro.md", "man/spaces.md", "man/symmetries.md", "man/sectors.md", "man/gradedspaces.md", "man/fusiontrees.md", "man/tensors.md", "man/tensormanipulations.md"]
27+
Pages = ["man/intro.md", "man/spaces.md", "man/symmetries.md", "man/sectors.md", "man/gradedspaces.md", "man/fusiontrees.md", Main.TENSOR_PAGES...]
2828
Depth = 2
2929
```
3030

0 commit comments

Comments
 (0)