File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
{{cookiecutter.project_name}}/docs Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ with code_fence("python"):
82
82
from __future__ import annotations
83
83
84
84
import importlib.metadata
85
+ from typing import Any
85
86
86
87
project = " package"
87
88
copyright = " 2024, My Name"
@@ -110,6 +111,24 @@ exclude_patterns = [
110
111
111
112
html_theme = " furo"
112
113
114
+ html_theme_options: dict[str , Any] = {
115
+ " footer_icons" : [
116
+ {
117
+ " name" : " GitHub" ,
118
+ " url" : " https://github.com/org/package" ,
119
+ " html" : """
120
+ <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
121
+ <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
122
+ </svg>
123
+ """ ,
124
+ " class" : " " ,
125
+ },
126
+ ],
127
+ " source_repository" : " https://github.com/org/package" ,
128
+ " source_branch" : " main" ,
129
+ " source_directory" : " docs/" ,
130
+ }
131
+
113
132
myst_enable_extensions = [
114
133
" colon_fence" ,
115
134
]
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import importlib .metadata
4
+ from typing import Any
4
5
5
6
project = "{{ cookiecutter.project_name }}"
6
7
copyright = "{{ cookiecutter.__year }}, {{ cookiecutter.full_name }}"
29
30
30
31
html_theme = "furo"
31
32
33
+ html_theme_options : dict [str , Any ] = {
34
+ {% - if cookiecutter .__ci == "github" % }
35
+ "footer_icons" : [
36
+ {
37
+ "name" : "GitHub" ,
38
+ "url" : "{{ cookiecutter.url }}" ,
39
+ "html" : """
40
+ <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
41
+ <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
42
+ </svg>
43
+ """ ,
44
+ "class" : "" ,
45
+ },
46
+ ],
47
+ {% - endif % }
48
+ "source_repository" : "{{ cookiecutter.url }}" ,
49
+ "source_branch" : "main" ,
50
+ "source_directory" : "docs/" ,
51
+ }
52
+
32
53
myst_enable_extensions = [
33
54
"colon_fence" ,
34
55
]
You can’t perform that action at this time.
0 commit comments