- Download the latest version from https://github.com/ltouroumov/cyoa-editor/releases/
- Update the
config/viewer/projects.json
file to add your project(s) - Upload the root directory of your domain
This file defines the list of projects displayed on the landing page of the viewer and the side menu.
If no value is specified in default
(set to null
), no CYOA will be automatically loaded.
{
"items": [
{
// URL of the project.json file
"remoteFileUrl": "https://raw.githubusercontent.com/ltouroumov/worm-cyoa-v6-fork/master/extract-v6.0.json",
// Title displayed in the list
"title": "Worm V6.0 (Pixel's Version)",
// Internal identifier, used by the software
"id": "worm-v6.0-pixel"
}
// ...
],
// Default CYOA to display when the page loads
// Set to `null` to show the list
"default": "worm-v6-lt"
}
Controls the loading backgrounds.
{
// Enable or Disable the loading backgrounds
"enabled": true,
// List of images to randomly choose from
// If there is only one file, it will always be displayed
"images": [
{
// Relative path or URL
"url": "bgs/load-01.webp"
}
// ...
]
}
It is possible to install the viewer in a sub-folder of a domain.
- In the file
index.html
- Replace all instances of
/assets/
with/your-folder/assets/
. - Replace
baseURL:"/"
withbaseURL:"/your-folder/"
- Replace all instances of
The simple way is to build the software with your custom URL with the NUXT_APP_BASE_URL
environment variable. This requires knowledge of software development and the right environment.