@brillout/docpress 0.15.13 → 0.16.1

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/icons/coin.svg ADDED
@@ -0,0 +1,38 @@
1
+ <svg width="448.52" height="448.52" data-name="Layer 1" version="1.1" viewBox="0 0 448.52 448.52" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <linearGradient id="linear-gradient" x1="256" x2="256" y1="460.43" y2="11.91" gradientTransform="translate(-31.74,-11)" gradientUnits="userSpaceOnUse">
4
+ <stop stop-color="#bd7f26" offset="0"/>
5
+ <stop stop-color="#e3ca75" offset="1"/>
6
+ </linearGradient>
7
+ <linearGradient id="linear-gradient-2" x1="256" x2="256" y1="449.56" y2="22.68" gradientTransform="translate(-31.74,-11)" gradientUnits="userSpaceOnUse">
8
+ <stop stop-color="#e5b151" offset="0"/>
9
+ <stop stop-color="#ffd645" offset="1"/>
10
+ </linearGradient>
11
+ <linearGradient id="linear-gradient-3" x1="1902.1" x2="1902.1" y1="5236.8" y2="4882" gradientTransform="rotate(180 1063.2 2641.5)" gradientUnits="userSpaceOnUse">
12
+ <stop stop-color="#bd7f26" offset="0"/>
13
+ <stop stop-color="#fbf2ac" offset="1"/>
14
+ </linearGradient>
15
+ <linearGradient id="linear-gradient-4" x1="1902.1" x2="1902.1" y1="5228.2" y2="4890.5" gradientTransform="rotate(180 1063.2 2641.5)" gradientUnits="userSpaceOnUse">
16
+ <stop stop-color="#edb300" offset="0"/>
17
+ <stop stop-color="#be871d" offset="1"/>
18
+ </linearGradient>
19
+ <linearGradient id="linear-gradient-5" x1="256" x2="256" y1="372.53" y2="113.06" gradientTransform="translate(-31.74,-11)" gradientUnits="userSpaceOnUse">
20
+ <stop stop-color="#bd7f26" offset="0"/>
21
+ <stop stop-color="#bd7f26" offset="1"/>
22
+ </linearGradient>
23
+ <linearGradient id="linear-gradient-6" x1="256" x2="256" y1="105.52" y2="365" gradientTransform="translate(-31.74,-11)" gradientUnits="userSpaceOnUse">
24
+ <stop stop-color="#ffd645" offset="0"/>
25
+ <stop stop-color="#e5b151" offset="1"/>
26
+ </linearGradient>
27
+ </defs>
28
+ <title>dollar_coin</title>
29
+ <g fill-rule="evenodd">
30
+ <path d="m224.26 448.52c123.53 0 224.26-100.67 224.26-224.13 0-123.73-100.73-224.39-224.26-224.39s-224.26 100.66-224.26 224.39c0 123.46 100.74 224.13 224.26 224.13z" fill="url(#linear-gradient)"/>
31
+ <path d="m224.26 437.7c117.57 0 213.44-95.81 213.44-213.31 0-117.76-95.87-213.57-213.44-213.57s-213.44 95.81-213.44 213.57c0 117.5 95.88 213.31 213.44 213.31z" fill="url(#linear-gradient-2)"/>
32
+ <path d="m224.26 46.89c-97.7 0-177.37 79.62-177.37 177.27 0 97.84 79.67 177.47 177.37 177.47s177.37-79.63 177.37-177.47c0-97.65-79.67-177.27-177.37-177.27z" fill="url(#linear-gradient-3)"/>
33
+ <path d="m224.26 55.45c-93 0-168.81 75.78-168.81 168.71 0 93.14 75.81 168.91 168.81 168.91s168.81-75.77 168.81-168.91c0-92.93-75.81-168.71-168.81-168.71z" fill="url(#linear-gradient-4)"/>
34
+ <path d="m158 271.81h13.42c15.66 0 15.41 2.48 22.62 14.66 8 13.42 26.1 21.37 45.48 13.17 9.69-4.22 17.15-17.14 8.7-32.06-8-14.41-26.59-16.4-45-20.88-19.89-5-40.76-11.68-51-26.84-15.66-23.86-15.41-57.66 17.4-78.29 13.17-8.21 26.6-13.42 41.76-14.91v-14.41c0-10.69 3-10.19 12.92-10.19 4.48 0 8 0.24 9.95 1.74s2.23 4.47 2.23 9.19v13.92a62.1 62.1 0 0 1 9.44 1.49c27.34 4.72 45.23 15.41 53.43 43.24 4.23 14.17-2.73 17.15-15.65 17.15h-19.82c-12.43 0-14.66-3-17.89-14.41-1.49-4.72-3.73-8.2-7.45-10.44-15.91-9.69-43.75-1.74-42.5 19.63 1 14.17 20.62 19.38 40.76 25.6 26.1 7.7 53.69 15.16 64.62 39.76 11.68 26.6 4.47 56.42-25.1 73.32a106.88 106.88 0 0 1-39.77 12.92v14.66c0 10.69-2 11.68-11.93 11.68-10.68 0-13.17 0-13.17-11.68v-14.4a145.16 145.16 0 0 1-20.14-3c-27.09-5.71-40.76-17.64-48.21-43.74-3.98-14.4 1.24-16.88 14.9-16.88z" fill="url(#linear-gradient-5)"/>
35
+ <path d="m158 256.74h13.42c15.66 0 15.41 2.48 22.62 14.66 8 13.42 26.1 21.37 45.48 13.17 9.69-4.22 17.15-17.14 8.7-32.06-8-14.41-26.59-16.4-45-20.88-19.89-5-40.76-11.68-51-26.84-15.66-23.86-15.41-57.66 17.4-78.29 13.17-8.21 26.6-13.42 41.76-14.91v-14.41c0-10.69 3-10.19 12.92-10.19 4.48 0 8 0.24 9.95 1.74s2.23 4.47 2.23 9.19v13.92a62.1 62.1 0 0 1 9.44 1.49c27.34 4.72 45.23 15.41 53.43 43.24 4.23 14.17-2.73 17.15-15.65 17.15h-19.82c-12.43 0-14.66-3-17.89-14.41-1.49-4.72-3.73-8.2-7.45-10.44-15.91-9.69-43.75-1.74-42.5 19.63 1 14.17 20.62 19.38 40.76 25.6 26.1 7.7 53.69 15.16 64.62 39.76 11.68 26.6 4.47 56.42-25.1 73.32a106.88 106.88 0 0 1-39.77 12.92v14.66c0 10.69-2 11.68-11.93 11.68-10.68 0-13.17 0-13.17-11.68v-14.39a145.16 145.16 0 0 1-20.14-3c-27.09-5.71-40.76-17.64-48.21-43.74-3.98-14.41 1.24-16.89 14.9-16.89z" fill="#fbf2ac"/>
36
+ <path d="m158 264.27h13.42c15.66 0 15.41 2.48 22.62 14.66 8 13.42 26.1 21.37 45.48 13.17 9.74-4.21 17.15-17.1 8.74-32.1-8-14.41-26.59-16.4-45-20.88-19.89-5-40.76-11.68-51-26.84-15.66-23.86-15.41-57.66 17.4-78.29 13.17-8.21 26.6-13.42 41.76-14.91v-14.37c0-10.69 3-10.19 12.92-10.19 4.48 0 8 0.24 9.95 1.74s2.23 4.47 2.23 9.19v13.92a62.1 62.1 0 0 1 9.44 1.49c27.34 4.72 45.23 15.41 53.43 43.24 4.23 14.17-2.73 17.15-15.65 17.15h-19.86c-12.43 0-14.66-3-17.89-14.41-1.49-4.72-3.73-8.2-7.45-10.44-15.91-9.69-43.75-1.74-42.5 19.63 1 14.17 20.62 19.38 40.76 25.6 26.1 7.7 53.69 15.16 64.62 39.76 11.68 26.6 4.47 56.42-25.1 73.32a106.88 106.88 0 0 1-39.77 12.92v14.66c0 10.69-2 11.68-11.93 11.68-10.68 0-13.17 0-13.17-11.68v-14.39a145.16 145.16 0 0 1-20.14-3c-27.09-5.71-40.76-17.64-48.21-43.74-3.98-14.4 1.24-16.89 14.9-16.89z" fill="url(#linear-gradient-6)"/>
37
+ </g>
38
+ </svg>
package/icons/index.ts CHANGED
@@ -8,3 +8,6 @@ export { default as iconCompass } from './compass.svg'
8
8
  export { default as iconScroll } from './scroll.svg'
