mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-10-31 23:15:05 +01:00
Lint files
Adds running prettier to pre-commit, linted files we have, removing unused files
This commit is contained in:
parent
4526deeb4f
commit
f252203611
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -1,144 +1,144 @@
|
||||
import { defineConfig } from "vitepress"
|
||||
import { defineConfig } from "vitepress";
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
lang: "en-US",
|
||||
title: "Tachiyomi",
|
||||
description: "Free and open source manga reader for Android",
|
||||
lang: "en-US",
|
||||
title: "Tachiyomi",
|
||||
description: "Free and open source manga reader for Android",
|
||||
|
||||
lastUpdated: true,
|
||||
cleanUrls: true,
|
||||
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
|
||||
logo: "/logo.svg",
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
logo: "/logo.svg",
|
||||
|
||||
nav: nav(),
|
||||
nav: nav(),
|
||||
|
||||
sidebar: {
|
||||
"/docs/": sidebarGuide(),
|
||||
"/forks/": sidebarGuide(),
|
||||
},
|
||||
sidebar: {
|
||||
"/docs/": sidebarGuide(),
|
||||
"/forks/": sidebarGuide(),
|
||||
},
|
||||
|
||||
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',
|
||||
},
|
||||
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",
|
||||
},
|
||||
|
||||
search: {
|
||||
provider: 'local',
|
||||
},
|
||||
search: {
|
||||
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/"
|
||||
},
|
||||
{
|
||||
text: "0.14.6",
|
||||
items: [
|
||||
{
|
||||
text: "Download",
|
||||
link: "https://download.kodo.moe/"
|
||||
},
|
||||
{
|
||||
text: "Changelog",
|
||||
link: "https://github.com/tachiyomiorg/tachiyomi/releases/latest"
|
||||
},
|
||||
{
|
||||
text: "Contributing",
|
||||
link: "https://github.com/tachiyomiorg/tachiyomi/blob/master/CONTRIBUTING.md"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
return [
|
||||
{
|
||||
text: "Documentation",
|
||||
link: "/docs/guides/getting-started",
|
||||
activeMatch: "/docs/",
|
||||
},
|
||||
{
|
||||
text: "0.14.6",
|
||||
items: [
|
||||
{
|
||||
text: "Download",
|
||||
link: "https://download.kodo.moe/",
|
||||
},
|
||||
{
|
||||
text: "Changelog",
|
||||
link: "https://github.com/tachiyomiorg/tachiyomi/releases/latest",
|
||||
},
|
||||
{
|
||||
text: "Contributing",
|
||||
link: "https://github.com/tachiyomiorg/tachiyomi/blob/master/CONTRIBUTING.md",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
function sidebarGuide() {
|
||||
return [
|
||||
{
|
||||
text: "Frequently Asked Questions",
|
||||
items: [
|
||||
{ text: "General", link: "/docs/faq/general" },
|
||||
{
|
||||
text: "Application",
|
||||
link: "/docs/faq/application/",
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "Library", link: "/docs/faq/application/library" },
|
||||
{
|
||||
text: "Browse",
|
||||
link: "/docs/faq/application/browse/",
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ 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: "Extensions", link: "/docs/faq/extensions" },
|
||||
{ text: "Miscellaneous", link: "/docs/faq/miscellaneous" }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: "Guides",
|
||||
items: [
|
||||
{ text: "Getting started", link: "/docs/guides/getting-started" },
|
||||
{ text: "Troubleshooting", link: "/docs/guides/troubleshooting" },
|
||||
{ text: "Source migration", link: "/docs/guides/source-migration" },
|
||||
{ text: "Backups", link: "/docs/guides/backups" },
|
||||
{ text: "Tracking", link: "/docs/guides/tracking" },
|
||||
{ text: "Categories", link: "/docs/guides/categories" },
|
||||
{ text: "Local manga", link: "/docs/guides/local-manga" },
|
||||
{ text: "Reader settings", link: "/docs/guides/reader-settings" },
|
||||
]
|
||||
},
|
||||
// {
|
||||
// text: "Migrations",
|
||||
// collapsed: false,
|
||||
// items: [
|
||||
// {
|
||||
// text: "Migration from VuePress",
|
||||
// link: "/guide/migration-from-vuepress"
|
||||
// },
|
||||
// {
|
||||
// text: "Migration from VitePress 0.x",
|
||||
// link: "/guide/migration-from-vitepress-0"
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
text: "Contribution",
|
||||
link: "/docs/tachiyomi/contribution"
|
||||
},
|
||||
{
|
||||
text: "Download",
|
||||
link: "/download"
|
||||
},
|
||||
{
|
||||
text: "Extensions",
|
||||
link: "/extensions"
|
||||
},
|
||||
{
|
||||
text: "Forks",
|
||||
link: "/forks/"
|
||||
}
|
||||
]
|
||||
}
|
||||
return [
|
||||
{
|
||||
text: "Frequently Asked Questions",
|
||||
items: [
|
||||
{ text: "General", link: "/docs/faq/general" },
|
||||
{
|
||||
text: "Application",
|
||||
link: "/docs/faq/application/",
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "Library", link: "/docs/faq/application/library" },
|
||||
{
|
||||
text: "Browse",
|
||||
link: "/docs/faq/application/browse/",
|
||||
collapsed: true,
|
||||
items: [
|
||||
{
|
||||
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: "Extensions", link: "/docs/faq/extensions" },
|
||||
{ text: "Miscellaneous", link: "/docs/faq/miscellaneous" },
|
||||
],
|
||||
},
|
||||
{
|
||||
text: "Guides",
|
||||
items: [
|
||||
{ text: "Getting started", link: "/docs/guides/getting-started" },
|
||||
{ text: "Troubleshooting", link: "/docs/guides/troubleshooting" },
|
||||
{ text: "Source migration", link: "/docs/guides/source-migration" },
|
||||
{ text: "Backups", link: "/docs/guides/backups" },
|
||||
{ text: "Tracking", link: "/docs/guides/tracking" },
|
||||
{ text: "Categories", link: "/docs/guides/categories" },
|
||||
{ text: "Local manga", link: "/docs/guides/local-manga" },
|
||||
{ text: "Reader settings", link: "/docs/guides/reader-settings" },
|
||||
],
|
||||
},
|
||||
// {
|
||||
// text: "Migrations",
|
||||
// collapsed: false,
|
||||
// items: [
|
||||
// {
|
||||
// text: "Migration from VuePress",
|
||||
// link: "/guide/migration-from-vuepress"
|
||||
// },
|
||||
// {
|
||||
// text: "Migration from VitePress 0.x",
|
||||
// link: "/guide/migration-from-vitepress-0"
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
text: "Contribution",
|
||||
link: "/docs/tachiyomi/contribution",
|
||||
},
|
||||
{
|
||||
text: "Download",
|
||||
link: "/download",
|
||||
},
|
||||
{
|
||||
text: "Extensions",
|
||||
link: "/extensions",
|
||||
},
|
||||
{
|
||||
text: "Forks",
|
||||
link: "/forks/",
|
||||
},
|
||||
];
|
||||
}
|
||||
|
@ -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 }) {
|
||||
// ...
|
||||
}
|
||||
}
|
||||
extends: Theme,
|
||||
Layout: () => {
|
||||
return h(Theme.Layout, null, {
|
||||
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
||||
});
|
||||
},
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// ...
|
||||
},
|
||||
};
|
||||
|
@ -7,14 +7,14 @@
|
||||
* Colors
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-c-brand: #646cff;
|
||||
--vp-c-brand-light: #747bff;
|
||||
--vp-c-brand-lighter: #9499ff;
|
||||
--vp-c-brand-lightest: #bcc0ff;
|
||||
--vp-c-brand-dark: #535bf2;
|
||||
--vp-c-brand-darker: #454ce1;
|
||||
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
|
||||
:root {
|
||||
--vp-c-brand: #646cff;
|
||||
--vp-c-brand-light: #747bff;
|
||||
--vp-c-brand-lighter: #9499ff;
|
||||
--vp-c-brand-lightest: #bcc0ff;
|
||||
--vp-c-brand-dark: #535bf2;
|
||||
--vp-c-brand-darker: #454ce1;
|
||||
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -22,15 +22,15 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-button-brand-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-text: var(--vp-c-white);
|
||||
--vp-button-brand-bg: var(--vp-c-brand);
|
||||
--vp-button-brand-hover-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-hover-text: var(--vp-c-white);
|
||||
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
|
||||
--vp-button-brand-active-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-active-text: var(--vp-c-white);
|
||||
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
|
||||
--vp-button-brand-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-text: var(--vp-c-white);
|
||||
--vp-button-brand-bg: var(--vp-c-brand);
|
||||
--vp-button-brand-hover-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-hover-text: var(--vp-c-white);
|
||||
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
|
||||
--vp-button-brand-active-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-active-text: var(--vp-c-white);
|
||||
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -38,31 +38,23 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-home-hero-name-color: transparent;
|
||||
--vp-home-hero-name-background: -webkit-linear-gradient(
|
||||
120deg,
|
||||
#bd34fe 30%,
|
||||
#41d1ff
|
||||
);
|
||||
--vp-home-hero-name-color: transparent;
|
||||
--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-filter: blur(40px);
|
||||
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
|
||||
--vp-home-hero-image-filter: blur(40px);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(56px);
|
||||
}
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(56px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(72px);
|
||||
}
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(72px);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -70,15 +62,15 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-custom-block-tip-border: var(--vp-c-brand);
|
||||
--vp-custom-block-tip-text: var(--vp-c-brand-darker);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
|
||||
--vp-custom-block-tip-border: var(--vp-c-brand);
|
||||
--vp-custom-block-tip-text: var(--vp-c-brand-darker);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--vp-custom-block-tip-border: var(--vp-c-brand);
|
||||
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
|
||||
--vp-custom-block-tip-border: var(--vp-c-brand);
|
||||
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -86,9 +78,9 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
.DocSearch {
|
||||
--docsearch-primary-color: var(--vp-c-brand) !important;
|
||||
--docsearch-primary-color: var(--vp-c-brand) !important;
|
||||
}
|
||||
|
||||
.VPImage.image-src {
|
||||
border-radius: 8px;
|
||||
}
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"label": "Guides",
|
||||
"position": 2,
|
||||
"link": {
|
||||
"type": "generated-index"
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 559 KiB |
Loading…
Reference in New Issue
Block a user