@brillout/docpress 0.16.11 → 0.16.12
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.
|
@@ -41,7 +41,9 @@
|
|
|
41
41
|
select:has(option:nth-of-type(2):not(:checked)) ~ .choice:nth-of-type(2),
|
|
42
42
|
select:has(option:nth-of-type(3):not(:checked)) ~ .choice:nth-of-type(3),
|
|
43
43
|
select:has(option:nth-of-type(4):not(:checked)) ~ .choice:nth-of-type(4),
|
|
44
|
-
select:has(option:nth-of-type(5):not(:checked)) ~ .choice:nth-of-type(5)
|
|
44
|
+
select:has(option:nth-of-type(5):not(:checked)) ~ .choice:nth-of-type(5),
|
|
45
|
+
select:has(option:nth-of-type(6):not(:checked)) ~ .choice:nth-of-type(6),
|
|
46
|
+
select:has(option:nth-of-type(7):not(:checked)) ~ .choice:nth-of-type(7) {
|
|
45
47
|
display: none;
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -26,7 +26,7 @@ function ChoiceGroup({
|
|
|
26
26
|
hide = false,
|
|
27
27
|
}: { children: React.ReactNode; choices: string[]; hide: boolean }) {
|
|
28
28
|
const pageContext = usePageContext()
|
|
29
|
-
const cleanChoices = choices.map(c => c.split(':')[0])
|
|
29
|
+
const cleanChoices = choices.map((c) => c.split(':')[0])
|
|
30
30
|
const choiceGroup = findChoiceGroup(pageContext, cleanChoices)
|
|
31
31
|
const [selectedChoice, setSelectedChoice] = useSelectedChoice(choiceGroup.name, choiceGroup.default)
|
|
32
32
|
const isJsDropdownVisible = choices.indexOf(`${selectedChoice}:jsDropdown`) !== -1
|
package/package.json
CHANGED
|
@@ -108,11 +108,17 @@ function getOpenGraphTags(url: string, documentTitle: string, config: Config) {
|
|
|
108
108
|
// - Single PNG:
|
|
109
109
|
// https://rubyonrails.org
|
|
110
110
|
// - Favicon shown in browser is different than favicon shown in Google:
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
//
|
|
114
|
-
// https://
|
|
115
|
-
//
|
|
111
|
+
// - Resources:
|
|
112
|
+
// https://gemini.google.com/share/8bcf76a26783
|
|
113
|
+
// https://chatgpt.com/share/696930b6-4414-800d-9c55-598ac7fa1ccb
|
|
114
|
+
// - https://evilmartians.com
|
|
115
|
+
// Shown in Google: <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> or <link rel="manifest" href="/manifest.webmanifest" />
|
|
116
|
+
// Shown in Browser: <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
117
|
+
// Google preview is fake (it picks the browser one, not the Google one): https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://evilmartians.com&size=48
|
|
118
|
+
// - https://vike.dev
|
|
119
|
+
// Shown in Google: <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
120
|
+
// Shown in Browser: <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
121
|
+
// Google preview is fake (it picks the browser one, not the Google one): https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://vike.dev&size=48
|
|
116
122
|
function getFaviconTags(config: Config) {
|
|
117
123
|
const { faviconBrowser, faviconGoogle } = getFavicons(config)
|
|
118
124
|
assert(faviconBrowser)
|