diff --git a/doc/source/_static/css/style.css b/doc/source/_static/css/style.css index 31a1af2a9..701f9f57c 100644 --- a/doc/source/_static/css/style.css +++ b/doc/source/_static/css/style.css @@ -93,3 +93,18 @@ body>div>aside>div>div>div.sidebar-scroll>div>ul { element.style { display: none; } + +/* Animate page entries */ +.article-container > article:nth-child(3) { + animation-duration: 0.2s; + animation-delay: 0s; + animation-name: fadeInBottom; +} + +@keyframes fadeInBottom { + from { + opacity: 0; + transform: translateY(1%); + } + to { opacity: 1 } +} diff --git a/doc/source/conf.py b/doc/source/conf.py index 7534c80ce..f9418a4c1 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -16,8 +16,6 @@ import sys from typing import List -import sphinx_rtd_theme - sys.path.insert(0, os.path.abspath("../..")) sys.setrecursionlimit(1500) @@ -65,7 +63,6 @@ "sphinx.ext.autodoc", "sphinx.ext.coverage", "sphinx.ext.githubpages", - "sphinx_rtd_theme", "myst_parser", "sphinx_favicon", "sphinxcontrib.mermaid", @@ -84,6 +81,12 @@ coverage_ignore_classes = ["phy"] coverage_ignore_modules = ["test.dma_tests", "test.generics"] +# -- Options for PDF output -------------------------------------------------- +if os.path.exists(os.path.join("_themes", "pdf_theme")): + extensions.append("sphinx_simplepdf") + html_theme_path = ["_themes"] + simplepdf_theme = "pdf_theme" + # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for diff --git a/doc/source/index.rst b/doc/source/index.rst index 03c09f84e..9ecfb9988 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -79,12 +79,12 @@ Sections attr/index guides/examples guides/connectivity - devices/index buffers/index fpga/index - dev/index libiio support + dev/index + devices/index Indices and tables ================== diff --git a/requirements_doc.txt b/requirements_doc.txt index 166a706e6..621f8f600 100644 --- a/requirements_doc.txt +++ b/requirements_doc.txt @@ -1,7 +1,7 @@ sphinx>=2.0 -sphinx-rtd-theme myst-parser furo sphinx-favicon sphinxcontrib-mermaid +sphinx-simplepdf pillow