Skip to content

Commit 7ab8d96

Browse files
authored
docs: move to vitepress (#688)
* docs: init vitepress * chore: update package lock * ci: drop v12 and add v18 * docs: remove old urls * docs: add logo to readme
1 parent 24161d6 commit 7ab8d96

File tree

17 files changed

+12574
-39558
lines changed

17 files changed

+12574
-39558
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node-version: [12.x, 14.x, 16.x]
8+
node-version: [14.x, 16.x, 18.x]
99
steps:
1010
- uses: actions/checkout@v2
1111
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v1
12+
uses: actions/setup-node@v3
1313
with:
1414
node-version: ${{ matrix.node-version }}
1515
- run: npm install

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## feathers-hooks-common
22

3+
<p align="center">
4+
<img src="https://hooks-common.feathersjs.com/feathers-hooks-common-logo.png" width="200">
5+
</p>
6+
37
[![npm](https://img.shields.io/npm/v/feathers-hooks-common)](https://www.npmjs.com/package/feathers-hooks-common)
48
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/feathersjs-ecosystem/feathers-hooks-common/CI/master)](https://github.com/feathersjs-ecosystem/feathers-hooks-common/actions/workflows/nodejs.yml?query=branch%3Amaster)
59
[![libraries.io](https://img.shields.io/librariesio/release/npm/feathers-hooks-common)](https://libraries.io/npm/feathers-hooks-common)

docs/.vitepress/config.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { defineConfig } from "vitepress";
2+
3+
export default defineConfig({
4+
title: "feathers-hooks-common",
5+
lastUpdated: true,
6+
description: "",
7+
head: [["link", { rel: "icon", href: "/feathers-hooks-common-logo.png" }]],
8+
themeConfig: {
9+
siteTitle: "feathers-hooks-common",
10+
editLink: {
11+
pattern:
12+
"https://github.com/feathersjs-ecosystem/feathers-hooks-common/edit/master/docs/:path",
13+
},
14+
lastUpdatedText: "Last Updated",
15+
socialLinks: [
16+
{
17+
icon: "github",
18+
link: "https://github.com/feathersjs-ecosystem/feathers-hooks-common",
19+
},
20+
],
21+
logo: "/feathers-hooks-common-logo.png",
22+
sidebar: [
23+
{
24+
text: "Guide",
25+
items: [
26+
{ text: "Overview", link: "/overview" },
27+
{ text: "Hooks", link: "/hooks" },
28+
{ text: "Utilities", link: "/utilities" },
29+
{ text: "Migrating", link: "/migrating" },
30+
{ text: "Guides", link: "/guides" },
31+
],
32+
},
33+
],
34+
footer: {
35+
message: "Released under the MIT License.",
36+
copyright: "Copyright © 2016-present Feathers contributors",
37+
},
38+
},
39+
});

docs/.vitepress/style/main.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* Colors
3+
* -------------------------------------------------------------------------- */
4+
5+
:root {
6+
--vp-c-accent: #dab40b;
7+
--vp-c-brand: #ae0bb1;
8+
--vp-c-brand-light: #bc0cbf;
9+
--vp-c-brand-lighter: #c80dcb;
10+
--vp-c-brand-dark: #9b089e;
11+
--vp-c-brand-darker: #8b048e;
12+
}
13+
14+
/**
15+
* Component: Button
16+
* -------------------------------------------------------------------------- */
17+
18+
:root {
19+
--vp-button-brand-border: var(--vp-c-brand-light);
20+
--vp-button-brand-text: var(--vp-c-text-dark-1);
21+
--vp-button-brand-bg: var(--vp-c-brand);
22+
--vp-button-brand-hover-border: var(--vp-c-brand-light);
23+
--vp-button-brand-hover-text: var(--vp-c-text-dark-1);
24+
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
25+
--vp-button-brand-active-border: var(--vp-c-brand-light);
26+
--vp-button-brand-active-text: var(--vp-c-text-dark-1);
27+
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
28+
}
29+
30+
/**
31+
* Component: Home
32+
* -------------------------------------------------------------------------- */
33+
34+
:root {
35+
--vp-home-hero-name-color: transparent;
36+
--vp-home-hero-name-background: -webkit-linear-gradient(
37+
120deg,
38+
#7a067c 20%,
39+
#d313d6
40+
);
41+
}
42+
43+
@media (min-width: 640px) {
44+
:root {
45+
--vp-home-hero-image-filter: blur(56px);
46+
}
47+
}
48+
49+
@media (min-width: 960px) {
50+
:root {
51+
--vp-home-hero-image-filter: blur(72px);
52+
}
53+
}
54+
55+
56+
/**
57+
* Component: Algolia
58+
* -------------------------------------------------------------------------- */
59+
60+
.DocSearch {
61+
--docsearch-primary-color: var(--vp-c-brand) !important;
62+
}

docs/.vitepress/theme/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Theme from 'vitepress/theme'
2+
import '../style/main.css'
3+
4+
export default {
5+
...Theme,
6+
}

docs/.vuepress/config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/.vuepress/styles/index.styl

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/.vuepress/styles/palette.styl

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)