@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.
Files changed (50) hide show
  1. package/LICENSE +201 -0
  2. package/package.json +48 -48
  3. package/src/config.js +1 -3
  4. package/src/markdown.js +8 -6
  5. package/src/roa-loader/index.js +16 -14
  6. package/src/theme/ColorModeToggle/index.jsx +14 -27
  7. package/src/theme/DocBreadcrumbs/Items/Home/index.js +2 -1
  8. package/src/theme/DocBreadcrumbs/index.js +10 -20
  9. package/src/theme/DocItemContent/index.js +42 -43
  10. package/src/theme/DocItemContent/styles.module.css +1 -3
  11. package/src/theme/DocSidebarItem/Category/index.js +36 -54
  12. package/src/theme/DocSidebarItem/Link/index.jsx +9 -23
  13. package/src/theme/DocSidebarItem/Link/styles.module.css +1 -1
  14. package/src/theme/Footer/LinkItem/index.js +7 -12
  15. package/src/theme/Footer/index.jsx +2 -3
  16. package/src/theme/Heading/index.jsx +3 -4
  17. package/src/theme/Heading/styles.module.css +23 -23
  18. package/src/theme/Icon/DarkMode/index.jsx +7 -1
  19. package/src/theme/Icon/LightMode/index.jsx +28 -10
  20. package/src/theme/LLMButtons/index.jsx +7 -37
  21. package/src/theme/Layout/index.jsx +10 -9
  22. package/src/theme/Logo/index.js +3 -16
  23. package/src/theme/MDXComponents/A.js +11 -6
  24. package/src/theme/MDXComponents/Code.js +3 -2
  25. package/src/theme/MDXComponents/Details.js +1 -3
  26. package/src/theme/MDXComponents/Head.js +2 -1
  27. package/src/theme/MDXComponents/Img/index.js +1 -7
  28. package/src/theme/MDXComponents/Img/styles.module.css +1 -1
  29. package/src/theme/MDXComponents/Ul/index.js +1 -1
  30. package/src/theme/MDXComponents/Ul/styles.module.css +2 -2
  31. package/src/theme/Navbar/CTA/index.jsx +3 -1
  32. package/src/theme/Navbar/CTA/styles.module.css +45 -45
  33. package/src/theme/Navbar/Content/index.jsx +29 -28
  34. package/src/theme/Navbar/MobileSidebar/Header/index.jsx +3 -1
  35. package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.jsx +15 -29
  36. package/src/theme/NavbarItem/ComponentTypes.jsx +3 -22
  37. package/src/theme/NavbarItem/NavbarNavLink.jsx +28 -24
  38. package/src/theme/NotFound.jsx +2 -6
  39. package/src/theme/RunnableCodeBlock/RunnableCodeBlock.jsx +43 -9
  40. package/src/theme/SearchBar/index.js +21 -21
  41. package/src/theme/SearchBar/styles.css +84 -83
  42. package/src/theme/SearchMetadata/index.js +8 -8
  43. package/src/theme/SearchPage/index.js +173 -230
  44. package/src/theme/SearchPage/styles.module.css +59 -59
  45. package/src/theme/TOCItems/Tree.jsx +2 -12
  46. package/src/theme/TOCItems/index.jsx +2 -12
  47. package/src/theme/custom.css +73 -75
  48. package/src/theme.js +15 -19
  49. package/src/utils.js +1 -5
  50. package/static/js/custom.js +7 -5
@@ -1,141 +1,142 @@
1
1
  :root {
2
- --docsearch-primary-color: var(--ifm-color-primary);
3
- --docsearch-text-color: var(--ifm-font-color-base);
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
- 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: background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default),
22
- color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
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
- height: 4rem;
27
- padding: 0.8rem 1.6rem !important;
28
- background-color: var(--ifm-color-primary);
29
- border-radius: 8px;
30
- color: var(--color-neutral-text-on-primary);
31
- font-family: inherit;
32
- font-size: 1.6rem;
33
- font-weight: 500;
34
- line-height: 2.4rem;
35
- border: none;
36
- box-shadow: none;
37
- outline: none;
38
- box-sizing: border-box;
39
- cursor: pointer;
40
- display: block;
41
- position: relative;
42
- text-align: center;
43
- transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default);
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
- display: flex;
48
- align-items: center;
48
+ display: flex;
49
+ align-items: center;
49
50
  }
50
51
 
51
52
  .navbar-sidebar .SearchButton-Container {
52
- display: none;
53
+ display: none;
53
54
  }
54
55
 
55
56
  @media (max-width: 768px) {
56
57
  .SearchButton-Container {
57
- width: 100%;
58
+ width: 100%;
58
59
  }
59
60
 
60
61
  .AlgoliaContainer {
61
- flex: 1;
62
+ flex: 1;
62
63
  }
63
64
 
64
65
  .DocSearch-Button {
65
- width: 100%;
66
- justify-content: space-between;
66
+ width: 100%;
67
+ justify-content: space-between;
67
68
  }
68
69
 
69
70
  .navbar__inner .SearchButton-Container {
70
- display: none;
71
+ display: none;
71
72
  }
72
73
 
73
74
  .navbar-sidebar .SearchButton-Container {
74
- display: flex;
75
+ display: flex;
75
76
  }
76
77
 
77
78
  .navbar-sidebar .DocSearch-Button-Placeholder {
78
- display: block;
79
+ display: block;
79
80
  }
80
81
 
81
82
  .navbar-sidebar .DocSearch-Button-Keys {
82
- display: flex;
83
+ display: flex;
83
84
  }
84
85
  }
85
86
 
86
87
  .DocSearch-Button:hover {
87
- box-shadow: none;
88
- background-color: var(--color-Neutral_BackgroundMuted);
89
- color: var(--color-neutral-icon);
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
- display: none;
94
+ display: none;
94
95
  }
95
96
 
96
97
  .DocSearch-Button-Placeholder {
97
- color: inherit;
98
- font-size: 1.4rem;
99
- line-height: 2.4rem;
100
- padding: 0;
101
- transition: color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
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
- width: 3rem;
106
- min-width: unset;
107
- height: 2rem;
108
- background-color: var(--color-neutral-background-subtle);
109
- border: 1px solid var(--color-neutral-border);
110
- border-radius: 4px;
111
- display: flex;
112
- align-items: center;
113
- justify-content: center;
114
- gap: 0.2rem;
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
- top: unset;
119
- width: unset;
120
- min-width: 0.8rem;
121
- height: unset;
122
- margin: unset;
123
- padding: unset;
124
- background: unset;
125
- border-radius: unset;
126
- box-shadow: unset;
127
- color: var(--color-neutral-text-subtle);
128
- font-size: 1.2rem;
129
- font-weight: 500;
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
- width: 1.2rem;
134
- height: 1.2rem;
135
- font-size: 1.6rem;
136
- line-height: 1.2rem;
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
- z-index: calc(var(--ifm-z-index-fixed) + 1);
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
  }