Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File path on toc does't seem to work when pointing outside of book folder #2124

Open
HealthyPear opened this issue Feb 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@HealthyPear
Copy link

Describe the bug

context

I am building a book from jupytext py:percent files stored in a src folder outside of the book folder

expectation
I expected it to work since the documentation of the file TOC key reports

A path to a file that contains the content for a chapter / section. These paths are relative to the root: document.

bug
[...]/book_example/intro.md:: WARNING: toctree contains reference to nonexisting document '../some/path/notebook_name' [etoc.ref]

$ jupyter-book build mybook

Reproduce the bug

make a directory structure like so

├── book_template
           ├── _config.yml
           ├── _toc.yml
           ├── intro.md
├── notebooks
           ├── some
                         ├── path
                                       ├── notebook.py

and build a book as per documentation

List your environment

Jupyter Book      : 0.15.1
External ToC      : 0.3.1
MyST-Parser       : 0.18.1
MyST-NB           : 0.17.2
Sphinx Book Theme : 1.0.1
Jupyter-Cache     : 0.6.1
NbClient          : 0.7.4
@HealthyPear HealthyPear added the bug Something isn't working label Feb 24, 2024
@sjspence
Copy link

I also observed this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants