From cf7da1843c45a4c2df7a749f7886a2d2ba0ee92a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 19:25:40 +0200 Subject: Adding upstream version 7.2.6. Signed-off-by: Daniel Baumann --- tests/roots/test-theming/child.zip | Bin 0 -> 661 bytes tests/roots/test-theming/conf.py | 3 +++ tests/roots/test-theming/index.rst | 5 +++++ tests/roots/test-theming/parent.zip | Bin 0 -> 1039 bytes tests/roots/test-theming/test_theme/__init__.py | 5 +++++ .../test-theming/test_theme/staticfiles/layout.html | 5 +++++ .../test_theme/staticfiles/static/staticimg.png | Bin 0 -> 120 bytes .../test_theme/staticfiles/static/statictmpl.html_t | 2 ++ .../roots/test-theming/test_theme/staticfiles/theme.conf | 7 +++++++ .../roots/test-theming/test_theme/test-theme/theme.conf | 4 ++++ tests/roots/test-theming/ziptheme.zip | Bin 0 -> 1039 bytes 11 files changed, 31 insertions(+) create mode 100644 tests/roots/test-theming/child.zip create mode 100644 tests/roots/test-theming/conf.py create mode 100644 tests/roots/test-theming/index.rst create mode 100644 tests/roots/test-theming/parent.zip create mode 100644 tests/roots/test-theming/test_theme/__init__.py create mode 100644 tests/roots/test-theming/test_theme/staticfiles/layout.html create mode 100644 tests/roots/test-theming/test_theme/staticfiles/static/staticimg.png create mode 100644 tests/roots/test-theming/test_theme/staticfiles/static/statictmpl.html_t create mode 100644 tests/roots/test-theming/test_theme/staticfiles/theme.conf create mode 100644 tests/roots/test-theming/test_theme/test-theme/theme.conf create mode 100644 tests/roots/test-theming/ziptheme.zip (limited to 'tests/roots/test-theming') diff --git a/tests/roots/test-theming/child.zip b/tests/roots/test-theming/child.zip new file mode 100644 index 0000000..b4a6a56 Binary files /dev/null and b/tests/roots/test-theming/child.zip differ diff --git a/tests/roots/test-theming/conf.py b/tests/roots/test-theming/conf.py new file mode 100644 index 0000000..0db7cf0 --- /dev/null +++ b/tests/roots/test-theming/conf.py @@ -0,0 +1,3 @@ +html_theme = 'test-theme' +html_theme_path = ['.', 'test_theme'] +exclude_patterns = ['_build'] diff --git a/tests/roots/test-theming/index.rst b/tests/roots/test-theming/index.rst new file mode 100644 index 0000000..214dcd7 --- /dev/null +++ b/tests/roots/test-theming/index.rst @@ -0,0 +1,5 @@ +======= +Theming +======= + + diff --git a/tests/roots/test-theming/parent.zip b/tests/roots/test-theming/parent.zip new file mode 100644 index 0000000..8a246ed Binary files /dev/null and b/tests/roots/test-theming/parent.zip differ diff --git a/tests/roots/test-theming/test_theme/__init__.py b/tests/roots/test-theming/test_theme/__init__.py new file mode 100644 index 0000000..13bdc4b --- /dev/null +++ b/tests/roots/test-theming/test_theme/__init__.py @@ -0,0 +1,5 @@ +import os + + +def get_path(): + return os.path.dirname(os.path.abspath(__file__)) diff --git a/tests/roots/test-theming/test_theme/staticfiles/layout.html b/tests/roots/test-theming/test_theme/staticfiles/layout.html new file mode 100644 index 0000000..81372be --- /dev/null +++ b/tests/roots/test-theming/test_theme/staticfiles/layout.html @@ -0,0 +1,5 @@ +{% extends "basic/layout.html" %} +{% block extrahead %} + +{{ super() }} +{% endblock %} diff --git a/tests/roots/test-theming/test_theme/staticfiles/static/staticimg.png b/tests/roots/test-theming/test_theme/staticfiles/static/staticimg.png new file mode 100644 index 0000000..fda6cd2 Binary files /dev/null and b/tests/roots/test-theming/test_theme/staticfiles/static/staticimg.png differ diff --git a/tests/roots/test-theming/test_theme/staticfiles/static/statictmpl.html_t b/tests/roots/test-theming/test_theme/staticfiles/static/statictmpl.html_t new file mode 100644 index 0000000..4ab292b --- /dev/null +++ b/tests/roots/test-theming/test_theme/staticfiles/static/statictmpl.html_t @@ -0,0 +1,2 @@ + +{{ project|e }} diff --git a/tests/roots/test-theming/test_theme/staticfiles/theme.conf b/tests/roots/test-theming/test_theme/staticfiles/theme.conf new file mode 100644 index 0000000..a877673 --- /dev/null +++ b/tests/roots/test-theming/test_theme/staticfiles/theme.conf @@ -0,0 +1,7 @@ +[theme] +inherit = basic +stylesheet = default.css +pygments_style = emacs + +[options] +testopt = optdefault diff --git a/tests/roots/test-theming/test_theme/test-theme/theme.conf b/tests/roots/test-theming/test_theme/test-theme/theme.conf new file mode 100644 index 0000000..2ad2c33 --- /dev/null +++ b/tests/roots/test-theming/test_theme/test-theme/theme.conf @@ -0,0 +1,4 @@ +[theme] +inherit = classic +sidebars = globaltoc.html, searchbox.html +pygments_dark_style = monokai diff --git a/tests/roots/test-theming/ziptheme.zip b/tests/roots/test-theming/ziptheme.zip new file mode 100644 index 0000000..8a246ed Binary files /dev/null and b/tests/roots/test-theming/ziptheme.zip differ -- cgit v1.2.3