9
9
  export { default as iconGlobe } from './globe.svg'
10
10
  export { default as iconPlug } from './plug.svg'
11
+ export { default as iconLoudspeaker } from './loudspeaker.svg'
12
+ export { default as iconMegaphone } from './megaphone.svg'
13
+ export { default as iconCoin } from './coin.svg'
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#BE1931" d="M12.908 30.75c-.276 2.209-2.291 3-4.5 3s-3.776-1.791-3.5-4l1-9c.276-2.209 2.291-4 4.5-4s6.468 0 3.5 4-1 10-1 10z"/><path fill="#CCD6DD" d="M35.825 14.75c0 6.902-1.544 12.5-3.45 12.5-1.905 0-20.45-5.598-20.45-12.5 0-6.903 18.545-12.5 20.45-12.5 1.906 0 3.45 5.597 3.45 12.5z"/><ellipse fill="#66757F" cx="32.375" cy="14.75" rx="3.45" ry="12.5"/><path fill="#DD2E44" d="M17.925 21.75l-14-1c-5 0-5-12 0-12l14-1c-3 3-3 11 0 14z"/><ellipse fill="#99AAB5" cx="31.325" cy="14.75" rx="1.5" ry="4.348"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="800px" height="800px" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--noto" preserveAspectRatio="xMidYMid meet"><path d="M65.82 111.42l-13.38.54c-4.53-.1-6.01-1.45-7.62-5.53l-3.41-8.6l6.28-1.31l2.95 7.45a1.99 1.99 0 0 0 1.99 1.26l10.5-.76c2.93-.31 3.41-2 2.78-3.59l-3.16-7.97l7.98-2.78l3.47 8.77c1.09 2.76 1.83 5.82.57 8.31c-1.45 2.87-3.77 3.99-8.95 4.21z" fill="#82aec0"></path><path d="M41.63 98.38l1.82 4.59s.71-1.06 3.02-1.26c2.63-.23 3.66.96 3.66.96l-1.87-4.72l-6.63.43z" fill="#2f7889"></path><path d="M64.35 96.92l8.85-.59c1.2 2.59 1.73 4.63 1.73 4.63s-1.85-1.55-5.29-1.32c-2.46.16-3.49 1.87-3.49 1.87l-1.8-4.59z" fill="#2f7889"></path><ellipse transform="rotate(-21.604 15.324 86.192)" cx="15.33" cy="86.2" rx="9.89" ry="17.95" fill="#b8dade"></ellipse><path d="M26.58 94.5c-1.96-1.48-7.27 2.58-7.27 2.58c-.68 4.75-5.93 3.38-5.93 3.38c2.89 2.44 5.98 3.44 8.56 2.42c2.74-1.08 4.33-4.25 4.64-8.38z" fill="#82aec0"></path><path d="M80.96 14.59L13.37 69.62c-2.68 1.84-3.95 9.22-.63 17.6s9.4 13.24 12.58 12.18l86.86-5.94c9.43-3.73 10.08-24.42 1.46-46.2s-23.25-36.4-32.68-32.67z" fill="#f44336"></path><path d="M95.17 80.52c3.19 4.71-1.91 4.92-22.42 8.34c-5.61.94-53.44 8.23-53.44 8.23c1.29 1.19 3.87 3.04 6.07 2.33c0 0 85.21-5.32 86.81-5.95L95.17 80.52z" fill="#c62828"></path><path d="M73.39 27.74c1.4-1.01 3.41-2.57 3.89-5.27c.25-1.41.43-3.02.76-3.71c.65-1.37 3.14-4.51 3.14-4.51l-67.8 55.37c-1.83 1.25-2.09 3.34-2.09 3.34c10.38-7.78 51.78-37.75 62.1-45.22z" fill="#c62828"></path><ellipse transform="rotate(-21.604 100.448 52.485)" cx="100.46" cy="52.49" rx="18.08" ry="44.77" fill="#b8dade"></ellipse><ellipse transform="rotate(-21.604 102.614 51.627)" cx="102.62" cy="51.63" rx="11.86" ry="37.15" fill="#2f7889"></ellipse><linearGradient id="IconifyId17ecdb2904d178eab13617" gradientUnits="userSpaceOnUse" x1="115.708" y1="83.059" x2="103.15" y2="52.92"><stop offset="0" stop-color="#353738"></stop><stop offset="1" stop-color="#353738" stop-opacity="0"></stop></linearGradient><path d="M116.3 86.17c6.09-2.41 4.9-19.83-2.65-38.91L91.6 56c7.55 19.07 18.61 32.58 24.7 30.17z" fill="url(#IconifyId17ecdb2904d178eab13617)"></path><path d="M79.71 37.64c-1.29-5.68-1.18-10.86-.36-14.91c.23-1.1.99-2.42 2.12-2.29c1.12.13 1.45 1.19 1.32 2.31c-.44 3.82-.1 9.08.92 14.07c.23 1.11.21 2.56-1.36 3.12c-1.36.5-2.41-1.3-2.64-2.3z" fill="#ffffff"></path><path d="M15 75.47l55.73-37.52c1.7-1.13 3.81-3 4.23.76c.26 2.34.56 4.36.35 7.4c-.13 1.89-3.84 3.35-5 3.94L14.93 78.84c-.84.42-2.4.81-2.14-.7c.29-1.63 1.76-2.37 2.21-2.67z" opacity=".45" fill="#ffca28"></path></svg>
@@ -28,7 +28,9 @@ function installSectionUrlHashs() {
28
28
  }
29
29
 
30
30
  function assertNavLink(urlHash: string, heading: HTMLHeadingElement) {
31
- const navigationEl = document.querySelector('#nav-left .navigation-content')!
31
+ const navigationContainerEl = document.querySelector('#nav-left')
32
+ if (!navigationContainerEl) return
33
+ const navigationEl = navigationContainerEl.querySelector('.navigation-content')!
32
34
  {
33
35
  const { pathname } = window.location
34
36
  const parentNavLinkMatch = Array.from(navigationEl.querySelectorAll(`a[href="${pathname}"]`))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.15.13",
3
+ "version": "0.16.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
@@ -1,4 +1,4 @@
1
1
  export function getViewportWidth(): number {
2
- // `window.innerWidth` inlcudes scrollbar width: https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
3
- return document.documentElement.clientWidth
2
+ // Width without scrollbar
3
+ return document.documentElement.scrollWidth
4
4
  }