Skip to content

Conversation

choldgraf
Copy link
Collaborator

If there is no toctree defined in the site (ie, if it is a single-page site) then the TocTree function returns None and this breaks when we try to access .children. This PR accounts for this case.

@choldgraf
Copy link
Collaborator Author

rebased this one so that it can be merged. ping @jorisvandenbossche , I don't think this will be a controversial fix...

@jorisvandenbossche jorisvandenbossche changed the title fixing single-page case BUG: fixing single-page case Mar 20, 2020
@jorisvandenbossche jorisvandenbossche changed the title BUG: fixing single-page case BUG: fixing toctree of single-page case Mar 20, 2020
@jorisvandenbossche
Copy link
Member

We should probably start adding tests for some of those things (but I don't really look forward to testing sphinx apps .. I suppose sphinx has some machinery for testing)

@jorisvandenbossche jorisvandenbossche merged commit 8a76bc8 into pydata:master Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants