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

update mkdocs-gallery #507

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ dependencies:
- mkdocstrings[python]
- mkdocs-gen-files
- material-plausible-plugin
- mkdocs-gallery >=0.10
- mkdocs-gallery >=0.10.3
- mdx_truly_sane_lists
10 changes: 1 addition & 9 deletions scripts/docs/gen_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import contextlib
import io
import json
Expand All @@ -10,14 +9,7 @@

from ragna.deploy import Config
from ragna.deploy._api import app as api_app

# This is currently needed when using top-level async code in the galleries. It has to
# be placed before the ragna.deploy._cli import as this ultimately import panel, which
# uses async functionality that is no longer possible.
# See https://github.com/smarie/mkdocs-gallery/issues/93
asyncio.get_event_loop_policy()._local._set_called = False

from ragna.deploy._cli import app as cli_app # noqa: E402
from ragna.deploy._cli import app as cli_app


def main():
Expand Down
Loading