Skip to content

assets folder not being generated when zensical project is in the docs folder #367

@tazr

Description

@tazr

Context

I work on a no-workspace monorepo where the documentation project is located within the docs folder itself.

Bug description

When the documentation project is located in the docs folder, the assets subfolder is not generated, which breaks the site. When the project is at the root of the repository, or in another subfolder, it works as expected. I don't have this issue with mkdocs.

Related links

AFAIK the documentation does not explicitly talk about non-root project and therefore I don't know if this is supported. However the fact that it works in other subfolders and for mkdocs let me hope it would.

Reproduction

tst_zensical.zip

Steps to reproduce

mkdir tst_zensical
cd tst_zensical
uv run --with zensical zensical new
mkdir foo
uv init --directory foo --bare --no-workspace
uv add --project foo zensical
uv run --project foo zensical serve  # site builds fine
uv init --directory docs --bare --no-workspace
uv add --project docs zensical
uv run --project docs zensical serve  # site is broken, `site/assets` directory is missing

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions