Skip to content

Commit b6bea8e

Browse files
tried to implement pagespeed insights from google and lighthouse
1 parent 86e66ad commit b6bea8e

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

doc/_static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ img {
7979

8080
body {
8181
opacity: 0;
82-
transition: opacity 0.3s ease;
82+
transition: opacity 0.1s ease;
8383
}
8484

8585
body.ready {

doc/_templates/layout.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block extrahead %}
4+
{{ super() }}
5+
<link rel="preload" as="image" href="{{ pathto('_static/images/landingpage/hero.webp', 1) }}" type="image/webp">
6+
<link rel="icon" type="image/svg+xml" href="{{ pathto('_static/images/logo.svg', 1) }}">
7+
{% endblock %}

doc/conf.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,30 +117,13 @@
117117
# a list of builtin themes.
118118
html_theme = 'pydata_sphinx_theme'
119119

120-
dev_color = "#ff7f0e"
121-
stable_color = "#1f77b4"
122-
123-
primary = stable_color if is_stable_doc else dev_color
124-
primary_dark = "#135b91" if is_stable_doc else "#e76f00"
125120

126121
version_match = "stable" if is_stable_doc else "dev"
127122

128123
# Theme options are theme-specific and customize the look and feel of a theme
129124
# further. For a list of options available for each theme, see the
130125
# documentation.
131126
html_theme_options = {
132-
# color configurations
133-
"light_css_variables": {
134-
"color-brand-primary": primary,
135-
"color-brand-content": primary,
136-
"color-brand-secondary": primary_dark,
137-
},
138-
"dark_css_variables": {
139-
"color-brand-primary": primary_dark,
140-
"color-brand-content": primary_dark,
141-
"color-brand-secondary": primary,
142-
},
143-
144127
# Navbar configuration
145128
"navbar_align": "left",
146129
"navbar_start": ["navbar-logo"],
@@ -211,7 +194,7 @@
211194
"scripts/asciimath-defines.js",
212195
"switcher.json",
213196
"scripts/lazyload.js",
214-
"scripts/instantpage.min.js"
197+
"scripts/instantpage.min.js",
215198
]
216199

217200
# -- Options for copybutton ---------------------------------------------

0 commit comments

Comments
 (0)