Lint files

Adds running prettier to pre-commit, linted files we have, removing unused files
This commit is contained in:
Soitora 2023-07-18 14:38:14 +02:00
parent 4526deeb4f
commit f252203611
6 changed files with 185 additions and 192 deletions

View File

@ -22,5 +22,13 @@
"prettier": "^3.0.0",
"vitepress": "^1.0.0-beta.5",
"vue": "^3.3.4"
},
"simple-git-hooks": {
"pre-commit": "npm run lint-staged"
},
"lint-staged": {
"*": [
"prettier --write --ignore-unknown"
]
}
}

View File

@ -1,4 +1,4 @@
import { defineConfig } from "vitepress"
import { defineConfig } from "vitepress";
// https://vitepress.dev/reference/site-config
export default defineConfig({
@ -9,9 +9,7 @@ export default defineConfig({
lastUpdated: true,
cleanUrls: true,
head: [
["meta", { name: "theme-color", content: "#4A74EA" }],
],
head: [["meta", { name: "theme-color", content: "#4A74EA" }]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
@ -25,45 +23,44 @@ export default defineConfig({
},
footer: {
message: '<a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank">Open-source Apache Licensed</a> | <a href="./privacy">Privacy policy</a>',
copyright: 'Copyright © 2015 - 2023 Javier Tomás',
message:
'<a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank">Open-source Apache Licensed</a> | <a href="./privacy">Privacy policy</a>',
copyright: "Copyright © 2015 - 2023 Javier Tomás",
},
search: {
provider: 'local',
provider: "local",
},
socialLinks: [
{ icon: "github", link: "https://github.com/vuejs/vitepress" }
]
}
})
socialLinks: [{ icon: "github", link: "https://github.com/vuejs/vitepress" }],
},
});
function nav() {
return [
{
text: "Documentation",
link: "/docs/guides/getting-started",
activeMatch: "/docs/"
activeMatch: "/docs/",
},
{
text: "0.14.6",
items: [
{
text: "Download",
link: "https://download.kodo.moe/"
link: "https://download.kodo.moe/",
},
{
text: "Changelog",
link: "https://github.com/tachiyomiorg/tachiyomi/releases/latest"
link: "https://github.com/tachiyomiorg/tachiyomi/releases/latest",
},
{
text: "Contributing",
link: "https://github.com/tachiyomiorg/tachiyomi/blob/master/CONTRIBUTING.md"
}
]
}
]
link: "https://github.com/tachiyomiorg/tachiyomi/blob/master/CONTRIBUTING.md",
},
],
},
];
}
function sidebarGuide() {
@ -83,19 +80,22 @@ function sidebarGuide() {
link: "/docs/faq/application/browse/",
collapsed: true,
items: [
{ text: "Reading with Local Source", link: "/docs/faq/application/browse/reading-with-local-source" },
]
{
text: "Reading with Local Source",
link: "/docs/faq/application/browse/reading-with-local-source",
},
],
},
{ text: "Downloads", link: "/docs/faq/application/downloads" },
{ text: "Reader", link: "/docs/faq/application/reader" },
{ text: "User interface", link: "/docs/faq/application/user-interface" },
{ text: "Android 11+", link: "/docs/faq/application/android-11+" },
{ text: "Shizuku", link: "/docs/faq/application/shizuku" }
]
{ text: "Shizuku", link: "/docs/faq/application/shizuku" },
],
},
{ text: "Extensions", link: "/docs/faq/extensions" },
{ text: "Miscellaneous", link: "/docs/faq/miscellaneous" }
]
{ text: "Miscellaneous", link: "/docs/faq/miscellaneous" },
],
},
{
text: "Guides",
@ -108,7 +108,7 @@ function sidebarGuide() {
{ text: "Categories", link: "/docs/guides/categories" },
{ text: "Local manga", link: "/docs/guides/local-manga" },
{ text: "Reader settings", link: "/docs/guides/reader-settings" },
]
],
},
// {
// text: "Migrations",
@ -126,19 +126,19 @@ function sidebarGuide() {
// },
{
text: "Contribution",
link: "/docs/tachiyomi/contribution"
link: "/docs/tachiyomi/contribution",
},
{
text: "Download",
link: "/download"
link: "/download",
},
{
text: "Extensions",
link: "/extensions"
link: "/extensions",
},
{
text: "Forks",
link: "/forks/"
}
]
link: "/forks/",
},
];
}

View File

@ -1,16 +1,16 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import Theme from 'vitepress/theme'
import './style.css'
import { h } from "vue";
import Theme from "vitepress/theme";
import "./style.css";
export default {
extends: Theme,
Layout: () => {
return h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
})
});
},
enhanceApp({ app, router, siteData }) {
// ...
}
}
},
};

View File

@ -39,17 +39,9 @@
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#bd34fe 30%,
#41d1ff
);
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#bd34fe 50%,
#47caff 50%
);
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(40px);
}

View File

@ -1,7 +0,0 @@
{
"label": "Guides",
"position": 2,
"link": {
"type": "generated-index"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 KiB