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

Exception while rendering single Jinja file #1

Open
vlotorev opened this issue Jul 10, 2020 · 1 comment
Open

Exception while rendering single Jinja file #1

vlotorev opened this issue Jul 10, 2020 · 1 comment

Comments

@vlotorev
Copy link

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:

@jgarte
Copy link
Contributor

jgarte commented Feb 27, 2023

Hi, is this still an issue?

@vlotorev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants