Adds download page (#266)

Co-authored-by: Ken Swenson <flat@esoteric.moe>
This commit is contained in:
Soitora 2020-07-19 17:50:15 +02:00 committed by GitHub
parent 9af22f6930
commit 4bcf3c1145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 84 additions and 1 deletions

5
package-lock.json generated
View File

@ -9022,6 +9022,11 @@
"integrity": "sha512-TAIHTHPwa9+ltKvKPWulm/beozQU41Ab+FIefRaQV1NRnpzwcV9QOe6wXQS5WLivm5Q/nlo0rl6laGkMDZE7Gw==",
"dev": true
},
"marked": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/marked/-/marked-1.1.1.tgz",
"integrity": "sha512-mJzT8D2yPxoPh7h0UXkB+dBj4FykPJ2OIfxAWeIHrvoHDkFxukV/29QxoFQoPM6RLEwhIFdJpmKBlqVM3s2ZIw=="
},
"material-design-icons": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/material-design-icons/-/material-design-icons-3.0.1.tgz",

View File

@ -36,6 +36,7 @@
"iso-639-1": "^2.1.3",
"lodash.groupby": "^4.6.0",
"lodash.sortby": "^4.7.0",
"marked": "^1.1.1",
"material-design-icons": "^3.0.1",
"vue-agile": "^1.1.3",
"vue-material-design-icons": "^4.7.1",

View File

@ -0,0 +1,31 @@
<template>
<div v-html="releaseNotes" class="releaseNotes"></div>
</template>
<script>
import axios from "axios";
import marked from "marked";
const RELEASE_URL =
"https://api.github.com/repos/inorichi/tachiyomi/releases/latest";
export default {
data() {
return {
releaseNotes: "",
};
},
async mounted() {
const { data } = await axios.get(RELEASE_URL);
this.$data.releaseNotes = marked(data.body);
},
};
</script>
<style lang="stylus">
.releaseNotes
white-space
h3
font-size 1.1rem
</style>

View File

@ -1,5 +1,6 @@
module.exports = [
{ text: "Home", link: "/" },
{ text: "Help Center", link: "/help/" },
{ text: "Download", link: "/download/" },
{ text: "Extensions", link: "/extensions/" },
];

View File

@ -27,6 +27,10 @@ module.exports = {
title: "Contribution",
path: "/help/contribution",
},
{
title: "Download",
path: "/download/",
},
{
title: "Extensions",
path: "/extensions/",
@ -50,6 +54,10 @@ module.exports = {
title: "Contribution",
path: "/help/contribution",
},
{
title: "Download",
path: "/download/",
},
{
title: "Extensions",
path: "/extensions/",
@ -75,6 +83,10 @@ module.exports = {
sidebarDepth: 1,
children: ["/help/contribution"],
},
{
title: "Download",
path: "/download/",
},
{
title: "Extensions",
path: "/extensions/",
@ -98,6 +110,10 @@ module.exports = {
title: "Contribution",
path: "/help/contribution",
},
{
title: "Download",
path: "/download/",
},
{
title: "Extensions",
path: "/extensions/",
@ -121,6 +137,10 @@ module.exports = {
title: "Contribution",
path: "/help/contribution",
},
{
title: "Download",
path: "/download/",
},
{
title: "Extensions",
path: "/extensions/",

View File

@ -1,5 +1,8 @@
---
home: true
meta:
- name: keywords
content: Download, Official, Android app, Manga
lang: en-US
heroImage: /icons/logo.svg
buttonDownload: Download

22
src/download/README.md Normal file
View File

@ -0,0 +1,22 @@
---
title: Download
description: Download links for the latest versions of Tachiyomi.
meta:
- name: keywords
content: Download, Official, Android app, Manga
lang: en-US
---
# Download
Download the latest version of **Tachiyomi** for your Android device.
::: aside-guide
Latest release: **<VersionTag/>**
:::
<DownloadButtons downloadStableTag="Tachiyomi" downloadPreviewTag="Tachiyomi Preview"/>
::: guide Release notes
<ReleaseNotes/>
:::

View File

@ -1,5 +1,5 @@
---
title: Available extensions
title: Extensions
description: Here is a list of all available extensions to download inside the app.
lang: en-US
---