@brillout/docpress 0.5.21 → 0.5.23

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Emoji
3
- } from "./chunk-OFUQWIQL.js";
3
+ } from "./chunk-UN23G34B.js";
4
4
  import {
5
5
  assert
6
6
  } from "./chunk-2ZTPUQGS.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  determineSectionUrlHash
3
- } from "./chunk-OFUQWIQL.js";
3
+ } from "./chunk-UN23G34B.js";
4
4
  import {
5
5
  assert
6
6
  } from "./chunk-2ZTPUQGS.js";
@@ -25,16 +25,13 @@ function determineSectionUrlHash(title) {
25
25
  function removeAccentsAndDiacritics(str) {
26
26
  return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
27
27
  }
28
- function determineSectionTitle(urlWithHash, titleNormalCase) {
28
+ function determineSectionTitle(urlWithHash) {
29
29
  assert(urlWithHash.includes("#"), { urlWithHash });
30
30
  const urlHash = urlWithHash.split("#")[1];
31
31
  const title = urlHash.split("-").map((word, i) => {
32
32
  if (i === 0) {
33
33
  return capitalizeFirstLetter(word);
34
34
  }
35
- if (!titleNormalCase && word.length >= 4) {
36
- return capitalizeFirstLetter(word);
37
- }
38
35
  return word;
39
36
  }).join(" ");
40
37
  return title;
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_config_default
3
- } from "../chunk-PHRTR4OU.js";
4
- import "../chunk-OFUQWIQL.js";
3
+ } from "../chunk-QWL3MA4E.js";
4
+ import "../chunk-UN23G34B.js";
5
5
  import "../chunk-2ZTPUQGS.js";
6
6
  import "../chunk-3QC7HYIF.js";
7
7
 
@@ -16,7 +16,7 @@ Error.stackTraceLimit = Infinity;
16
16
  cli();
17
17
  async function cli() {
18
18
  if (isDev) {
19
- await import("../devServer-QUFP2E4K.js");
19
+ await import("../devServer-5TQPITGW.js");
20
20
  } else if (isBuild) {
21
21
  await build(vite_config_default);
22
22
  await build({ ...vite_config_default, build: { ssr: true } });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_config_default
3
- } from "./chunk-PHRTR4OU.js";
4
- import "./chunk-OFUQWIQL.js";
3
+ } from "./chunk-QWL3MA4E.js";
4
+ import "./chunk-UN23G34B.js";
5
5
  import "./chunk-2ZTPUQGS.js";
6
6
  import "./chunk-3QC7HYIF.js";
7
7
 
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ declare function isBrowser(): boolean;
10
10
  declare function filter<T extends object>(obj: T, predicate: <K extends keyof T>(value: T[K], key: K) => boolean): T;
11
11
 
12
12
  declare function determineSectionUrlHash(title: string): string | null;
13
- declare function determineSectionTitle(urlWithHash: string, titleNormalCase: boolean): string;
13
+ declare function determineSectionTitle(urlWithHash: string): string;
14
14
 
15
15
  declare function jsxToTextContent(node: JSX.Element | string): string;
16
16
 
@@ -84,7 +84,6 @@ type Config = {
84
84
  navHeaderMobileWrapperStyle?: React.CSSProperties;
85
85
  navHeader: React.ReactNode;
86
86
  navHeaderWrapperStyle?: React.CSSProperties;
87
- titleNormalCase: boolean;
88
87
  tagline: string;
89
88
  websiteUrl: string;
90
89
  bannerUrl?: string;
@@ -95,12 +94,11 @@ type Config = {
95
94
  sponsorGithubAccount?: string;
96
95
  };
97
96
 
98
- declare function Link({ href, text, noBreadcrumb, doNotInferSectionTitle, titleNormalCase, children }: {
97
+ declare function Link({ href, text, noBreadcrumb, doNotInferSectionTitle, children }: {
99
98
  href: string;
100
99
  text?: string | JSX.Element;
101
100
  noBreadcrumb?: true;
102
101
  doNotInferSectionTitle?: true;
103
- titleNormalCase?: boolean;
104
102
  children?: React$1.ReactNode;
105
103
  }): JSX.Element;
106
104
 
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  isRepoLink,
4
4
  parseTitle,
5
5
  usePageContext
6
- } from "./chunk-SXKTLA5S.js";
6
+ } from "./chunk-GMA6WHHB.js";
7
7
  import {
8
8
  FeatureList
9
9
  } from "./chunk-NVJING6T.js";
@@ -15,7 +15,7 @@ import {
15
15
  filter,
16
16
  jsxToTextContent,
17
17
  objectAssign
18
- } from "./chunk-OFUQWIQL.js";
18
+ } from "./chunk-UN23G34B.js";
19
19
  import {
20
20
  assert,
21
21
  assertUsage,
@@ -31,7 +31,6 @@ function Link({
31
31
  text,
32
32
  noBreadcrumb,
33
33
  doNotInferSectionTitle,
34
- titleNormalCase,
35
34
  children
36
35
  }) {
37
36
  assertUsage(
@@ -48,15 +47,14 @@ function Link({
48
47
  const pageContext = usePageContext();
49
48
  return /* @__PURE__ */ React.createElement("a", {
50
49
  href
51
- }, children || text || getTitle({ href, noBreadcrumb, pageContext, doNotInferSectionTitle, titleNormalCase }));
50
+ }, children || text || getTitle({ href, noBreadcrumb, pageContext, doNotInferSectionTitle }));
52
51
  }
53
52
  }
54
53
  function getTitle({
55
54
  href,
56
55
  noBreadcrumb,
57
56
  pageContext,
58
- doNotInferSectionTitle,
59
- titleNormalCase
57
+ doNotInferSectionTitle
60
58
  }) {
61
59
  let urlHash = null;
62
60
  let hrefWithoutHash = href;
@@ -107,9 +105,7 @@ function getTitle({
107
105
  !doNotInferSectionTitle,
108
106
  `Page section title not found for <Link href="\`${href}\`" doNotInferSectionTitle={true} />.`
109
107
  );
110
- if (titleNormalCase === void 0)
111
- titleNormalCase = pageContext.config.titleNormalCase;
112
- sectionTitle = determineSectionTitle(href, titleNormalCase);
108
+ sectionTitle = determineSectionTitle(href);
113
109
  }
114
110
  breadcrumbs.push(sectionTitle);
115
111
  }
@@ -319,6 +315,7 @@ var alignable_default = "/assets/alignable-B4QZV4X7.svg";
319
315
 
320
316
  // src/components/Sponsors/sponsorsList.ts
321
317
  var individuals = [
318
+ { username: "HarshwardhanSingh" },
322
319
  { username: "d3x7r0" },
323
320
  { username: "ChristophP" },
324
321
  { username: "msiegenthaler" },
@@ -4,12 +4,12 @@ import {
4
4
  getHeadingsWithProcessedTitle,
5
5
  parseTitle,
6
6
  usePageContext
7
- } from "../chunk-SXKTLA5S.js";
7
+ } from "../chunk-GMA6WHHB.js";
8
8
  import {
9
9
  Emoji,
10
10
  jsxToTextContent,
11
11
  objectAssign
12
- } from "../chunk-OFUQWIQL.js";
12
+ } from "../chunk-UN23G34B.js";
13
13
  import {
14
14
  assert,
15
15
  assertUsage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.5.21",
3
+ "version": "0.5.23",
4
4
  "scripts": {
5
5
  "// Check types while developing": "",
6
6
  "types": "tsc --noEmit --watch",
@@ -25,8 +25,8 @@
25
25
  "remark-gfm": "^3.0.1",
26
26
  "shiki": "^0.10.1",
27
27
  "twemoji": "^13.1.0",
28
- "vite": "^4.3.9",
29
- "vike": "^0.4.143"
28
+ "vike": "^0.4.143",
29
+ "vite": "^4.3.9"
30
30
  },
31
31
  "type": "module",
32
32
  "exports": {
@@ -63,7 +63,7 @@
63
63
  "devDependencies": {
64
64
  "@brillout/docpress": "link:.",
65
65
  "@brillout/framework-builder": "^0.1.1",
66
- "@brillout/release-me": "^0.1.0",
66
+ "@brillout/release-me": "^0.1.9",
67
67
  "@types/express": "^4.17.13",
68
68
  "@types/node": "^15.12.1",
69
69
  "@types/react": "^17.0.44",