Skip to content

Commit

Permalink
馃 Add debug log message when encountering nested _toc.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkoch committed May 23, 2024
1 parent fa28618 commit 3c4e0d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/myst-cli/src/project/fromPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3c4e0d5

Please sign in to comment.