0

Project structure

App
├───2023
│    ├───JULLY
│    │   ├───WEEK26.rst
│    │   └───WEEK27.rst
│    └───JUNE
│        └───WEEK25.rst
├───2022
│    ├───JULLY
│    │   ├───WEEK26.rst
│    │   └───WEEK27.rst
│    └───JUNE
│        └───WEEK25.rst
Doc
├───conf.py
├───modules.rst
├───index.rst

how can i reference automatically all folders and in recursive fashion in index.rst

I need to Display data in following format on HTML

2023
    JAN
        WEEK 1
        WEEK 2
        WEEK 3
        WEEK 4
    FEB
        WEEK 5
        WEEK 6
        WEEK 7
        WEEK 8
    MARCH
    APRIL

2023
    JAN
        WEEK 1
        WEEK 2
        WEEK 3
        WEEK 4
    
    FEB
        WEEK 5
        WEEK 6
        WEEK 7
        WEEK 8
    MARCH
    APRIL

How can achieve same structure in index.rst file without hard-coding whenever new file come in App i need to update same as it is in index.rst

I Tried

Documentation Sections
======================

   .. toctree::
      :maxdepth: 2
      :glob:

      ../app/2023/JUNE/*.rst

ERROR

WARNING: toctree glob pattern '../app/2023/JUNE/*.rst' didn't match any documents

0 Answers0