|
5 | 5 | release = sphinx_icalendar.__version__ |
6 | 6 |
|
7 | 7 | extensions = [ |
| 8 | + "sphinx.ext.viewcode", |
| 9 | + "sphinx_copybutton", |
8 | 10 | "sphinx_icalendar", |
| 11 | + "sphinx_issues", |
9 | 12 | ] |
10 | 13 |
|
11 | 14 | html_theme = "alabaster" |
|
15 | 18 | "github_user": "pycalendar", |
16 | 19 | "github_repo": "sphinx-icalendar", |
17 | 20 | } |
| 21 | + |
| 22 | +html_context = { |
| 23 | + # "github_url": "https://github.com", # or your GitHub Enterprise site |
| 24 | + "github_user": html_theme_options["github_user"], |
| 25 | + "github_repo": html_theme_options["github_repo"], |
| 26 | + "github_version": "main", |
| 27 | + "doc_path": "docs", |
| 28 | +} |
| 29 | + |
| 30 | + |
| 31 | +source_suffix = {".rst": "restructuredtext"} |
| 32 | + |
| 33 | +# -- sphinx_copybutton configuration ---------------------------------- |
| 34 | +# https://sphinx-copybutton.readthedocs.io/en/latest/use.html |
| 35 | +# Exclude line numbers, prompts, and console output when copying code blocks. |
| 36 | +copybutton_exclude = ".linenos, .gp, .go" |
| 37 | + |
| 38 | + |
| 39 | +# -- sphinx_issues configuration ---------------------------------- |
| 40 | +issues_github_path = "pycalendar/sphinx-icalendar" |
| 41 | + |
| 42 | +html_theme_options = { |
| 43 | + "icon_links": [ |
| 44 | + { |
| 45 | + "name": "GitHub", |
| 46 | + "url": "https://github.com/pycalendar/sphinx-icalendar", |
| 47 | + "icon": "fa-brands fa-square-github", |
| 48 | + "type": "fontawesome", |
| 49 | + "attributes": { |
| 50 | + "target": "_blank", |
| 51 | + "rel": "noopener me", |
| 52 | + "class": "nav-link custom-fancy-css", |
| 53 | + }, |
| 54 | + }, |
| 55 | + { |
| 56 | + "name": "PyPI", |
| 57 | + "url": "https://pypi.org/project/sphinx-icalendar", |
| 58 | + "icon": "fa-custom fa-pypi", |
| 59 | + "type": "fontawesome", |
| 60 | + "attributes": { |
| 61 | + "target": "_blank", |
| 62 | + "rel": "noopener me", |
| 63 | + "class": "nav-link custom-fancy-css", |
| 64 | + }, |
| 65 | + }, |
| 66 | + ], |
| 67 | + "use_edit_page_button": True, |
| 68 | +} |
| 69 | + |
| 70 | +html_theme = "pydata_sphinx_theme" |
| 71 | +html_static_path = [ |
| 72 | + "_static", |
| 73 | +] |
| 74 | +html_js_files = [ |
| 75 | + ("js/custom-icons.js", {"defer": "defer"}), |
| 76 | +] |
| 77 | +pygments_style = "sphinx" |
0 commit comments