Skip to content

Commit 1da2852

Browse files
lkdvosclaude
andauthored
Fix docs build: TensorKitSectors doctests, re-export NamedSector (#566)
* Set DocTestSetup for TensorKitSectors docstrings TensorKitSectors v0.3.10 added doctests for `NamedSector`, which TensorKit does not re-export, so they failed when doctested as part of `modules`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Re-export NamedSector and depend on TensorKitSectors in docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a2496d4 commit 1da2852

6 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎Project.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Printf = "1"
6666
Random = "1"
6767
ScopedValues = "1.3.0"
6868
Strided = "2.6.1"
69-
TensorKitSectors = "0.3.7"
69+
TensorKitSectors = "0.3.10"
7070
TensorOperations = "5.5.2, 5.6"
7171
TimerOutputs = "1"
7272
TupleTools = "1.5"

‎docs/Project.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
88
SUNRepresentations = "1a50b95c-7aac-476d-a9ce-2bfc675fc617"
99
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
10+
TensorKitSectors = "13a9c161-d5da-41f0-bcbd-e1a08ae0647f"
1011
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1112
WignerSymbols = "9f57e263-0b3d-5e2e-b1be-24f2bb48858b"
1213

@@ -17,5 +18,6 @@ TensorKit = {path = ".."}
1718
Documenter = "1"
1819
DocumenterInterLinks = "1"
1920
SUNRepresentations = "0.4"
21+
TensorKitSectors = "0.3.10"
2022
Test = "1"
2123
WignerSymbols = "1,2"

‎docs/make.jl‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using Documenter
1010
using Random
1111
using TensorKit
1212
using TensorKit: FusionTreePair, FusionTreeBlock, Index2Tuple, IndexTuple
13-
using TensorKit.TensorKitSectors
13+
using TensorKitSectors
1414
using TensorKit.MatrixAlgebraKit
1515
using DocumenterInterLinks
1616

@@ -57,6 +57,9 @@ mathengine = MathJax3(
5757

5858
# docstrings don't need `using TensorKit`
5959
DocMeta.setdocmeta!(TensorKit, :DocTestSetup, :(using TensorKit); recursive = true)
60+
DocMeta.setdocmeta!(
61+
TensorKitSectors, :DocTestSetup, :(using TensorKitSectors); recursive = true
62+
)
6063

6164
makedocs(;
6265
modules = [TensorKit, TensorKitSectors],

‎docs/src/Changelog.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,21 @@ When releasing a new version, move the "Unreleased" changes to a new version sec
2222

2323
### Added
2424

25+
- Re-export `NamedSector` and `@NamedSector` from TensorKitSectors
26+
2527
### Changed
2628

2729
- Extend VectorInterface compat to include v0.7
30+
- Require TensorKitSectors v0.3.10
2831

2932
### Deprecated
3033

3134
### Removed
3235

3336
### Fixed
3437

38+
- Documentation build failing on TensorKitSectors doctests
39+
3540
### Performance
3641

3742
## [0.17.2](https://github.com/QuantumKitHub/TensorKit.jl/compare/v0.17.1...v0.17.2) - 2026-09-20

‎docs/src/lib/sectors.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ PlanarTrivial
3434
IsingBimodule
3535
TimeReversed
3636
ProductSector
37+
NamedSector
38+
@NamedSector
3739
```
3840

3941
Several more concrete sector types can be found in other packages such as [SUNRepresentations.jl](https://github.com/QuantumKitHub/SUNRepresentations.jl), [CategoryData.jl](https://github.com/QuantumKitHub/CategoryData.jl), [QWignerSymbols.jl](https://github.com/lkdvos/QWignerSymbols.jl), ...:

‎src/TensorKit.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export UnitStyle, SimpleUnit, GenericUnit
1414
export BraidingStyle, SymmetricBraiding, Bosonic, Fermionic, Anyonic, NoBraiding, HasBraiding
1515
export Trivial, Z2Irrep, Z3Irrep, Z4Irrep, ZNIrrep, LargeZNIrrep
1616
export ZNElement, Z2Element, Z3Element, Z4Element, DNIrrep, A4Irrep, U1Irrep, SU2Irrep, CU1Irrep
17-
export ProductSector, TimeReversed
17+
export ProductSector, NamedSector, @NamedSector, TimeReversed
1818
export FermionParity, FermionNumber, FermionSpin
1919
export FibonacciAnyon, IsingAnyon, IsingBimodule
2020

0 commit comments

Comments
 (0)