Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: SEO improvements (#8448)

Myles Scolnick20b03dc8c89d
diff --git a/docs/404.md b/docs/404.md
new file mode 100644
index 0000000000..a270446627
--- /dev/null
+++ b/docs/404.md
@@ -0,0 +1,21 @@
+---
+title: Page Not Found
+description: The page you're looking for doesn't exist. Find what you need in the marimo documentation.
+hide:
+ - navigation
+ - toc
+---
+
+# Page Not Found
+
+The page you're looking for doesn't exist or has been moved.
+
+**Try one of these instead:**
+
+- [Getting Started](getting_started/index.md) - Install marimo and learn the basics
+- [User Guide](guides/index.md) - In-depth guides on marimo features
+- [API Reference](api/index.md) - Complete API documentation
+- [Recipes](recipes.md) - Code snippets for common tasks
+- [FAQ](faq.md) - Frequently asked questions
+
+Or use the **search bar** above to find what you're looking for.
diff --git a/docs/api/index.md b/docs/api/index.md
index 4b2faf0fe3..094f6a6919 100644
--- a/docs/api/index.md
+++ b/docs/api/index.md
@@ -1,3 +1,7 @@
+---
+description: "Complete API reference for the marimo Python library: interactive inputs, markdown, layouts, media, control flow, and more."
+---
+
# API Reference
Use the marimo library in marimo notebooks (`import marimo as mo`) to
diff --git a/docs/api/inputs/anywidget.md b/docs/api/inputs/anywidget.md
index 07b222e141..5e92e397d8 100644
--- a/docs/api/inputs/anywidget.md
+++ b/docs/api/inputs/anywidget.md
@@ -94,7 +94,7 @@ If you're eager to build your own widgets and want to dive deeper you may enjoy
- Before making your own widget, it would be best to check and see if the widget already exists. The [widgets section on the marimo gallery](https://marimo.io/gallery/widgets) as well as the [gallery on anywidget.dev](https://anywidget.dev/en/community/) give you a good overview of what's out there.
- The [wigglystuff repository](https://github.com/koaning/wigglystuff) has many smaller widgets that could serve as an excellent starting point.
-- We've noticed that coding agents are getting better at generating these anywidgets on the fly. If you're keen to explore that you can check out our [prompts section](/guides/generate_with_ai/prompts/#anywidget) for a quickstart.
+- We've noticed that coding agents are getting better at generating these anywidgets on the fly. If you're keen to explore that you can check out our [prompts section](../../guides/generate_with_ai/prompts.md#anywidget) for a quickstart.
- You may also enjoy [this livestream on the marimo YouTube channel](https://www.youtube.com/watch?v=3V1r5sKnyz8) on building anywidgets.
---
diff --git a/docs/api/inputs/index.md b/docs/api/inputs/index.md
index 4bbb42458a..e8ccd01946 100644
--- a/docs/api/inputs/index.md
+++ b/docs/api/inputs/index.md
@@ -1,3 +1,7 @@
+---
+description: "marimo interactive UI inputs: sliders, dropdowns, tables, checkboxes, text fields, chat, and more. Build powerful notebook interfaces with marimo.ui."
+---
+
# Inputs
marimo comes packaged with interactive UI elements that you can use to build
diff --git a/docs/faq.md b/docs/faq.md
index 4f82e5e9a6..3d1956853b 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -1,4 +1,5 @@
---
+description: "Frequently asked questions about marimo: how it differs from Jupyter, why reactive execution, deployment, and troubleshooting."
hide:
- navigation
---
diff --git a/docs/getting_started/index.md b/docs/getting_started/index.md
index 19e7bacf67..7bb108232c 100644
--- a/docs/getting_started/index.md
+++ b/docs/getting_started/index.md
@@ -1,3 +1,7 @@
+---
+description: "Get started with marimo: install the reactive Python notebook, learn the basics, and explore key concepts."
+---
+
# Getting Started
These tutorials will help you get started with marimo
diff --git a/docs/getting_started/installation.md b/docs/getting_started/installation.md
index f09ea36ae7..f8150ee051 100644
--- a/docs/getting_started/installation.md
+++ b/docs/getting_started/installation.md
@@ -1,3 +1,7 @@
+---
+description: "Install marimo with pip, uv, or conda. Set up a virtual environment and get started with the reactive Python notebook."
+---
+
# Installation
Before installing marimo, we recommend creating and activating a Python
diff --git a/docs/getting_started/key_concepts.md b/docs/getting_started/key_concepts.md
index fc1f2b4163..25b74c5253 100644
--- a/docs/getting_started/key_concepts.md
+++ b/docs/getting_started/key_concepts.md
@@ -1,3 +1,7 @@
+---
+description: "Learn marimo's key concepts: reactive notebooks, interactive elements, Python scripts, web apps, and how they work together."
+---
+
# Key concepts
This page covers marimo's key concepts:
diff --git a/docs/getting_started/quickstart.md b/docs/getting_started/quickstart.md
index 3597005993..af9bcbab0c 100644
--- a/docs/getting_started/quickstart.md
+++ b/docs/getting_started/quickstart.md
@@ -1,3 +1,7 @@
+---
+description: "Quickstart guide for marimo: create notebooks, run tutorials, execute as apps and scripts, and convert Jupyter notebooks."
+---
+
# Quickstart
Installing marimo gets you the `marimo` command-line interface (CLI), the entry
diff --git a/docs/guides/apps.md b/docs/guides/apps.md
index 3c6a814227..0d3ed5966c 100644
--- a/docs/guides/apps.md
+++ b/docs/guides/apps.md
@@ -1,3 +1,7 @@
+---
+description: "Deploy marimo notebooks as interactive web apps. Customize layouts with drag-and-drop, add authentication, and share with users."
+---
+
# Run as an app
The marimo CLI lets you run any notebook as an app: `marimo run` lays out
diff --git a/docs/guides/expensive_notebooks.md b/docs/guides/expensive_notebooks.md
index 4d6bf8a40b..f7e4ffd36a 100644
--- a/docs/guides/expensive_notebooks.md
+++ b/docs/guides/expensive_notebooks.md
@@ -45,7 +45,7 @@ def __():
If you habitually work with very expensive notebooks, you can
[disable automatic
-execution](../guides/configuration/runtime_configuration.md#disable-autorun-on-cell-change-lazy-execution). When
+execution](../guides/configuration/runtime_configuration.md#on-cell-change-disabling-autorun-on-cell-change-lazy-execution). When
automatic execution is disabled, when you run a cell, marimo
marks dependent cells as stale instead of running them automatically.
diff --git a/docs/guides/generate_with_ai/skills.md b/docs/guides/generate_with_ai/skills.md
index 067bc976af..1210b71a5e 100644
--- a/docs/guides/generate_with_ai/skills.md
+++ b/docs/guides/generate_with_ai/skills.md
@@ -20,10 +20,10 @@ npx skills add marimo-team/skills
When using marimo with Claude Code, configure the marimo editor to
automatically reload when Claude edits your notebook by starting
marimo with the `watch` flag: `marimo edit --watch notebook.py`.
- (Learn more in our [watching guide](/guides/editor_features/watching.md).)
+ (Learn more in our [watching guide](../editor_features/watching.md).)
You can also configure marimo to automatically reload affected
cells when auxiliary files change on disk using
- [module autoreloading](/guides/editor_features/module_autoreloading.md).
+ [module autoreloading](../editor_features/module_autoreloading.md).
## What are skills?
diff --git a/docs/guides/generate_with_ai/using_claude_code.md b/docs/guides/generate_with_ai/using_claude_code.md
index 33d6198282..b1d5fec039 100644
--- a/docs/guides/generate_with_ai/using_claude_code.md
+++ b/docs/guides/generate_with_ai/using_claude_code.md
@@ -4,7 +4,7 @@ Claude lets you customise the marimo editing experience with its agent. This pag
[Slash Commands](https://code.claude.com/docs/en/slash-commands) allow you to predefine specific prompts that you can refer to during a conversation with Claude. You store these either in the `~/.claude/commands/` personal folder or in the `.claude/commands/` local folder of the project.
-Here's an example of a slash command that runs the [`marimo check`](../../../cli/#marimo-check) linter on a notebook of your choice. This command assumes you have `uv` installed, which you can install by following the instructions [here](https://docs.astral.sh/uv/getting-started/installation/).
+Here's an example of a slash command that runs the [`marimo check`](../../cli.md#marimo-check) linter on a notebook of your choice. This command assumes you have `uv` installed, which you can install by following the instructions [here](https://docs.astral.sh/uv/getting-started/installation/).
```
---
@@ -24,7 +24,7 @@ $ARGUMENTS, then fix any warnings or errors shown in the output above. Do
not make edits or read the file if there are no issues.
```
-When you add this file to `~/.claude/commands/marimo-check.md` you will be able to trigger it by typing `/marimo-check notebook.py`. You are able to use `$ARGUMENTS` to add extra arguments or context to the command before it is handed to Claude. Also note that commands can run bash like !`uvx marimo check --fix $ARGUMENTS || true` beforehand. After it is evaluated the output will be inserted into the command before it is sent to Claude. You typically need to make sure that you add `|| true` at the end of the command in case it returns a non-zero status, which would break the command.
+When you add this file to `~/.claude/commands/marimo-check.md` you will be able to trigger it by typing `/marimo-check notebook.py`. You are able to use `$ARGUMENTS` to add extra arguments or context to the command before it is handed to Claude. Also note that commands can run bash like !`uvx marimo check --fix $ARGUMENTS || true` beforehand. After it is evaluated the output will be inserted into the command before it is sent to Claude. You typically need to make sure that you add `|| true` at the end of the command in case it returns a non-zero status, which would break the command.
There are more elaborate things you might do with these slash commands, to learn more you can check [the documentation](https://code.claude.com/docs/en/slash-commands#custom-slash-commands).
@@ -87,7 +87,7 @@ You can also choose to expand these skills by referring to a script that it can
### Hooks
-[Hooks](https://code.claude.com/docs/en/hooks) allow you to automatically run scripts when Claude uses a specific tool. They are useful if you want to automatically run a linter, via [`marimo check`](../../../cli/#marimo-check), every single time a marimo notebook is changed. Our default [`CLAUDE.md`](../../generate_with_ai/prompts/#agentsmd-and-claudemd) file already points out to the LLM that it should run the `marimo check` command but hooks offer the most robust mechanism to enforce this behavior.
+[Hooks](https://code.claude.com/docs/en/hooks) allow you to automatically run scripts when Claude uses a specific tool. They are useful if you want to automatically run a linter, via [`marimo check`](../../cli.md#marimo-check), every single time a marimo notebook is changed. Our default [`CLAUDE.md`](prompts.md#agentsmd-and-claudemd) file already points out to the LLM that it should run the `marimo check` command but hooks offer the most robust mechanism to enforce this behavior.
To configure a hook, you can add a definition to your global Claude settings in `~/.claude/settings.json` or locally in your project `.claude/settings.json`.
diff --git a/docs/guides/index.md b/docs/guides/index.md
index 341bd09426..db30a90cf8 100644
--- a/docs/guides/index.md
+++ b/docs/guides/index.md
@@ -1,3 +1,7 @@
+---
+description: "In-depth guides on marimo's core concepts: reactivity, interactive elements, data visualization, deployment, and more."
+---
+
# Guides
These guides cover marimo's core concepts.
diff --git a/docs/guides/interactivity.md b/docs/guides/interactivity.md
index 6283465ac6..937755e2d5 100644
--- a/docs/guides/interactivity.md
+++ b/docs/guides/interactivity.md
@@ -1,3 +1,7 @@
+---
+description: "Build interactive notebooks with marimo's UI elements: sliders, dropdowns, tables, and more. No callbacks required."
+---
+
# Interactive elements
One of marimo's most powerful features is its first-class support for
diff --git a/docs/guides/publishing/opengraph.md b/docs/guides/publishing/opengraph.md
index 4b63acd16a..b3f34ac1f7 100644
--- a/docs/guides/publishing/opengraph.md
+++ b/docs/guides/publishing/opengraph.md
@@ -2,7 +2,7 @@
marimo can attach OpenGraph metadata to notebooks for:
-- previews in the `marimo run <directory>` [gallery](../apps.md#gallery-mode)
+- previews in the `marimo run <directory>` [gallery](../apps.md#gallery)
- link previews (OpenGraph tags in the notebook HTML)
You configure this metadata in your notebook file using inline script metadata (PEP 723), under `[tool.marimo.opengraph]`.
diff --git a/docs/guides/publishing/thumbnails.md b/docs/guides/publishing/thumbnails.md
index 2b29e92fa4..a3072ddb90 100644
--- a/docs/guides/publishing/thumbnails.md
+++ b/docs/guides/publishing/thumbnails.md
@@ -1,6 +1,6 @@
# Thumbnails
-Generate screenshot-based thumbnail images for notebooks, used by [OpenGraph previews](opengraph.md) and cards in [gallery mode](../apps.md#gallery-mode).
+Generate screenshot-based thumbnail images for notebooks, used by [OpenGraph previews](opengraph.md) and cards in [gallery mode](../apps.md#gallery).
```bash
marimo export thumbnail notebook.py
diff --git a/docs/guides/reactivity.md b/docs/guides/reactivity.md
index b3f6adfc88..4cea874e47 100644
--- a/docs/guides/reactivity.md
+++ b/docs/guides/reactivity.md
@@ -1,3 +1,7 @@
+---
+description: "Learn how marimo's reactive execution model works: run a cell and all dependent cells update automatically, keeping code and outputs consistent."
+---
+
# Running cells
marimo _reacts_ to your code changes: run a cell, and all other cells that
diff --git a/docs/guides/troubleshooting.md b/docs/guides/troubleshooting.md
index be6aac190e..57c088bd99 100644
--- a/docs/guides/troubleshooting.md
+++ b/docs/guides/troubleshooting.md
@@ -43,7 +43,7 @@ defining `f` depends on the two cells above and connects to the one below with
Alternatively, you can open the [dependency
graph](editor_features/dataflow.md#graph-view) or [variables
-panel](editor_features/dataflow.md#variables-panel) in the sidebar.
+panel](editor_features/dataflow.md#variables-explorer) in the sidebar.
<div align="center">
<figure>
diff --git a/docs/guides/wasm.md b/docs/guides/wasm.md
index c131badb0c..77d377ae73 100644
--- a/docs/guides/wasm.md
+++ b/docs/guides/wasm.md
@@ -1,3 +1,7 @@
+---
+description: "Run marimo notebooks entirely in the browser with WebAssembly. No backend required. Share and embed interactive notebooks anywhere."
+---
+
# WebAssembly Notebooks
marimo lets you execute notebooks _entirely in the browser_,
diff --git a/docs/guides/working_with_data/dataframes.md b/docs/guides/working_with_data/dataframes.md
index f625f0a037..ea7564c65a 100644
--- a/docs/guides/working_with_data/dataframes.md
+++ b/docs/guides/working_with_data/dataframes.md
@@ -477,7 +477,7 @@ When you run a SQL cell in marimo, you can get the output returned as a datafram
</figure>
</div>
-Alternatively you can also use the [marimo configuration file](/guides/configuration/#user-configuration) to configure the default SQL output.
+Alternatively you can also use the [marimo configuration file](../configuration/index.md#user-configuration) to configure the default SQL output.
```toml
[runtime]
diff --git a/docs/guides/working_with_data/sql.md b/docs/guides/working_with_data/sql.md
index f154fe1caa..fb8324c417 100644
--- a/docs/guides/working_with_data/sql.md
+++ b/docs/guides/working_with_data/sql.md
@@ -1,3 +1,7 @@
+---
+description: "Mix Python and SQL in marimo notebooks. Query dataframes, SQLite, Postgres, and other databases, and get results back as Python dataframes."
+---
+
# Using SQL
marimo lets you mix and match **Python and SQL**: Use SQL to query
diff --git a/docs/hooks.py b/docs/hooks.py
index b70a8adc03..c6c44401c2 100644
--- a/docs/hooks.py
+++ b/docs/hooks.py
@@ -3,7 +3,7 @@ from pathlib import Path
from typing import Any
-def on_page_markdown(markdown: str, **kwargs: Any) -> str:
+def on_page_markdown(markdown: str, page: Any = None, **kwargs: Any) -> str:
del kwargs
static_dir = Path("docs/")
if not static_dir.exists():
@@ -20,7 +20,112 @@ def on_page_markdown(markdown: str, **kwargs: Any) -> str:
full_path = static_dir / relative_path
if not full_path.exists():
- print(f"⚠️ Warning: Static asset not found: {src_path}")
+ print(f"\u26a0\ufe0f Warning: Static asset not found: {src_path}")
print(f" Expected at: {full_path}")
+ # Auto-generate meta description from page content if not set
+ if page and not page.meta.get("description"):
+ description = _extract_description(markdown)
+ if description:
+ page.meta["description"] = description
+
return markdown
+
+
+def _extract_description(markdown: str) -> str:
+ """Extract a meta description from the first meaningful paragraph."""
+ # Strip HTML blocks (style, script, div, p, table, video, etc.) before parsing
+ cleaned = re.sub(
+ r"<(style|script|video|table|figure)[^>]*>.*?</\1>",
+ "",
+ markdown,
+ flags=re.DOTALL | re.IGNORECASE,
+ )
+
+ lines = cleaned.split("\n")
+ paragraph_lines: list[str] = []
+ in_frontmatter = False
+ past_frontmatter = False
+ in_code_block = False
+ in_admonition = False
+
+ for line in lines:
+ stripped = line.strip()
+
+ # Skip YAML frontmatter
+ if stripped == "---":
+ if not past_frontmatter:
+ in_frontmatter = not in_frontmatter
+ if not in_frontmatter:
+ past_frontmatter = True
+ continue
+ if in_frontmatter:
+ continue
+
+ # Skip code blocks
+ if stripped.startswith("```"):
+ in_code_block = not in_code_block
+ continue
+ if in_code_block:
+ continue
+
+ # Skip headings
+ if stripped.startswith("#"):
+ # If we already collected paragraph text, stop
+ if paragraph_lines:
+ break
+ continue
+
+ # Skip HTML tags, admonitions, and directives
+ if stripped.startswith("<") or stripped.startswith("///"):
+ if stripped.startswith("///"):
+ in_admonition = not in_admonition
+ if paragraph_lines:
+ break
+ continue
+ if in_admonition:
+ continue
+
+ # Skip empty lines
+ if not stripped:
+ if paragraph_lines:
+ break
+ continue
+
+ # Skip markdown images and links-only lines
+ if re.match(r"^!?\[.*\]\(.*\)$", stripped):
+ continue
+
+ # Skip lines starting with ??? or !!! (admonition shorthand)
+ if stripped.startswith("???") or stripped.startswith("!!!"):
+ if paragraph_lines:
+ break
+ continue
+
+ # Skip lines that are just formatting (bold/italic markers, list items)
+ if re.match(r"^[*_\-|]", stripped) and not re.match(
+ r"^[*_]{1,2}\w", stripped
+ ):
+ if paragraph_lines:
+ break
+ continue
+
+ paragraph_lines.append(stripped)
+
+ if not paragraph_lines:
+ return ""
+
+ text = " ".join(paragraph_lines)
+
+ # Remove markdown formatting
+ text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text) # [text](url) -> text
+ text = re.sub(r"`([^`]+)`", r"\1", text) # `code` -> code
+ text = re.sub(r"[*_]{1,2}([^*_]+)[*_]{1,2}", r"\1", text) # bold/italic
+ text = re.sub(r"\s+", " ", text).strip() # normalize whitespace
+
+ # Truncate to ~155 characters at a word boundary
+ max_length = 155
+ if len(text) > max_length:
+ text = text[:max_length].rsplit(" ", 1)[0] + "..."
+
+ return text
diff --git a/docs/index.md b/docs/index.md
index 20a32c55e7..a5de72646d 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,16 +1,30 @@
---
+title: marimo - Documentation for the Reactive Python Notebook
+description: "marimo is an open-source reactive Python notebook. Run a cell or interact with a UI element, and marimo automatically runs dependent cells, keeping code and outputs consistent."
hide:
- navigation
---
<style>
- .md-typeset h1,
+ .md-typeset h1 {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border: 0;
+ }
.md-content__button {
display: none;
}
</style>
+# marimo: The Reactive Python Notebook
+
<p align="center" style="margin-top: 40px; margin-bottom: 40px;">
- <img src="_static/marimo-logotype-thick.svg" width="210px">
+ <img src="_static/marimo-logotype-thick.svg" width="210px" alt="marimo - reactive Python notebook">
</p>
marimo is an [open-source](https://github.com/marimo-team/marimo) reactive
@@ -137,7 +151,7 @@ that depend on Python values and execute them against dataframes, databases, lak
CSVs, Google Sheets, or anything else using our built-in SQL engine, which
returns the result as a Python dataframe.
-<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/readme-sql-cell.png" width="700px" />
+<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/readme-sql-cell.png" width="700px" alt="SQL cell in marimo querying a dataframe" />
Your notebooks are still pure Python, even if they use SQL.
@@ -303,22 +317,22 @@ and our [gallery](https://marimo.io/gallery) to learn more.
<tr>
<td>
<a target="_blank" href="https://molab.marimo.io/notebooks/nb_TWVGCgZZK4L8zj5ziUBNVL">
- <img src="https://marimo.io/molab-shield.svg"/>
+ <img src="https://marimo.io/molab-shield.svg" alt="Open in molab"/>
</a>
</td>
<td>
<a target="_blank" href="https://molab.marimo.io/notebooks/nb_WuoXgs7mjg5yqrMxJXjRpF">
- <img src="https://marimo.io/molab-shield.svg"/>
+ <img src="https://marimo.io/molab-shield.svg" alt="Open in molab"/>
</a>
</td>
<td>
<a target="_blank" href="https://molab.marimo.io/notebooks/nb_vXxD13t2RoMTLjC89qdn6c">
- <img src="https://marimo.io/molab-shield.svg"/>
+ <img src="https://marimo.io/molab-shield.svg" alt="Open in molab"/>
</a>
</td>
<td>
<a target="_blank" href="https://molab.marimo.io/notebooks/nb_XpXx8MX99dWAjn4k1b3xiU">
- <img src="https://marimo.io/molab-shield.svg"/>
+ <img src="https://marimo.io/molab-shield.svg" alt="Open in molab"/>
</a>
</td>
</tr>
@@ -352,7 +366,7 @@ We're building a community. Come hang out with us!
ecosystem and is a member of the NumFOCUS community, which includes projects
such as NumPy, SciPy, and Matplotlib.
-<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/numfocus_affiliated_project.png" style="height:40px" />
+<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/numfocus_affiliated_project.png" style="height:40px" alt="NumFOCUS affiliated project" />
## Inspiration ✨
@@ -378,5 +392,5 @@ declarative, and reactive programming are transforming a broad range of tools
for the better.
<p align="right">
- <img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/marimo-logotype-horizontal.png" style="height:200px">
+ <img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/marimo-logotype-horizontal.png" style="height:200px" alt="marimo logo">
</p>
diff --git a/docs/overrides/main.html b/docs/overrides/main.html
index 7a6be2f23f..3e1c0a7cd0 100644
--- a/docs/overrides/main.html
+++ b/docs/overrides/main.html
@@ -3,13 +3,91 @@
<span class="twemoji"> {% include ".icons/material/new-box.svg" %} </span>
<strong>New:</strong> Check out our latest features in the <a href="/latest">documentation</a>! {% endblock %} {% block
extrahead %} {{ super() }}
-<!-- Add any custom head elements here -->
+<!-- Open Graph -->
<meta property="og:type" content="website" />
-<meta property="og:site_name" content="Marimo Documentation" />
+<meta property="og:site_name" content="marimo Documentation" />
+<meta property="og:locale" content="en_US" />
<meta
property="og:title"
content="{% if page.meta and page.meta.title %}{{ page.meta.title }}{% elif page.title %}{{ page.title }}{% else %}{{ config.site_name }}{% endif %}"
/>
+{% if page.meta and page.meta.description %}
+<meta property="og:description" content="{{ page.meta.description }}" />
+{% elif config.site_description %}
+<meta property="og:description" content="{{ config.site_description }}" />
+{% endif %}
+
+<!-- Twitter Card -->
+<meta name="twitter:site" content="@marimo_io" />
+
+<!-- JSON-LD Structured Data: Organization -->
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ "name": "marimo",
+ "url": "https://marimo.io",
+ "logo": "https://docs.marimo.io/assets/images/social/index.png",
+ "sameAs": [
+ "https://github.com/marimo-team/marimo",
+ "https://twitter.com/marimo_io",
+ "https://discord.gg/JE7nhX6mD8",
+ "https://www.youtube.com/@marimo-team",
+ "https://www.linkedin.com/company/marimo-io",
+ "https://mastodon.social/@marimo_io"
+ ]
+}
+</script>
+
+<!-- JSON-LD Structured Data: WebSite with search -->
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "name": "marimo Documentation",
+ "url": "https://docs.marimo.io/",
+ "potentialAction": {
+ "@type": "SearchAction",
+ "target": {
+ "@type": "EntryPoint",
+ "urlTemplate": "https://docs.marimo.io/?q={search_term_string}"
+ },
+ "query-input": "required name=search_term_string"
+ }
+}
+</script>
+
+<!-- JSON-LD Structured Data: BreadcrumbList -->
+{% if page and page.url and page.url != "." and page.url != "./" %}
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ "itemListElement": [
+ {
+ "@type": "ListItem",
+ "position": 1,
+ "name": "Home",
+ "item": "https://docs.marimo.io/"
+ }
+ {% set ns = namespace(position=2) %}
+ {% set parts = page.url.rstrip('/').split('/') %}
+ {% for part in parts %}
+ {% if part %}
+ ,{
+ "@type": "ListItem",
+ "position": {{ ns.position }},
+ "name": "{% if loop.last and page.title %}{{ page.title }}{% else %}{{ part | replace('_', ' ') | title }}{% endif %}",
+ "item": "https://docs.marimo.io/{{ parts[:loop.index] | join('/') }}/"
+ }
+ {% set ns.position = ns.position + 1 %}
+ {% endif %}
+ {% endfor %}
+ ]
+}
+</script>
+{% endif %}
+
{% endblock %} {% block scripts %} {{ super() }}
<!-- Add any custom scripts here -->
{% endblock %}
diff --git a/docs/recipes.md b/docs/recipes.md
index 086efc8de5..c3eddb89ef 100644
--- a/docs/recipes.md
+++ b/docs/recipes.md
@@ -1,3 +1,7 @@
+---
+description: "Code snippets and recipes for common marimo tasks: control flow, layout, data handling, state management, and more."
+---
+
# Recipes
This page includes code snippets or "**recipes**" for a variety of common tasks.
diff --git a/mkdocs.yml b/mkdocs.yml
index 7780f214f0..fd18e05c61 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -22,6 +22,8 @@ extra:
link: https://pypi.org/project/marimo/
- icon: fontawesome/brands/youtube
link: https://www.youtube.com/@marimo-team
+ - icon: fontawesome/brands/reddit
+ link: https://www.reddit.com/r/marimo_notebook/
extra_css:
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css
- stylesheets/extra.css
@@ -197,6 +199,7 @@ nav:
- Parse stdout: guides/lint_rules/rules/parse_stdout.md
- Parse stderr: guides/lint_rules/rules/parse_stderr.md
- Empty cells: guides/lint_rules/rules/empty_cells.md
+ - Markdown Dedent: guides/lint_rules/rules/markdown_dedent.md
- Markdown Indentation: guides/lint_rules/rules/markdown_indentation.md
- SQL parse error: guides/lint_rules/rules/sql_parse_error.md
- Misc parse log: guides/lint_rules/rules/misc_log_capture.md
@@ -300,6 +303,8 @@ nav:
- Security: security.md
plugins:
- search
+ - git-revision-date-localized:
+ fallback_to_build_date: true
- social:
cards_layout_options:
background_color: '#FFFFFF'