Skip to content

Exception while rendering single Jinja file #1

@vlotorev

Description

@vlotorev

Collections configuration in conf.py contents:

collections = {
    "plugins": {
        "driver": "jinja",
        "source": "plugins.rst.jinja",
        "data": {
            "title": "Some title",
            "plugins": plugins,
            "projects": projects,
        },
        "target": "plugins.rst",
    },
}

Output:

sphinx-build -b html doc build/html-doc
Running Sphinx v3.0.4
loading translations [ru]... done
Read in collections ...
  plugins: Initialised
Clean collections ...
Executing collections ...
  plugins: (JinjaDriver) Creating 1 file/s from Jinja template...
Traceback (most recent call last):
  File ".../lib/python3.6/site-packages/sphinxcontrib/collections/drivers/jinja.py", line 122, in run
    with open(target, 'w') as target_file:
IsADirectoryError: [Errno 21] Is a directory: '...doc/_collections/plugins.rst'

The issue is:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions