Skip to content

Commit

Permalink
updating docs and other things
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Aug 16, 2023
1 parent 1a51340 commit 68a5cb4
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 17 deletions.
14 changes: 7 additions & 7 deletions indigo/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ ThisBuild / scalaVersion := scala3Version

lazy val indigoVersion = IndigoVersion.getVersion
// For the docs site
lazy val indigoDocsVersion = "0.14.0"
lazy val tyrianDocsVersion = "0.6.0"
lazy val indigoDocsVersion = "0.15.0-RC3"
lazy val tyrianDocsVersion = "0.7.1"
lazy val scalaJsDocsVersion = "1.13.1"
lazy val scalaDocsVersion = "3.3.0"
lazy val sbtDocsVersion = "1.9.0"
lazy val millDocsVersion = "0.10.12"
lazy val sbtDocsVersion = "1.9.2"
lazy val millDocsVersion = "0.11.1"

lazy val commonSettings: Seq[sbt.Def.Setting[_]] = Seq(
version := indigoVersion,
Expand Down Expand Up @@ -193,9 +193,9 @@ lazy val jsdocs = project
libraryDependencies ++= Seq(
"io.indigoengine" %%% "indigo-json-circe" % indigoDocsVersion,
"io.indigoengine" %%% "indigo" % indigoDocsVersion,
"io.indigoengine" %%% "indigo-extras" % indigoDocsVersion,
"io.indigoengine" %%% "tyrian-io" % tyrianDocsVersion,
"io.indigoengine" %%% "tyrian-indigo-bridge" % tyrianDocsVersion
"io.indigoengine" %%% "indigo-extras" % indigoDocsVersion
// "io.indigoengine" %%% "tyrian-io" % tyrianDocsVersion,
// "io.indigoengine" %%% "tyrian-indigo-bridge" % tyrianDocsVersion
),
tpolecatCiModeOptions ~= { opts =>
opts.filterNot(
Expand Down
2 changes: 1 addition & 1 deletion indigo/docs/gameloop/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Used to load and save data from local storage.
- `Load(key)` - Load the data stored with the given key
- `Delete(key)` - Delete the data stored against the given key
- `DeleteAll` - Delete all stored data
- `Loaded(key, data)` - Response event when data has been loaded
- `Loaded(data)` - Response event when data has been loaded

Should any of the above fail one of the following `StorageEventError` types will
be raised as a separate event.
Expand Down
4 changes: 2 additions & 2 deletions indigo/docs/guides/howto-fire-shader.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ final case class Fire(
ShaderData(
Fire.shaderId,
UniformBlock(
"FireData",
UniformBlockName("FireData"),
Batch(
Uniform("OFFSET") -> float(offset),
Uniform("COLOR_OUTER") -> vec3(outer.r, outer.g, outer.b),
Expand Down Expand Up @@ -172,7 +172,7 @@ def toShaderData: ShaderData =
ShaderData(
Fire.shaderId,
UniformBlock(
"FireData",
UniformBlockName("FireData"),
Batch(
Uniform("OFFSET") -> float(offset),
Uniform("COLOR_OUTER") -> vec3(outer.r, outer.g, outer.b),
Expand Down
4 changes: 2 additions & 2 deletions indigo/docs/guides/howto-hello-indigo-tyrian.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ follow [this guide](howto-indigo-game.md)
or replace `HelloIndigo.scala` with
[this](https://gist.github.com/hobnob/c24f00936e91a7b7e5d644d19e4f1b32)

```scala mdoc:js:shared
```scala
import indigo.*
import indigo.scenes.*
import tyrian.TyrianSubSystem
Expand Down Expand Up @@ -373,7 +373,7 @@ Create a new file called `HelloTyrian.scala` inside the `helloindigo/src` folder
and add the following contents found below, or
[here](https://gist.github.com/hobnob/436318b3ae5eed5891ba2b18bb8c264b).

```scala mdoc:js
```scala
import cats.effect.IO
import tyrian.*
import tyrian.Html.*
Expand Down
2 changes: 1 addition & 1 deletion indigo/docs/presentation/clones-and-mutants.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Mutants(
Array(
Batch(
UniformBlock(
"MutantData",
UniformBlockName("MutantData"),
Batch(
Uniform("MOVE_TO") -> vec2(10.0, 10.0),
Uniform("SCALE_TO") -> vec2(2.0, 2.0),
Expand Down
2 changes: 1 addition & 1 deletion indigo/docs/shaders/shader-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ final case class MyColoredEntity(position: Point, depth: Depth, color: RGBA) ext
ShaderData(
MyColoredEntity.shader.id,
UniformBlock(
"MyCustomData",
UniformBlockName("MyCustomData"),
Batch(Uniform("MY_COLOR") -> vec4(color.r, color.g, color.b, color.a))
)
)
Expand Down
1 change: 0 additions & 1 deletion indigo/docs/uicomponents/hit-area.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Here is an example:
```scala mdoc:js:shared
import indigo.*
import indigoextras.ui.*
import indigo.shared.geometry.*

final case class Log(message: String) extends GlobalEvent
final case class ViewModel(hitArea: HitArea):
Expand Down
2 changes: 1 addition & 1 deletion website2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ hugo --cleanDestinationDir

# -----
# Publish
sbt clean makeSite ghpagesPushSite
sbt clean publishIndigoSite
2 changes: 1 addition & 1 deletion website2/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.9.2

0 comments on commit 68a5cb4

Please sign in to comment.