Skip to content

Commit 0a28ff4

Browse files
committed
docs: update @stevenleep/comparison registiry
1 parent 31c5e0a commit 0a28ff4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2818
-3376
lines changed

.npmrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@stevenleep:registry=https://npm.pkg.github.com
2-
//npm.pkg.github.com/:_authToken=$YOUR_GITHUB_TOKEN
1+
# @stevenleep:registry=https://npm.pkg.github.com
2+
# //npm.pkg.github.com/:_authToken=$YOUR_GITHUB_TOKEN

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Usage Scenarios:
1212

1313
## Install
1414
```bash
15-
pnpm install @renovator/version
15+
pnpm install @stevenleep/comparison
1616
```
1717

1818
## Features
@@ -27,7 +27,7 @@ pnpm install @renovator/version
2727
- [API Documents](https://branlice.github.io/version/modules.html)
2828

2929
```typescript
30-
import { compare } from "@renovator/version";
30+
import { compare } from "@stevenleep/comparison";
3131

3232
const version1 = "1.0.0";
3333
const version2 = "2.0.0";

docs/doc/assets/highlight.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
:root {
2-
--light-hl-0: #795E26;
3-
--dark-hl-0: #DCDCAA;
4-
--light-hl-1: #000000;
5-
--dark-hl-1: #D4D4D4;
6-
--light-hl-2: #A31515;
7-
--dark-hl-2: #CE9178;
8-
--light-hl-3: #AF00DB;
9-
--dark-hl-3: #C586C0;
10-
--light-hl-4: #001080;
11-
--dark-hl-4: #9CDCFE;
12-
--light-hl-5: #0000FF;
13-
--dark-hl-5: #569CD6;
14-
--light-hl-6: #0070C1;
15-
--dark-hl-6: #4FC1FF;
2+
--light-hl-0: #000000;
3+
--dark-hl-0: #D4D4D4;
4+
--light-hl-1: #AF00DB;
5+
--dark-hl-1: #C586C0;
6+
--light-hl-2: #001080;
7+
--dark-hl-2: #9CDCFE;
8+
--light-hl-3: #A31515;
9+
--dark-hl-3: #CE9178;
10+
--light-hl-4: #0000FF;
11+
--dark-hl-4: #569CD6;
12+
--light-hl-5: #0070C1;
13+
--dark-hl-5: #4FC1FF;
14+
--light-hl-6: #795E26;
15+
--dark-hl-6: #DCDCAA;
1616
--light-hl-7: #008000;
1717
--dark-hl-7: #6A9955;
1818
--light-code-background: #FFFFFF;

docs/doc/assets/main.js

Lines changed: 52 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/doc/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/doc/assets/style.css

Lines changed: 7 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
/* Light */
33
--light-color-background: #f2f4f8;
44
--light-color-background-secondary: #eff0f1;
5-
--light-color-warning-text: #222;
6-
--light-color-background-warning: #e6e600;
75
--light-color-icon-background: var(--light-color-background);
86
--light-color-accent: #c5c7c9;
97
--light-color-text: #222;
@@ -23,8 +21,6 @@
2321
/* Dark */
2422
--dark-color-background: #2b2e33;
2523
--dark-color-background-secondary: #1e2024;
26-
--dark-color-background-warning: #bebe00;
27-
--dark-color-warning-text: #222;
2824
--dark-color-icon-background: var(--dark-color-background-secondary);
2925
--dark-color-accent: #9096a2;
3026
--dark-color-text: #f5f5f5;
@@ -46,8 +42,6 @@
4642
:root {
4743
--color-background: var(--light-color-background);
4844
--color-background-secondary: var(--light-color-background-secondary);
49-
--color-background-warning: var(--light-color-background-warning);
50-
--color-warning-text: var(--light-color-warning-text);
5145
--color-icon-background: var(--light-color-icon-background);
5246
--color-accent: var(--light-color-accent);
5347
--color-text: var(--light-color-text);
@@ -70,8 +64,6 @@
7064
:root {
7165
--color-background: var(--dark-color-background);
7266
--color-background-secondary: var(--dark-color-background-secondary);
73-
--color-background-warning: var(--dark-color-background-warning);
74-
--color-warning-text: var(--dark-color-warning-text);
7567
--color-icon-background: var(--dark-color-icon-background);
7668
--color-accent: var(--dark-color-accent);
7769
--color-text: var(--dark-color-text);
@@ -101,8 +93,6 @@ body {
10193
:root[data-theme="light"] {
10294
--color-background: var(--light-color-background);
10395
--color-background-secondary: var(--light-color-background-secondary);
104-
--color-background-warning: var(--light-color-background-warning);
105-
--color-warning-text: var(--light-color-warning-text);
10696
--color-icon-background: var(--light-color-icon-background);
10797
--color-accent: var(--light-color-accent);
10898
--color-text: var(--light-color-text);
@@ -123,8 +113,6 @@ body {
123113
:root[data-theme="dark"] {
124114
--color-background: var(--dark-color-background);
125115
--color-background-secondary: var(--dark-color-background-secondary);
126-
--color-background-warning: var(--dark-color-background-warning);
127-
--color-warning-text: var(--dark-color-warning-text);
128116
--color-icon-background: var(--dark-color-icon-background);
129117
--color-accent: var(--dark-color-accent);
130118
--color-text: var(--dark-color-text);
@@ -142,11 +130,6 @@ body {
142130
--color-scheme: var(--dark-color-scheme);
143131
}
144132

145-
.always-visible,
146-
.always-visible .tsd-signatures {
147-
display: inherit !important;
148-
}
149-
150133
h1,
151134
h2,
152135
h3,
@@ -483,9 +466,10 @@ blockquote {
483466
.has-menu .col-menu {
484467
visibility: visible;
485468
transform: translate(0, 0);
486-
display: flex;
487-
flex-direction: column;
488-
gap: 1.5rem;
469+
display: grid;
470+
align-items: center;
471+
grid-template-rows: auto 1fr;
472+
grid-gap: 1.5rem;
489473
max-height: 100vh;
490474
padding: 1rem 2rem;
491475
}
@@ -841,15 +825,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
841825
padding-left: 5.5rem;
842826
}
843827

844-
#tsd-sidebar-links a {
845-
margin-top: 0;
846-
margin-bottom: 0.5rem;
847-
line-height: 1.25rem;
848-
}
849-
#tsd-sidebar-links a:last-of-type {
850-
margin-bottom: 0;
851-
}
852-
853828
a.tsd-index-link {
854829
margin: 0.25rem 0;
855830
font-size: 1rem;
@@ -910,7 +885,7 @@ a.tsd-index-link {
910885
margin-right: 0.8rem;
911886
}
912887

913-
@media (min-width: 1025px) {
888+
@media (min-width: 1024px) {
914889
.col-content {
915890
margin: 2rem auto;
916891
}
@@ -1003,8 +978,7 @@ a.tsd-index-link {
1003978
right: -40px;
1004979
}
1005980
#tsd-search .field input,
1006-
#tsd-search .title,
1007-
#tsd-toolbar-links a {
981+
#tsd-search .title {
1008982
transition: opacity 0.2s;
1009983
}
1010984
#tsd-search .results {
@@ -1048,8 +1022,7 @@ a.tsd-index-link {
10481022
top: 0;
10491023
opacity: 1;
10501024
}
1051-
#tsd-search.has-focus .title,
1052-
#tsd-search.has-focus #tsd-toolbar-links a {
1025+
#tsd-search.has-focus .title {
10531026
z-index: 0;
10541027
opacity: 0;
10551028
}
@@ -1063,22 +1036,6 @@ a.tsd-index-link {
10631036
display: block;
10641037
}
10651038

1066-
#tsd-toolbar-links {
1067-
position: absolute;
1068-
top: 0;
1069-
right: 2rem;
1070-
height: 100%;
1071-
display: flex;
1072-
align-items: center;
1073-
justify-content: flex-end;
1074-
}
1075-
#tsd-toolbar-links a {
1076-
margin-left: 1.5rem;
1077-
}
1078-
#tsd-toolbar-links a:hover {
1079-
text-decoration: underline;
1080-
}
1081-
10821039
.tsd-signature {
10831040
margin: 0 0 1rem 0;
10841041
padding: 1rem 0.5rem;
@@ -1167,7 +1124,6 @@ ul.tsd-type-parameter-list h5 {
11671124
display: flex;
11681125
justify-content: space-between;
11691126
height: 2.5rem;
1170-
margin: 0 auto;
11711127
}
11721128
.tsd-page-toolbar .table-cell {
11731129
position: relative;
@@ -1177,11 +1133,6 @@ ul.tsd-type-parameter-list h5 {
11771133
.tsd-page-toolbar .table-cell:first-child {
11781134
width: 100%;
11791135
}
1180-
.tsd-page-toolbar .tsd-toolbar-icon {
1181-
box-sizing: border-box;
1182-
line-height: 0;
1183-
padding: 12px 0;
1184-
}
11851136

11861137
.tsd-page-toolbar--hide {
11871138
transform: translateY(-100%);
@@ -1253,12 +1204,6 @@ img {
12531204
text-decoration: line-through;
12541205
}
12551206

1256-
.warning {
1257-
padding: 1rem;
1258-
color: var(--color-warning-text);
1259-
background: var(--color-background-warning);
1260-
}
1261-
12621207
* {
12631208
scrollbar-width: thin;
12641209
scrollbar-color: var(--color-accent) var(--color-icon-background);

docs/doc/assets/widgets.png

480 Bytes
Loading

docs/doc/assets/[email protected]

855 Bytes
Loading

0 commit comments

Comments
 (0)