@apify/docs-theme 1.0.244 → 1.0.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/package.json +48 -48
- package/src/config.js +1 -3
- package/src/markdown.js +8 -6
- package/src/roa-loader/index.js +16 -14
- package/src/theme/ColorModeToggle/index.jsx +14 -27
- package/src/theme/DocBreadcrumbs/Items/Home/index.js +2 -1
- package/src/theme/DocBreadcrumbs/index.js +10 -20
- package/src/theme/DocItemContent/index.js +42 -43
- package/src/theme/DocItemContent/styles.module.css +1 -3
- package/src/theme/DocSidebarItem/Category/index.js +36 -54
- package/src/theme/DocSidebarItem/Link/index.jsx +9 -23
- package/src/theme/DocSidebarItem/Link/styles.module.css +1 -1
- package/src/theme/Footer/LinkItem/index.js +7 -12
- package/src/theme/Footer/index.jsx +2 -3
- package/src/theme/Heading/index.jsx +3 -4
- package/src/theme/Heading/styles.module.css +23 -23
- package/src/theme/Icon/DarkMode/index.jsx +7 -1
- package/src/theme/Icon/LightMode/index.jsx +28 -10
- package/src/theme/LLMButtons/index.jsx +7 -37
- package/src/theme/Layout/index.jsx +10 -9
- package/src/theme/Logo/index.js +3 -16
- package/src/theme/MDXComponents/A.js +11 -6
- package/src/theme/MDXComponents/Code.js +3 -2
- package/src/theme/MDXComponents/Details.js +1 -3
- package/src/theme/MDXComponents/Head.js +2 -1
- package/src/theme/MDXComponents/Img/index.js +1 -7
- package/src/theme/MDXComponents/Img/styles.module.css +1 -1
- package/src/theme/MDXComponents/Ul/index.js +1 -1
- package/src/theme/MDXComponents/Ul/styles.module.css +2 -2
- package/src/theme/Navbar/CTA/index.jsx +3 -1
- package/src/theme/Navbar/CTA/styles.module.css +45 -45
- package/src/theme/Navbar/Content/index.jsx +29 -28
- package/src/theme/Navbar/MobileSidebar/Header/index.jsx +3 -1
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.jsx +15 -29
- package/src/theme/NavbarItem/ComponentTypes.jsx +3 -22
- package/src/theme/NavbarItem/NavbarNavLink.jsx +28 -24
- package/src/theme/NotFound.jsx +2 -6
- package/src/theme/RunnableCodeBlock/RunnableCodeBlock.jsx +43 -9
- package/src/theme/SearchBar/index.js +21 -21
- package/src/theme/SearchBar/styles.css +84 -83
- package/src/theme/SearchMetadata/index.js +8 -8
- package/src/theme/SearchPage/index.js +173 -230
- package/src/theme/SearchPage/styles.module.css +59 -59
- package/src/theme/TOCItems/Tree.jsx +2 -12
- package/src/theme/TOCItems/index.jsx +2 -12
- package/src/theme/custom.css +73 -75
- package/src/theme.js +15 -19
- package/src/utils.js +1 -5
- package/static/js/custom.js +7 -5
|
@@ -1,141 +1,142 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
--docsearch-primary-color: var(--ifm-color-primary);
|
|
3
|
+
--docsearch-text-color: var(--ifm-font-color-base);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.DocSearch-Button {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
height: 4rem;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0.8rem 1.2rem;
|
|
10
|
+
background-color: var(--color-Neutral_BackgroundMuted);
|
|
11
|
+
border: 1px solid var(--color-neutral-field-border);
|
|
12
|
+
border-radius: 6px;
|
|
13
|
+
color: var(--color-neutral-text-placeholder);
|
|
14
|
+
/* Annoying, but needed */
|
|
15
|
+
/* https://stackoverflow.com/questions/26140050/why-is-font-family-not-inherited-in-button-tags-automatically/26140154 */
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 2rem;
|
|
21
|
+
transition:
|
|
22
|
+
background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default),
|
|
23
|
+
color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.AskAI-Button {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
height: 4rem;
|
|
28
|
+
padding: 0.8rem 1.6rem !important;
|
|
29
|
+
background-color: var(--ifm-color-primary);
|
|
30
|
+
border-radius: 8px;
|
|
31
|
+
color: var(--color-neutral-text-on-primary);
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
font-size: 1.6rem;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
line-height: 2.4rem;
|
|
36
|
+
border: none;
|
|
37
|
+
box-shadow: none;
|
|
38
|
+
outline: none;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
display: block;
|
|
42
|
+
position: relative;
|
|
43
|
+
text-align: center;
|
|
44
|
+
transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.SearchButton-Container {
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.navbar-sidebar .SearchButton-Container {
|
|
52
|
-
|
|
53
|
+
display: none;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
@media (max-width: 768px) {
|
|
56
57
|
.SearchButton-Container {
|
|
57
|
-
|
|
58
|
+
width: 100%;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
.AlgoliaContainer {
|
|
61
|
-
|
|
62
|
+
flex: 1;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.DocSearch-Button {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
width: 100%;
|
|
67
|
+
justify-content: space-between;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
.navbar__inner .SearchButton-Container {
|
|
70
|
-
|
|
71
|
+
display: none;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
.navbar-sidebar .SearchButton-Container {
|
|
74
|
-
|
|
75
|
+
display: flex;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
.navbar-sidebar .DocSearch-Button-Placeholder {
|
|
78
|
-
|
|
79
|
+
display: block;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.navbar-sidebar .DocSearch-Button-Keys {
|
|
82
|
-
|
|
83
|
+
display: flex;
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
.DocSearch-Button:hover {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
box-shadow: none;
|
|
89
|
+
background-color: var(--color-Neutral_BackgroundMuted);
|
|
90
|
+
color: var(--color-neutral-icon);
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.DocSearch-Search-Icon {
|
|
93
|
-
|
|
94
|
+
display: none;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
.DocSearch-Button-Placeholder {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
color: inherit;
|
|
99
|
+
font-size: 1.4rem;
|
|
100
|
+
line-height: 2.4rem;
|
|
101
|
+
padding: 0;
|
|
102
|
+
transition: color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
.DocSearch-Button-Keys {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
106
|
+
width: 3rem;
|
|
107
|
+
min-width: unset;
|
|
108
|
+
height: 2rem;
|
|
109
|
+
background-color: var(--color-neutral-background-subtle);
|
|
110
|
+
border: 1px solid var(--color-neutral-border);
|
|
111
|
+
border-radius: 4px;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
gap: 0.2rem;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
.DocSearch-Button-Key {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
119
|
+
top: unset;
|
|
120
|
+
width: unset;
|
|
121
|
+
min-width: 0.8rem;
|
|
122
|
+
height: unset;
|
|
123
|
+
margin: unset;
|
|
124
|
+
padding: unset;
|
|
125
|
+
background: unset;
|
|
126
|
+
border-radius: unset;
|
|
127
|
+
box-shadow: unset;
|
|
128
|
+
color: var(--color-neutral-text-subtle);
|
|
129
|
+
font-size: 1.2rem;
|
|
130
|
+
font-weight: 500;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
.DocSearch-Button-Key:first-child {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
width: 1.2rem;
|
|
135
|
+
height: 1.2rem;
|
|
136
|
+
font-size: 1.6rem;
|
|
137
|
+
line-height: 1.2rem;
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
.DocSearch-Container {
|
|
140
|
-
|
|
141
|
+
z-index: calc(var(--ifm-z-index-fixed) + 1);
|
|
141
142
|
}
|
|
@@ -26,16 +26,16 @@ export default function SearchMetadata({ locale, version, tag }) {
|
|
|
26
26
|
Docusaurus metadata, used by third-party search plugin
|
|
27
27
|
See https://github.com/cmfcmf/docusaurus-search-local/issues/99
|
|
28
28
|
*/}
|
|
29
|
-
{locale && <meta name="docusaurus_locale" content={locale}/>}
|
|
30
|
-
{version && <meta name="docusaurus_version" content={version}/>}
|
|
31
|
-
{tag && <meta name="docusaurus_tag" content={tag}/>}
|
|
29
|
+
{locale && <meta name="docusaurus_locale" content={locale} />}
|
|
30
|
+
{version && <meta name="docusaurus_version" content={version} />}
|
|
31
|
+
{tag && <meta name="docusaurus_tag" content={tag} />}
|
|
32
32
|
|
|
33
33
|
{/* Algolia DocSearch metadata */}
|
|
34
|
-
{language && <meta name="docsearch:language" content={language}/>}
|
|
35
|
-
{version && <meta name="docsearch:version" content={version}/>}
|
|
36
|
-
<meta name="docsearch:docusaurus_tag" content={tag}/>
|
|
37
|
-
<meta name="docsearch:section" content={section}/>
|
|
38
|
-
<meta name="docsearch:section_tag" content={sectionTag}/>
|
|
34
|
+
{language && <meta name="docsearch:language" content={language} />}
|
|
35
|
+
{version && <meta name="docsearch:version" content={version} />}
|
|
36
|
+
<meta name="docsearch:docusaurus_tag" content={tag} />
|
|
37
|
+
<meta name="docsearch:section" content={section} />
|
|
38
|
+
<meta name="docsearch:section_tag" content={sectionTag} />
|
|
39
39
|
</Head>
|
|
40
40
|
);
|
|
41
41
|
}
|