Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
d1e9277
zensical
stichbury Dec 9, 2025
17ef196
comment out in mkdocs
stichbury Dec 9, 2025
ad498f7
Update zensical.toml
stichbury Dec 9, 2025
3c7ec19
Remove folder
stichbury Dec 10, 2025
d7c488e
Create zensical.toml
stichbury Dec 10, 2025
a4a5fde
Update zensical.toml
stichbury Dec 10, 2025
9086a6f
Update zensical.toml
stichbury Dec 10, 2025
7e2f271
Revert "comment out in mkdocs"
stichbury Dec 10, 2025
05b7ea4
Update hatch.toml
stichbury Dec 10, 2025
0bfefa9
Create favicon.png
stichbury Dec 10, 2025
b26d820
Update zensical.toml
stichbury Dec 10, 2025
9b181de
Update zensical.toml
stichbury Dec 10, 2025
cd9750e
Update hatch.toml
stichbury Dec 10, 2025
044f186
Delete mkdocs.yml
stichbury Dec 10, 2025
77b3f30
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 10, 2025
e385800
Update zensical.toml
stichbury Dec 10, 2025
a380709
Merge branch 'docs/zensical-rollout' of https://github.com/mckinsey/v…
stichbury Dec 10, 2025
19361dc
Update zensical.toml
stichbury Dec 10, 2025
dd75234
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 10, 2025
6e28b4b
Merge branch 'main' into docs/zensical-rollout
stichbury Dec 10, 2025
7122b37
Update zensical.toml
stichbury Dec 11, 2025
7b451a9
Update hatch.toml
stichbury Dec 11, 2025
5d61327
Add reproduction for issue 193 on zensical
stichbury Dec 15, 2025
0c62e43
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 15, 2025
aee5302
Revert "Delete mkdocs.yml"
stichbury Dec 15, 2025
e929078
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 15, 2025
7280168
Remove files from reproduction
stichbury Dec 15, 2025
bc2dad9
Convert to full Vizro mkdocs in reproduction, retain backup
stichbury Dec 15, 2025
21dbb8c
Add in a mkdocs.yml suitable for zensical
stichbury Dec 15, 2025
e9c6541
Merge branch 'docs/zensical-rollout' of https://github.com/mckinsey/v…
stichbury Dec 15, 2025
b6404b9
Delete mkdocs.yml.backup.yml
stichbury Dec 15, 2025
7c64b3e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 15, 2025
0eb880f
Set toml for Zensical aside for now
stichbury Dec 15, 2025
eb41dda
Merge branch 'docs/zensical-rollout' of https://github.com/mckinsey/v…
stichbury Dec 15, 2025
bcb2efe
Merge branch 'main' into docs/zensical-rollout
stichbury Dec 15, 2025
ca429bc
Remove reproduction
stichbury Dec 15, 2025
5c18c96
Merge branch 'docs/zensical-rollout' of https://github.com/mckinsey/v…
stichbury Dec 15, 2025
6e991b8
Change file extension
stichbury Dec 15, 2025
2ac81d8
Update .gitignore
stichbury Dec 15, 2025
9717a3f
Update mkdocs.yml
stichbury Dec 15, 2025
c01cb32
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 15, 2025
80cb915
Update mkdocs.yml
stichbury Dec 15, 2025
b7215a4
Merge branch 'docs/zensical-rollout' of https://github.com/mckinsey/v…
stichbury Dec 15, 2025
f4b63c1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 15, 2025
b7f58b7
Further update for build tools
stichbury Dec 15, 2025
b97d328
Merge branch 'docs/zensical-rollout' of https://github.com/mckinsey/v…
stichbury Dec 15, 2025
3b5c735
Update vizro-core/zensical.toml.backup
stichbury Dec 18, 2025
0eda053
Merge branch 'main' into docs/zensical-rollout
stichbury Dec 18, 2025
c40aa1a
Add args back to zensical serve in hatch
stichbury Dec 18, 2025
9b2fa82
Comment for strict build flags and re-enable for yml builds (don't wo…
stichbury Dec 18, 2025
feadb5f
Merge notifications addition to mkdocs.yml
stichbury Dec 18, 2025
5bf9c0b
Merge branch 'main' into docs/zensical-rollout
stichbury Dec 18, 2025
74c1a3f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 18, 2025
e607881
Fix broken API refs
stichbury Dec 18, 2025
081710a
Merge branch 'docs/zensical-rollout' of https://github.com/mckinsey/v…
stichbury Dec 18, 2025
0ace44f
Update mkdocs.yml
stichbury Dec 18, 2025
8ea79fb
Update mkdocs.yml
stichbury Dec 18, 2025
9fedb6b
Revert "Fix broken API refs"
stichbury Dec 18, 2025
a8b5216
Update custom-components.md
stichbury Dec 18, 2025
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ instance/
# mkdocs
vizro-core/site
vizro-ai/site
Vizro-mcp/site

# PyBuilder
.pybuilder/
Expand Down
7 changes: 3 additions & 4 deletions vizro-ai/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ test-unit-coverage = [

[envs.docs]
dependencies = [
"mkdocs>=1.6",
"mkdocs-material",
"zensical",
"mkdocs-git-revision-date-localized-plugin>=1.2.5",
"mkdocstrings[python]",
"linkchecker",
Expand All @@ -75,14 +74,14 @@ detached = true
installer = "uv"

[envs.docs.scripts]
build = "mkdocs build --strict"
build = "zensical build --clean"
# Disable warnings on the linkcheck so that HTTP redirects are accepted. We could ignore only that warning and specify
# more advanced settings using a linkcheckerrc config file. openai.com doesn't seem to work well with linkchecking,
# throwing 403 errors, but these are not real errors.
link-check = "linkchecker site --check-extern --no-warnings --ignore=404.html --ignore-url=127.0.0.1 --ignore-url=https://vizro.readthedocs.io/ --ignore-url=https://platform.openai.com/docs/models --ignore-url=openai.com --ignore-url=https://openai.com/"
pip = '"{env:HATCH_UV}" pip {args}'
pycafe-links = "../tools/pycafe/docs_links_filtering.sh"
serve = "mkdocs serve --open"
serve = "zensical serve --open {args}"

[envs.lower-bounds]
extra-dependencies = ["pydantic==2.11.9"] # required by langchain>=0.3.0 and openai>=1.108.0
Expand Down
13 changes: 11 additions & 2 deletions vizro-ai/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
site_name: Vizro-AI
site_url: https://vizro.readthedocs.io/projects/vizro-ai
site_dir: site
docs_dir: docs
nav:
- Vizro-AI: index.md
- Tutorials:
Expand Down Expand Up @@ -39,9 +41,17 @@ repo_name: mckinsey/vizro-ai

theme:
name: material
variant: classic
language: en
palette:
- scheme: default
toggle:
icon: lucide/sun
name: Switch to dark mode
- scheme: slate
toggle:
icon: lucide/moon
name: Switch to light mode
font:
text: Google sans
code: Source Code Pro
Expand Down Expand Up @@ -122,8 +132,7 @@ hooks:
extra_css:
- stylesheets/extra.css

# Strictest settings possible, and will be elevated to ERROR when run with --strict.
# See https://www.mkdocs.org/user-guide/configuration/#validation.
# Keep these for now as strict building will be enabled by Zensical soon
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not also keep the old comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need it -- we aren't explaining all the other settings in the file and some of those are far less evident from their naming.

validation:
omitted_files: warn
absolute_links: warn
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/docs/pages/user-guides/custom-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ vm.Parameter.add_type("selector", TooltipNonCrossRangeSlider)

You may want to use this strategy to:

- Create a new component that does not exist as a [built-ninVizro model][vizro.models].
- Create a new component that does not exist as a [built-in Vizro model][vizro.models].
- Make extensive changes to an existing component.
- Combine multiple components into a single higher-level component, similar to a Dash [All-in-One component](https://dash.plotly.com/all-in-one-components).

Expand Down
Binary file added vizro-core/docs/stylesheets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions vizro-core/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,12 @@ test-unit-coverage = [

[envs.docs]
dependencies = [
"mkdocs>=1.6",
"mkdocs-material",
"zensical",
"mkdocs-git-revision-date-localized-plugin>=1.2.5",
"mkdocstrings[python]",
"griffe-warnings-deprecated",
"mkdocs-llmstxt-md",
"mkdocs-llmstxt>=0.5.0",
"linkchecker",
"mkdocs-open-in-new-tab",
"mkdocs-pycafe",
"PyGithub",
"playwright"
Expand All @@ -132,15 +129,15 @@ installer = "uv"
template = "docs" # Can't be detached = true since griffe_extensions:DynamicallyInspect needs vizro to be importable.

[envs.docs.scripts]
build = "mkdocs build --strict"
build = "zensical build --clean"
# Disable warnings on the linkcheck so that HTTP redirects are accepted. We could ignore only that warning and specify
# more advanced settings using a linkcheckerrc config file.
link-check = "linkchecker site --check-extern --no-warnings --ignore=404.html --ignore-url=127.0.0.1 --ignore-url=https://vizro.readthedocs.io/ --ignore-url=https://platform.ploomber.io/register --ignore-url=https://huggingface.co/join --ignore-url=https://www.ag-grid.com/"
# Check if link to QB logo is not deleted from the docs.
logo-check = "grep -q 'logo_watermark_extended.svg' docs/pages/user-guides/install.md"
pip = '"{env:HATCH_UV}" pip {args}'
pycafe-links = "../tools/pycafe/docs_links_filtering.sh"
serve = "mkdocs serve --open {args}"
serve = "zensical serve --open {args}"

[envs.examples]
# TODO: once the visual-vocabulary dashboard has moved out of this repo, this environment should be removed fully and
Expand Down
36 changes: 24 additions & 12 deletions vizro-core/mkdocs.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many of the settings here are shuffled around, why is that? Makes it a little harder to review to see what is new and what just changed place

Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
site_name: Vizro
site_url: https://vizro.readthedocs.io/en/stable/
site_description: Core Vizro documentation
site_dir: site
docs_dir: docs
use_directory_urls: true

# Make sure any new page added here is also added to the llmstxt plugin below
nav:
# Make sure any new page added here is also added to the llmstxt plugin below (around line 156)
- Vizro: index.md
- Tutorials:
- Quickstart tutorial: pages/tutorials/quickstart-tutorial.md
Expand Down Expand Up @@ -79,14 +84,25 @@ theme:
name: material
language: en
custom_dir: docs/overrides
variant: classic
favicon: assets/images/favicon.png
palette:
- scheme: default
toggle:
icon: lucide/sun
name: Switch to dark mode
- scheme: slate
toggle:
icon: lucide/moon
name: Switch to light mode
font:
text: Google sans
code: Source Code Pro
icon:
repo: fontawesome/brands/github
features:
- header.autohide
- navigation.path
- navigation.expand
- navigation.instant
- navigation.indexes
Expand All @@ -100,9 +116,6 @@ theme:
- content.code.copy
- content.code.annotate

watch:
- src

markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
Expand Down Expand Up @@ -133,14 +146,14 @@ markdown_extensions:
- md_in_html
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
emoji_index: !!python/name:zensical.extensions.emoji.twemoji
emoji_generator: !!python/name:zensical.extensions.emoji.to_svg

plugins:
- search
- autorefs
- llmstxt: # https://pypi.org/project/mkdocs-llmstxt/
markdown_description:
- llmstxt:
markdown_description: |
Vizro is an open-source Python-based toolkit to build data visualization apps.

Every Vizro app is defined by a simple configuration, using the high-level categories
Expand Down Expand Up @@ -214,12 +227,11 @@ plugins:
python:
options:
show_bases: false
show_source: false #currently doesn't show source at correct level, and not for pydantic models
show_source: false
docstring_style: google
merge_init_into_class: true
docstring_section_style: list
separate_signature: true
# filters: ["!^_"]
show_root_heading: true
docstring_options:
ignore_init_summary: true
Expand All @@ -241,9 +253,9 @@ extra:
- name: google-site-verification
content: "CYb3cxosCgsN2QDQVaSGQpMQCesqpsGQ3oTM02NtvkY"
extra_css:
- stylesheets/extra.css
- /stylesheets/extra.css
extra_javascript:
- javascripts/extra.js
- /javascripts/extra.js
# Strictest settings possible, and will be elevated to ERROR when run with --strict.
# See https://www.mkdocs.org/user-guide/configuration/#validation.
validation:
Expand Down
Loading
Loading