File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import os
12import sys
23from importlib import metadata as importlib_metadata
34from pathlib import Path
2526templates_path = ["_templates" ]
2627exclude_patterns = ["_build" , "Thumbs.db" , ".*" ]
2728
28- html_css_files = [
29- "css/pyodide.css" ,
30- ]
3129
3230# -- Options for HTML output -------------------------------------------------
3331# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
32+ html_baseurl = os .environ .get ("READTHEDOCS_CANONICAL_URL" , "" )
3433
35- sys .path .append (Path (__file__ ).parent .parent .as_posix ())
34+ html_css_files = [
35+ "css/pyodide.css" ,
36+ ]
3637
3738html_theme = "sphinx_book_theme"
3839html_logo = "_static/img/pyodide-logo.png"
3940html_static_path = ["_static" ]
4041
42+
43+ sys .path .append (Path (__file__ ).parent .parent .as_posix ())
44+
45+
4146try :
4247 release = importlib_metadata .version ("micropip" )
4348except importlib_metadata .PackageNotFoundError :
You can’t perform that action at this time.
0 commit comments