Skip to content

Commit

Permalink
docs: update @stevenleep/comparison registiry
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenleep committed Jun 9, 2024
1 parent 31c5e0a commit 0a28ff4
Show file tree
Hide file tree
Showing 43 changed files with 2,818 additions and 3,376 deletions.
4 changes: 2 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@stevenleep:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=$YOUR_GITHUB_TOKEN
# @stevenleep:registry=https://npm.pkg.github.com
# //npm.pkg.github.com/:_authToken=$YOUR_GITHUB_TOKEN
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Usage Scenarios:

## Install
```bash
pnpm install @renovator/version
pnpm install @stevenleep/comparison
```

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

```typescript
import { compare } from "@renovator/version";
import { compare } from "@stevenleep/comparison";

const version1 = "1.0.0";
const version2 = "2.0.0";
Expand Down
28 changes: 14 additions & 14 deletions docs/doc/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
:root {
--light-hl-0: #795E26;
--dark-hl-0: #DCDCAA;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-hl-3: #AF00DB;
--dark-hl-3: #C586C0;
--light-hl-4: #001080;
--dark-hl-4: #9CDCFE;
--light-hl-5: #0000FF;
--dark-hl-5: #569CD6;
--light-hl-6: #0070C1;
--dark-hl-6: #4FC1FF;
--light-hl-0: #000000;
--dark-hl-0: #D4D4D4;
--light-hl-1: #AF00DB;
--dark-hl-1: #C586C0;
--light-hl-2: #001080;
--dark-hl-2: #9CDCFE;
--light-hl-3: #A31515;
--dark-hl-3: #CE9178;
--light-hl-4: #0000FF;
--dark-hl-4: #569CD6;
--light-hl-5: #0070C1;
--dark-hl-5: #4FC1FF;
--light-hl-6: #795E26;
--dark-hl-6: #DCDCAA;
--light-hl-7: #008000;
--dark-hl-7: #6A9955;
--light-code-background: #FFFFFF;
Expand Down
108 changes: 52 additions & 56 deletions docs/doc/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/doc/assets/search.js

Large diffs are not rendered by default.

69 changes: 7 additions & 62 deletions docs/doc/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
/* Light */
--light-color-background: #f2f4f8;
--light-color-background-secondary: #eff0f1;
--light-color-warning-text: #222;
--light-color-background-warning: #e6e600;
--light-color-icon-background: var(--light-color-background);
--light-color-accent: #c5c7c9;
--light-color-text: #222;
Expand All @@ -23,8 +21,6 @@
/* Dark */
--dark-color-background: #2b2e33;
--dark-color-background-secondary: #1e2024;
--dark-color-background-warning: #bebe00;
--dark-color-warning-text: #222;
--dark-color-icon-background: var(--dark-color-background-secondary);
--dark-color-accent: #9096a2;
--dark-color-text: #f5f5f5;
Expand All @@ -46,8 +42,6 @@
:root {
--color-background: var(--light-color-background);
--color-background-secondary: var(--light-color-background-secondary);
--color-background-warning: var(--light-color-background-warning);
--color-warning-text: var(--light-color-warning-text);
--color-icon-background: var(--light-color-icon-background);
--color-accent: var(--light-color-accent);
--color-text: var(--light-color-text);
Expand All @@ -70,8 +64,6 @@
:root {
--color-background: var(--dark-color-background);
--color-background-secondary: var(--dark-color-background-secondary);
--color-background-warning: var(--dark-color-background-warning);
--color-warning-text: var(--dark-color-warning-text);
--color-icon-background: var(--dark-color-icon-background);
--color-accent: var(--dark-color-accent);
--color-text: var(--dark-color-text);
Expand Down Expand Up @@ -101,8 +93,6 @@ body {
:root[data-theme="light"] {
--color-background: var(--light-color-background);
--color-background-secondary: var(--light-color-background-secondary);
--color-background-warning: var(--light-color-background-warning);
--color-warning-text: var(--light-color-warning-text);
--color-icon-background: var(--light-color-icon-background);
--color-accent: var(--light-color-accent);
--color-text: var(--light-color-text);
Expand All @@ -123,8 +113,6 @@ body {
:root[data-theme="dark"] {
--color-background: var(--dark-color-background);
--color-background-secondary: var(--dark-color-background-secondary);
--color-background-warning: var(--dark-color-background-warning);
--color-warning-text: var(--dark-color-warning-text);
--color-icon-background: var(--dark-color-icon-background);
--color-accent: var(--dark-color-accent);
--color-text: var(--dark-color-text);
Expand All @@ -142,11 +130,6 @@ body {
--color-scheme: var(--dark-color-scheme);
}

.always-visible,
.always-visible .tsd-signatures {
display: inherit !important;
}

h1,
h2,
h3,
Expand Down Expand Up @@ -483,9 +466,10 @@ blockquote {
.has-menu .col-menu {
visibility: visible;
transform: translate(0, 0);
display: flex;
flex-direction: column;
gap: 1.5rem;
display: grid;
align-items: center;
grid-template-rows: auto 1fr;
grid-gap: 1.5rem;
max-height: 100vh;
padding: 1rem 2rem;
}
Expand Down Expand Up @@ -841,15 +825,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
padding-left: 5.5rem;
}

#tsd-sidebar-links a {
margin-top: 0;
margin-bottom: 0.5rem;
line-height: 1.25rem;
}
#tsd-sidebar-links a:last-of-type {
margin-bottom: 0;
}

a.tsd-index-link {
margin: 0.25rem 0;
font-size: 1rem;
Expand Down Expand Up @@ -910,7 +885,7 @@ a.tsd-index-link {
margin-right: 0.8rem;
}

@media (min-width: 1025px) {
@media (min-width: 1024px) {
.col-content {
margin: 2rem auto;
}
Expand Down Expand Up @@ -1003,8 +978,7 @@ a.tsd-index-link {
right: -40px;
}
#tsd-search .field input,
#tsd-search .title,
#tsd-toolbar-links a {
#tsd-search .title {
transition: opacity 0.2s;
}
#tsd-search .results {
Expand Down Expand Up @@ -1048,8 +1022,7 @@ a.tsd-index-link {
top: 0;
opacity: 1;
}
#tsd-search.has-focus .title,
#tsd-search.has-focus #tsd-toolbar-links a {
#tsd-search.has-focus .title {
z-index: 0;
opacity: 0;
}
Expand All @@ -1063,22 +1036,6 @@ a.tsd-index-link {
display: block;
}

#tsd-toolbar-links {
position: absolute;
top: 0;
right: 2rem;
height: 100%;
display: flex;
align-items: center;
justify-content: flex-end;
}
#tsd-toolbar-links a {
margin-left: 1.5rem;
}
#tsd-toolbar-links a:hover {
text-decoration: underline;
}

.tsd-signature {
margin: 0 0 1rem 0;
padding: 1rem 0.5rem;
Expand Down Expand Up @@ -1167,7 +1124,6 @@ ul.tsd-type-parameter-list h5 {
display: flex;
justify-content: space-between;
height: 2.5rem;
margin: 0 auto;
}
.tsd-page-toolbar .table-cell {
position: relative;
Expand All @@ -1177,11 +1133,6 @@ ul.tsd-type-parameter-list h5 {
.tsd-page-toolbar .table-cell:first-child {
width: 100%;
}
.tsd-page-toolbar .tsd-toolbar-icon {
box-sizing: border-box;
line-height: 0;
padding: 12px 0;
}

.tsd-page-toolbar--hide {
transform: translateY(-100%);
Expand Down Expand Up @@ -1253,12 +1204,6 @@ img {
text-decoration: line-through;
}

.warning {
padding: 1rem;
color: var(--color-warning-text);
background: var(--color-background-warning);
}

* {
scrollbar-width: thin;
scrollbar-color: var(--color-accent) var(--color-icon-background);
Expand Down
Binary file added docs/doc/assets/widgets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/doc/assets/widgets@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0a28ff4

Please sign in to comment.