Switch to mdbook for docs
|
@ -1,14 +1,3 @@
|
||||||
include:
|
include:
|
||||||
- remote: 'https://jfmods.gitlab.io/scripts/jfmod.yml'
|
- remote: 'https://jfmods.gitlab.io/scripts/jfmod.yml'
|
||||||
|
- remote: 'https://jfmods.gitlab.io/scripts/docs.yml'
|
||||||
pages:
|
|
||||||
image: python:3.8-buster
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- pip install mkdocs
|
|
||||||
- mkdocs build
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
only:
|
|
||||||
- master
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
[book]
|
||||||
|
authors = ["JFronny"]
|
||||||
|
language = "en"
|
||||||
|
multilingual = false
|
||||||
|
src = "docs"
|
||||||
|
title = "respackopts docs"
|
||||||
|
description = "Documentation for the respackopts config engine for minecraft resource and data packs"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
build-dir = "public"
|
||||||
|
|
||||||
|
[output.html]
|
||||||
|
git-repository-url = "https://gitlab.com/jfmods/respackopts"
|
||||||
|
git-repository-icon = "fa-gitlab"
|
||||||
|
edit-url-template = "https://gitlab.com/jfmods/respackopts/edit/master/{path}"
|
||||||
|
site-url = "https://jfmods.gitlab.io/respackopts"
|
|
@ -7,19 +7,6 @@ Respackopts is available on [Modrinth](https://modrinth.com/mod/respackopts) and
|
||||||
- Resource Packs
|
- Resource Packs
|
||||||
- DataPacks
|
- DataPacks
|
||||||
|
|
||||||
## Features
|
|
||||||
| Feature | Status |
|
|
||||||
|-------------------------------------------------------------------------------------------------|--------|
|
|
||||||
| Boolean (toggle) inputs | ✅ |
|
|
||||||
| Slider inputs | ✅ |
|
|
||||||
| Number inputs | ✅ |
|
|
||||||
| String (Text) inputs | ✅ |
|
|
||||||
| Conditional file loading | ✅ |
|
|
||||||
| Fallback files | ✅ |
|
|
||||||
| Not, And, Or, Nor, Xor, Eq Operations for conditions | ✅ |
|
|
||||||
| Text file modification using [Starscript](https://github.com/MeteorDevelopment/starscript/wiki) | ✅ |
|
|
||||||
| Directory .rpo support | 🔄 |
|
|
||||||
|
|
||||||
## Packs using Respackopts
|
## Packs using Respackopts
|
||||||
This list doesn't include all packs using respackopts, just some I know of.
|
This list doesn't include all packs using respackopts, just some I know of.
|
||||||
If you want your pack added/removed from here, you can open a PR
|
If you want your pack added/removed from here, you can open a PR
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Summary
|
||||||
|
|
||||||
|
- [About](./README.md)
|
||||||
|
|
||||||
|
# Setup
|
||||||
|
- [Creating a Screen](./setup/MainConfig.md)
|
||||||
|
- [Advanced config entries](./setup/AdvancedConfig.md)
|
||||||
|
- [Translating your config](./setup/Translations.md)
|
||||||
|
- [Debugging](./setup/Debugging.md)
|
||||||
|
|
||||||
|
# Select files
|
||||||
|
- [Toggle Files](./filerpo/ToggleFiles.md)
|
||||||
|
- [Switch between two files](./filerpo/ToggleFilesWithFallback.md)
|
||||||
|
- [Select one of multiple files](./filerpo/MultipleFileSelection.md)
|
||||||
|
|
||||||
|
# Additional
|
||||||
|
- [Advanced Conditions](./additional/AdvancedConditions.md)
|
||||||
|
- [Usage in Shader Packs](./additional/Shaders.md)
|
||||||
|
- [Resource Expansion](./additional/ResourceExpansion.md)
|
||||||
|
- [Changes between versions](./additional/Migrations.md)
|
|
@ -1,4 +1,4 @@
|
||||||
# Resource expansion
|
# Resource Expansion
|
||||||
Sometimes, you may wish to use respackopts values inside your text files (for example as model transforms),
|
Sometimes, you may wish to use respackopts values inside your text files (for example as model transforms),
|
||||||
without switching between a bunch of similar files. For this purpose, respackopts allows replacing text in files via resource expansion.
|
without switching between a bunch of similar files. For this purpose, respackopts allows replacing text in files via resource expansion.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Usage in fabulous/canvas/frex shaders
|
# Usage in Shader Packs
|
||||||
## Getting started
|
## Getting started
|
||||||
All you need to do to access respackotps values is paste the following in a file where you want them according to your renderer:
|
All you need to do to access respackotps values is paste the following in a file where you want them according to your renderer:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
This Allows you to pick between multiple files (3 or more files) using similar logic to [Toggle Files](./ToggleFiles.md)
|
This Allows you to pick between multiple files (3 or more files) using similar logic to [Toggle Files](./ToggleFiles.md)
|
||||||
But this requires multiple `.rpo` files to achieve the desired goal.
|
But this requires multiple `.rpo` files to achieve the desired goal.
|
||||||
You will need the `PackID` and `EntryName` from your `respackopts.json5` that you created earlier
|
You will need the `PackID` and `EntryName` from your `respackopts.json5` that you created earlier
|
||||||
if you have not, see [Main Config](./MainConfig.md) on how to do so.
|
if you have not, see [Main Config](../setup/MainConfig.md) on how to do so.
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
You will need to navigate to the file you would like to toggle inside your resource, and create a `.rpo` file for it in the same folder (directory).
|
You will need to navigate to the file you would like to toggle inside your resource, and create a `.rpo` file for it in the same folder (directory).
|
|
@ -2,7 +2,7 @@
|
||||||
A condition can be looked at like an `IF` statement simply returning true/false to configure whether the texture/file should be loaded into the pack.
|
A condition can be looked at like an `IF` statement simply returning true/false to configure whether the texture/file should be loaded into the pack.
|
||||||
(Turns the texture "on" or "off").
|
(Turns the texture "on" or "off").
|
||||||
You will need the `Pack ID` and `Entry Name` from your `respackopts.json5` that you created earlier
|
You will need the `Pack ID` and `Entry Name` from your `respackopts.json5` that you created earlier
|
||||||
if you have not, see [Main Config](./MainConfig.md) on how to do so.
|
if you have not, see [Main Config](../setup/MainConfig.md) on how to do so.
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
You will need to navigate to the file you would like to toggle inside your resource, and create a `.rpo` file for it in the same folder(directory).
|
You will need to navigate to the file you would like to toggle inside your resource, and create a `.rpo` file for it in the same folder(directory).
|
||||||
|
@ -26,7 +26,7 @@ You will need to navigate to the file you would like to toggle inside your resou
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For more information on conditions, [read this](./AdvancedConditions.md)
|
For more information on conditions, [read this](../additional/AdvancedConditions.md)
|
||||||
|
|
||||||
### Toggle Directories
|
### Toggle Directories
|
||||||
Directories ("Folders") can also be toggled without toggling individual files.
|
Directories ("Folders") can also be toggled without toggling individual files.
|
|
@ -2,7 +2,7 @@
|
||||||
This is a simple `IF` statement simply returning true/false to if the texture/file should be loaded into the pack.
|
This is a simple `IF` statement simply returning true/false to if the texture/file should be loaded into the pack.
|
||||||
(Pick one file over another).
|
(Pick one file over another).
|
||||||
You will need the `Pack ID` and `Entry Name` from your `respackopts.json5` that you created earlier
|
You will need the `Pack ID` and `Entry Name` from your `respackopts.json5` that you created earlier
|
||||||
if you have not, see [Main Config](./MainConfig.md) on how to do so.
|
if you have not, see [Main Config](../setup/MainConfig.md) on how to do so.
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
You will need to navigate to the file you would like to toggle inside your resource, and create a `.rpo` file for it in the same directory (folder).
|
You will need to navigate to the file you would like to toggle inside your resource, and create a `.rpo` file for it in the same directory (folder).
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
26
mkdocs.yml
|
@ -1,26 +0,0 @@
|
||||||
site_name: respackopts docs
|
|
||||||
site_url: https://jfmods.gitlab.io/respackopts
|
|
||||||
theme:
|
|
||||||
name: readthedocs
|
|
||||||
hljs_languages:
|
|
||||||
- glsl
|
|
||||||
site_dir: public
|
|
||||||
repo_url: https://gitlab.com/jfmods/respackopts
|
|
||||||
site_description: Documentation for the respackopts config engine for minecraft resource and data packs
|
|
||||||
site_author: JFronny
|
|
||||||
nav:
|
|
||||||
- 'README.md'
|
|
||||||
- 'Setting up':
|
|
||||||
- 'MainConfig.md'
|
|
||||||
- 'AdvancedConfig.md'
|
|
||||||
- 'Translations.md'
|
|
||||||
- 'Debugging.md'
|
|
||||||
- 'Select files':
|
|
||||||
- 'ToggleFiles.md'
|
|
||||||
- 'ToggleFilesWithFallback.md'
|
|
||||||
- 'MultipleFileSelection.md'
|
|
||||||
- 'Additional':
|
|
||||||
- 'AdvancedConditions.md'
|
|
||||||
- 'Shaders.md'
|
|
||||||
- 'ResourceExpansion.md'
|
|
||||||
- 'Migrations.md'
|
|