Commit 8e85f8f466
Unsigned
Layout: unified · split
docs/.vitepress/configs/constants.ts +2
| @@ -80,6 +80,7 @@ export const nav: DefaultTheme.NavItem[] = [ | |||
| 80 | { | 80 | { |
| 81 | text: 'Manga', | 81 | text: 'Manga', |
| 82 | items: [ | 82 | items: [ |
| 83 | { text: 'Cubari guide', link: '/guides/manga/cubari' }, | ||
| 83 | { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' }, | 84 | { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' }, |
| 84 | { text: 'Downloading Manga', link: '/guides/manga/mdl' }, | 85 | { text: 'Downloading Manga', link: '/guides/manga/mdl' }, |
| 85 | { text: 'JXL Manga Readers', link: '/guides/manga/jxl' }, | 86 | { text: 'JXL Manga Readers', link: '/guides/manga/jxl' }, |
| @@ -236,6 +237,7 @@ export const sidebar: DefaultTheme.Sidebar = [ | |||
| 236 | text: 'Manga', | 237 | text: 'Manga', |
| 237 | collapsed: true, | 238 | collapsed: true, |
| 238 | items: [ | 239 | items: [ |
| 240 | { text: 'Cubari guide', link: '/guides/manga/cubari' }, | ||
| 239 | { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' }, | 241 | { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' }, |
| 240 | { text: 'Downloading Manga', link: '/guides/manga/mdl' }, | 242 | { text: 'Downloading Manga', link: '/guides/manga/mdl' }, |
| 241 | { text: 'JXL Manga Readers', link: '/guides/manga/jxl' }, | 243 | { text: 'JXL Manga Readers', link: '/guides/manga/jxl' }, |
docs/guides/manga/cubari.md +38 −30
| @@ -9,10 +9,10 @@ og: | |||
| 9 | 9 | ||
| 10 | <br> | 10 | <br> |
| 11 | 11 | ||
| 12 | This guide is on how to publish your comic through [**Cubari**](https://cubari.moe/). Cubari doesn't host any files itself, but instead reads a JSON file with all the image file links (alongside other metadata). To host the images we will use [**Image Chest**](https://imgchest.com/) and to generate JSON file, we will use Kaguya script. | 12 | This guide explains how to publish your comic using [**Cubari**](https://cubari.moe/). Cubari does not host any files directly; instead, it reads a JSON file containing image links and other metadata. To host the images, we’ll use [**Image Chest**](https://imgchest.com/), and to generate the JSON file, we’ll use the [**Kaguya script**](https://github.com/wotakumoe/kaguya). |
| 13 | 13 | ||
| 14 | ::: warning Cubari ≠ Cubari Proxy | 14 | ::: warning Cubari ≠ Cubari Proxy |
| 15 | [**Cubari**](https://cubari.moe/) and [**Cubari Proxy**](https://proxy.cubari.moe/) are functionally different. Cubari Proxy is a scraper, meanwhile Cubari is more to proxy images from your hosted source. | 15 | [**Cubari**](https://cubari.moe/) and [**Cubari Proxy**](https://proxy.cubari.moe/) serve different purposes. Cubari Proxy is a scraper, while Cubari acts as a proxy that displays images from your own hosted sources. |
| 16 | ::: | 16 | ::: |
| 17 | 17 | ||
| 18 | ## Files and metadata | 18 | ## Files and metadata |
| @@ -21,7 +21,9 @@ This guide is on how to publish your comic through [**Cubari**](https://cubari.m | |||
| 21 | 21 | ||
| 22 | == Files and folders | 22 | == Files and folders |
| 23 | 23 | ||
| 24 | Your comic folder should follow this scheme. The folders name should be like `V# Ch# Title`. You can skip volume number and chapter title, but the chapter number is a must. The images inside should be alphabetically sorted. | 24 | Your comic folder should follow this naming scheme: |
| 25 | - Folder names should be formatted like `V# Ch# Title`. The volume number (`V#`) and chapter title are optional, but the chapter number (`Ch#`) is required. | ||
| 26 | - Make sure the images inside each folder are sorted alphabetically. | ||
| 25 | 27 | ||
| 26 | ```bash | 28 | ```bash |
| 27 | Comic_Folder/ | 29 | Comic_Folder/ |
| @@ -33,12 +35,13 @@ Comic_Folder/ | |||
| 33 | └── V01 Ch002 Second Chapter/ | 35 | └── V01 Ch002 Second Chapter/ |
| 34 | ├── page001.jpg | 36 | ├── page001.jpg |
| 35 | └── ... | 37 | └── ... |
| 36 | |||
| 37 | ``` | 38 | ``` |
| 38 | 39 | ||
| 39 | == Metadata | 40 | == Metadata |
| 40 | 41 | ||
| 41 | The given metadata will be shown in the comic homepage. You have to create a `info.txt` file inside your base comic folder, then fill out the text file following this scheme. The script expects only one uploader/group, so if there are multiple, you have to do it manually. | 42 | The given metadata will be displayed on the comic's homepage. Create an `info.txt` file inside your base comic folder and fill it out using the following format. |
| 43 | |||
| 44 | **Note:** The script supports only one uploader/group. If there are multiple, you'll need to handle it manually. | ||
| 42 | 45 | ||
| 43 | ```bash | 46 | ```bash |
| 44 | title: Comic Title | 47 | title: Comic Title |
| @@ -56,31 +59,33 @@ groups: Uploader Name | |||
| 56 | ::: tabs | 59 | ::: tabs |
| 57 | 60 | ||
| 58 | == Python | 61 | == Python |
| 59 | Kaguya is a python based script, so you have to download and install Python its dependencies. | 62 | Kaguya is a Python-based script, so you need to install Python and its dependencies first. |
| 63 | |||
| 64 | 1. Download and install the latest Python release from [here](https://www.python.org/downloads/). | ||
| 65 | 2. During installation, make sure to check the option **"Add Python X.XX to PATH"**. | ||
| 60 | 66 | ||
| 61 | 1. Download and install the latest Python binary from [here](https://www.python.org/downloads/). | 67 | **Note:** For this guide, I used [**PowerShell 7.5.1**](https://github.com/PowerShell/PowerShell). |
| 62 | 2. When installing, you will see `Add Python X.XX to PATH`. You have to check that. | ||
| 63 | 3. Open PowerShell and run `pip install requests`. For this guide, I have used [**PowerShell 7.5.1**](https://github.com/PowerShell/PowerShell). | ||
| 64 | 68 | ||
| 65 | == Imgchest | 69 | == Imgchest |
| 66 | To host images, we are using [Image chest](https://imgchest.com/). Here we can post images up to 20 at a time, but later we can add more. The script will add images in chunks. To upload the images we need API key. | 70 | To host images, we are using [Image Chest](https://imgchest.com/). You can upload up to 20 images at a time, but more can be added later. The script uploads images in chunks, so you'll need an API key to automate this process. |
| 67 | 1. Visit [Image chest](https://imgchest.com/). | 71 | |
| 68 | 2. Register [new account](https://imgchest.com/register). | 72 | 1. Visit [Image Chest](https://imgchest.com/). |
| 69 | 3. After verifying your email, go to [API section](https://imgchest.com/profile/api). | 73 | 2. Register a [new account](https://imgchest.com/register). |
| 70 | 4. Create an API key and keep it somewhere saved. We will need it later step. | 74 | 3. After verifying your email, go to the [API section](https://imgchest.com/profile/api). |
| 75 | 4. Create an API key and save it somewhere safe — you'll need it in a later step. | ||
| 71 | 76 | ||
| 72 | == Script setup | 77 | == Script setup |
| 73 | 1. Visit Kaguya repository. | 78 | 1. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya). |
| 74 | 2. Download `kaguya.py` from the repository. | 79 | 2. Clone/download the repository. |
| 75 | 3. Place it in a folder. | 80 | 3. Open powershell in the folder and run `pip install -r requirements.txt` |
| 76 | 4. Create `api_key.txt` in the same folder. | 81 | 4. Put the Image chest API key in `api_key.txt` |
| 77 | 5. Put the Image chest API key in the text file. | ||
| 78 | 82 | ||
| 79 | ```bash | 83 | ```bash |
| 80 | Cubari | 84 | Kaguya/ |
| 81 | ├── api_key.txt | 85 | ├── api_key.txt |
| 82 | └── kaguya.py | 86 | ├── kaguya.py |
| 83 | 87 | ├── readme.md | |
| 88 | └── requirements.txt | ||
| 84 | ``` | 89 | ``` |
| 85 | 90 | ||
| 86 | == Run | 91 | == Run |
| @@ -91,7 +96,7 @@ Cubari | |||
| 91 | 5. It will then start uploading in batch | 96 | 5. It will then start uploading in batch |
| 92 | 6. After it done uploading, it will give summary | 97 | 6. After it done uploading, it will give summary |
| 93 | 98 | ||
| 94 | After the run, the script will generate `Comic_Name.json` and `imgchest_upload_record.txt` in the comic's base folder. | 99 | After the run, the script will generate `Comic_Title.json` and `imgchest_upload_record.txt` in the comic's base folder. |
| 95 | 100 | ||
| 96 | ```bash | 101 | ```bash |
| 97 | Comic_Folder/ | 102 | Comic_Folder/ |
| @@ -107,14 +112,17 @@ Comic_Folder/ | |||
| 107 | └── ... | 112 | └── ... |
| 108 | ``` | 113 | ``` |
| 109 | 114 | ||
| 110 | `imgchest_upload_record.txt` will contain all the folders uploaded. If any folder upload fails, it will be missing in the text file. When you run the script, it will be tagged as new. Select `2. Upload only new folders (skip already uploaded)` to retry. After successful upload, they will be added in the JSON file. Although the new uploads will be at bottom, it won't impact Cubari serial. | 115 | The `imgchest_upload_record.txt` file keeps track of all uploaded folders. If a folder fails to upload, it won’t be listed in this file. When you run the script again, the missing folder will be detected as new. |
| 116 | |||
| 117 | To retry failed uploads, select: `2. Upload only new folders (skip already uploaded)` | ||
| 111 | 118 | ||
| 119 | After a successful upload, the folder will be added to the JSON file. New uploads appear at the bottom of the JSON, but this won't affect the chapter order in Cubari. | ||
| 112 | ::: | 120 | ::: |
| 113 | 121 | ||
| 114 | ## Cubari | 122 | ## Cubari |
| 115 | 1. You need to have a GitHub account. Older account is better, so that GitHub doesn't randomly flag your account. | 123 | 1. You need a GitHub account. An older account is less likely to be flagged by GitHub. |
| 116 | 2. Go to [**GitHub Gist**](https://gist.github.com/) and upload the JSON file there. It can be secret or public gist. | 124 | 2. Go to [**GitHub Gist**](https://gist.github.com/) and upload your JSON file. You can choose to make it a public or secret gist. |
| 117 | 3. Click the **RAW** button after uploading and copy the link. | 125 | 3. After uploading, click the **RAW** button and copy the URL. |
| 118 | 4. Go to [**Cubari**](https://cubari.moe/) and enter the link there. It will load all the chapters with the metadata. | 126 | 4. Go to [**Cubari**](https://cubari.moe/) and paste the RAW URL there. It will load all your chapters along with their metadata. |
| 119 | 127 | ||
| 120 | The cubari link of that page will be the comic link.\ No newline at end of file | 128 | The Cubari link generated on that page will be your comic’s final shareable link.\ No newline at end of file |