How to include md files using myst-parser in folders other than source folder made by sphinx quickstart?

34 views
Skip to first unread message

Mona Jalal

unread,
Aug 6, 2024, 10:06:31 AM8/6/24
to sphinx...@googlegroups.com
Good morning, 

I want to add md files from other folders other than the ones in the source folder created by sphinx quickstart.

However, when I use the :glob: directive, it only catches the md files inside the source folder. As an example, when I use ../* it doesn't capture the md files in the folder previous to source folder (the root folder where the source folder is located). I want to have the freedom to use md files using glob directive with relative path such as ../.../* or ../* 

Currently this is how the index.rst inside the source folder is:


I am aware of it being able to find md files inside source folder using **/* however I need to figure it for folders before source. like .. or ../../ or ../../doc_folders_a ../../doc_folders_b
.. toctree::
:maxdepth: 2
:glob:

*
../*
Reply all
Reply to author
Forward
0 new messages