diff --git a/.flake8 b/.flake8 index e81a59c..b371821 100644 --- a/.flake8 +++ b/.flake8 @@ -4,3 +4,4 @@ per-file-ignores = # sphinx-gallery examples use `# %%` section breaks, so imports # are not necessarily at the top of the file docs/examples/*.py:E402 + docs/notebooks/*.py:F811 diff --git a/docs/examples/quality/example.py b/docs/examples/quality/example.py index 796a479..dcf24a3 100644 --- a/docs/examples/quality/example.py +++ b/docs/examples/quality/example.py @@ -2,7 +2,7 @@ Multiplot ========= -.. marimo:: notebooks/example.py +.. marimo:: example.py :height: 800px :width: 100% :theme: light diff --git a/docs/examples/quality/example.rst b/docs/examples/quality/example.rst deleted file mode 100644 index b0719bd..0000000 --- a/docs/examples/quality/example.rst +++ /dev/null @@ -1,9 +0,0 @@ -Multiplot ---------- - -Visualizing automatic quality checks can reveal patterns and recoverable data. - -.. marimo:: notebooks/example.py - :height: 800px - :width: 100% - :theme: light diff --git a/docs/source/notebooks/example.py b/docs/notebooks/example.py similarity index 98% rename from docs/source/notebooks/example.py rename to docs/notebooks/example.py index 38a4262..aa47544 100644 --- a/docs/source/notebooks/example.py +++ b/docs/notebooks/example.py @@ -69,4 +69,4 @@ def __(mo): if __name__ == "__main__": - app.run() \ No newline at end of file + app.run() diff --git a/docs/source/conf.py b/docs/source/conf.py index 76565b0..ac1e5d9 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -39,7 +39,8 @@ "sphinx_marimo", # for including interactive marimo notebooks ] -marimo_notebook_dir = "notebooks" # Directory containing .py Marimo notebooks +# Directory containing Marimo notebooks, relative to conf.py file +marimo_notebook_dir = "../notebooks" myst_enable_extensions = ["colon_fence"] # for sphinx-design