Switch to mdbook for docs

This commit is contained in:
Johannes Frohnmeyer 2022-08-30 13:31:08 +02:00
parent 43d159d29a
commit d6b03e63cd
Signed by: Johannes
GPG Key ID: E76429612C2929F4
23 changed files with 43 additions and 57 deletions

View File

@ -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

16
book.toml Normal file
View File

@ -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"

View File

@ -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

20
docs/SUMMARY.md Normal file
View File

@ -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)

View File

@ -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.

View File

@ -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:

View File

@ -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).

View File

@ -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.

View File

@ -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).

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -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'