diff --git a/packages/myst-cli/src/project/fromPath.ts b/packages/myst-cli/src/project/fromPath.ts index c149df37e..b2f91abc8 100644 --- a/packages/myst-cli/src/project/fromPath.ts +++ b/packages/myst-cli/src/project/fromPath.ts @@ -60,6 +60,8 @@ function projectPagesFromPath( if (contents.includes(join(path, '_toc.yml'))) { const prevLevel = (level < 2 ? 1 : level - 1) as PageLevels; try { + // TODO: We don't yet have a way to do nested tocs with new-style toc + session.log.debug(`Respecting legacy TOC in subdirectory: ${join(path, '_toc.yml')}`); return pagesFromSphinxTOC(session, path, prevLevel); } catch { if (!suppressWarnings) {