Discover new Document on a Subdir

22 views
Skip to first unread message

Marco Longo

unread,
Apr 23, 2020, 10:11:49 AM4/23/20
to sphinx-users
Hi comunity,

I'm almost new and so my question should be not so smart for someone, but i'm not able to find the correct solution on the web

I would like to have a fixed structure of directory 

DIR1
DIR2
DIR3
..

I would like to copy a Folder TEST1 (already created with file and image e.g. ) with inside a Doc.MD  and put inside DIR1

should i avoid to change any index.rst and what is the correct configuration for this scenario .

After insert
\DIR1
     \TEST1    (Doc.MD) inside)


thani would like to run make html  without add TEST1 manually in the index.rst

What I should need is the correct file in the root
and then the correct fie in each DIR1 , DIR2  to obtain and discover new folder with inside the new file doc.

Thank you
Marco Longo

Matt from Documatt

unread,
Apr 24, 2020, 2:56:12 AM4/24/20
to sphinx-users
Hi Marco,
welcome to the mailing list. I would like to help you but rarely understand your problem. Maybe others also don't understand. What exactly is your question or you do you want to achieve, please?

Matt

Peter Burdine

unread,
Apr 29, 2020, 9:18:32 AM4/29/20
to sphinx-users
Marco,

Are you looking for globbing in the toctree?  Eg:

.. toctree::
   
:glob:


    DIR1
/*
    DIR2/*
    DIR3/*


This will include ALL the files from DIR1 (sorted in alphanumeric order) then DIR2 then DIR3, etc.

--Peter
Reply all
Reply to author
Forward
0 new messages