@@ -71,13 +71,9 @@ def get_files_to_cache(outDir: str, config: Dict[str, Any]):
71
71
resource_url = urljoin (
72
72
url , name
73
73
)
74
- logger .info (f"Caching { resource_url } " )
75
74
files_to_cache .append (resource_url )
76
75
else :
77
76
resource_url = url + dirpath + "/" + name
78
-
79
- logger .info (f"Name is { name } " )
80
- logger .info (f"Caching { resource_url } " )
81
77
files_to_cache .append (resource_url )
82
78
83
79
return files_to_cache
@@ -114,14 +110,20 @@ def html_page_context(
114
110
"metatags"
115
111
] += f'<link rel="manifest" href="_static/frcdocs.webmanifest"/>'
116
112
113
+ if app .config ["pwa_apple_icon" ] is not None :
114
+ context [
115
+ "metatags"
116
+ ] += f'<link rel="apple-touch-icon" href="{ app .config ["pwa_apple_icon" ]} ">'
117
+
117
118
118
119
def setup (app : Sphinx ) -> Dict [str , Any ]:
119
- app .add_config_value ("name" , "" , "html" )
120
- app .add_config_value ("short_name" , "" , "html" )
121
- app .add_config_value ("theme_color" , "" , "html" )
122
- app .add_config_value ("background_color" , "" , "html" )
123
- app .add_config_value ("display" , "standalone" , "html" )
124
- app .add_config_value ("icons" , [], "html" )
120
+ app .add_config_value ("pwa_name" , "" , "html" )
121
+ app .add_config_value ("pwa_short_name" , "" , "html" )
122
+ app .add_config_value ("pwa_theme_color" , "" , "html" )
123
+ app .add_config_value ("pwa_background_color" , "" , "html" )
124
+ app .add_config_value ("pwa_display" , "standalone" , "html" )
125
+ app .add_config_value ("pwa_icons" , [], "html" )
126
+ app .add_config_value ("pwa_apple_icon" , "" , "html" )
125
127
126
128
app .connect ("html-page-context" , html_page_context )
127
129
app .connect ("build-finished" , build_finished )
0 commit comments