Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# VinTest — in-game testing framework for Vintage Story mods

| ![Demo](/docs/img/demo.png) | Make a mod for your mod that will test your mod while you mod it. |
| ![Demo: code](/docs/img/demo.png) | [Demo: CLI](/docs/img/demo-cli.png) |
| --- | --- |
|Make a mod for your mod that will test your mod while you mod it.||

[![NuGet](https://img.shields.io/nuget/v/VinTest.svg)](https://www.nuget.org/packages/VinTest)
[![NuGet](https://img.shields.io/nuget/v/VinTest.Cake.svg)](https://www.nuget.org/packages/VinTest.Cake)

**Documentation: https://artalus.github.io/vintest/**

Expand Down
7 changes: 7 additions & 0 deletions VinTest.Cake/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# [Cake](https://cakebuild.net/) integration for [`VinTest`](https://github.com/Artalus/vintest/)

| ![Demo: code](https://github.com/Artalus/vintest/blob/main/docs/img/demo.png?raw=true) | [Demo: CLI](https://github.com/Artalus/vintest/blob/main/docs/img/demo-cli.png) |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Make a mod for your mod that will test your mod while you mod it. | |

**Documentation: https://artalus.github.io/vintest/**
2 changes: 1 addition & 1 deletion VinTest.Cake/VinTest.Cake.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<ItemGroup>
<None Include="../LICENSE" Pack="true" PackagePath="" />
<None Include="../README.md" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions VinTest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Core package of [`VinTest`](https://github.com/Artalus/vintest/)

| ![Demo: code](https://github.com/Artalus/vintest/blob/main/docs/img/demo.png?raw=true) | [Demo: CLI](https://github.com/Artalus/vintest/blob/main/docs/img/demo-cli.png) |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Make a mod for your mod that will test your mod while you mod it. | |

**Documentation: https://artalus.github.io/vintest/**
2 changes: 1 addition & 1 deletion VinTest/VinTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<ItemGroup>
<None Include="../LICENSE" Pack="true" PackagePath="" />
<None Include="../README.md" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
Expand Down
Binary file added docs/img/demo-cli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ hide:
title: Home
---

![](/vintest/img/demo.png){ align=right width=400 }
<div class="home-columns" markdown>
<div class="left" markdown>

# VinTest

Expand All @@ -32,3 +33,13 @@ VinTest is split into three "layers":
______________________________________________________________________

→ [Quickstart](quickstart/getting-started.md) — add VinTest to an existing mod project step by step.

</div>
<div class="right" markdown>

![](/vintest/img/demo.png)

![](/vintest/img/demo-cli.png)

</div>
</div>
48 changes: 48 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* Wide: text left (2/3), images stacked on right (1/3) */
.home-columns {
display: flex;
flex-direction: row;
gap: 2rem;
align-items: flex-start;
}

.home-columns .left {
flex: 2;
}

.home-columns .right {
flex: 1;
}

.home-columns .right img {
width: 100%;
display: block;
}

/* Narrow: images side-by-side on top, then text below */
@media (max-width: 960px) {
.home-columns {
flex-direction: column;
}

.home-columns .right {
order: -1;
display: flex;
flex-direction: row;
gap: 1rem;
}

.home-columns .right p {
flex: 1;
margin: 0;
}

.home-columns .right img {
width: 100%;
}
}

/* hide tag/release icon from site header as it makes no sense for now */
.md-source__fact--version {
display: none;
}
2 changes: 1 addition & 1 deletion example/MyMod/Mod.cs → example/MyMod/MyMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void TurnIntoDrifter(IServerPlayer player)
{
try
{
if (PositionIsNearbyEnough(player.Entity.Pos.AsBlockPos, new BlockPos(0, 0, 0)))
if (!PositionIsNearbyEnough(player.Entity.Pos.AsBlockPos, new BlockPos(0, 0, 0)))
DoMagic();
}
catch (Exception ex)
Expand Down
3 changes: 3 additions & 0 deletions zensical.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ nav = [
] },
] },
]

extra_css = ["stylesheets/extra.css"]

[project.theme]
variant = "classic"

Expand Down