From 6993d22cd54b46ae87bb05bc1e4a897d3ec23834 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Thu, 28 Sep 2023 13:46:07 +0200 Subject: [PATCH] DOC: make Colab TOC visible by default --- .cspell.json | 1 + .pre-commit-config.yaml | 3 ++- docs/dynamics.ipynb | 3 +++ docs/introduction.ipynb | 3 +++ docs/software.ipynb | 3 +++ 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.cspell.json b/.cspell.json index e7dccd29..d1bb3e4e 100644 --- a/.cspell.json +++ b/.cspell.json @@ -89,6 +89,7 @@ "zemach" ], "ignoreWords": [ + "Colab", "MAINT", "arange", "attribs", diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fc02c86..11d5ca2d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.0.198 + rev: 0.0.199 hooks: - id: check-dev-files args: @@ -48,6 +48,7 @@ repos: - --pin-requirements=bimonthly - --repo-name=PWA-pages - --repo-title=PWA Pages + - id: colab-toc-visible - id: fix-nbformat-version - id: format-setup-cfg diff --git a/docs/dynamics.ipynb b/docs/dynamics.ipynb index d835237d..25e56840 100644 --- a/docs/dynamics.ipynb +++ b/docs/dynamics.ipynb @@ -245,6 +245,9 @@ } ], "metadata": { + "colab": { + "toc_visible": true + }, "kernelspec": { "display_name": "Python 3", "language": "python", diff --git a/docs/introduction.ipynb b/docs/introduction.ipynb index 3786907d..ec2e213e 100644 --- a/docs/introduction.ipynb +++ b/docs/introduction.ipynb @@ -330,6 +330,9 @@ } ], "metadata": { + "colab": { + "toc_visible": true + }, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", diff --git a/docs/software.ipynb b/docs/software.ipynb index d2312ca4..92f4c2c5 100644 --- a/docs/software.ipynb +++ b/docs/software.ipynb @@ -172,6 +172,9 @@ } ], "metadata": { + "colab": { + "toc_visible": true + }, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python",