Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendotgg committed Feb 21, 2024
1 parent 81fd46c commit 16fe0c9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 22 deletions.
15 changes: 6 additions & 9 deletions Writerside/flyte.tree
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,22 @@
<toc-element topic="Getting-Started.topic"/>

<toc-element toc-title="Features">
<toc-element topic="Gson.topic"/>
<toc-element topic="Symbols.topic"/>
<toc-element topic="File-Extensions.topic"/>
<toc-element topic="Ternary-Operator.topic"/>
<toc-element topic="UUID-Name.topic"/>
<toc-element toc-title="Extensions"/>
<toc-element topic="Events.topic">
<toc-element topic="Twilight-Events.topic"/>
<toc-element topic="Custom-Events.topic"/>
</toc-element>
<toc-element topic="Scheduler.topic"/>
<toc-element toc-title="Databases">

<toc-element topic="SQL.md"/>
<toc-element topic="MongoDB.md"/>
</toc-element>
<toc-element topic="UUID-Name.topic"/>
<toc-element topic="Ternary-Operator.topic"/>
<toc-element topic="Gson.topic"/>
<toc-element topic="File-Extensions.topic"/>
<toc-element topic="Symbols.topic"/>

<toc-element toc-title="Extensions">

</toc-element>
</toc-element>
</toc-element>
</toc-element>
Expand Down
2 changes: 1 addition & 1 deletion Writerside/topics/File-Extensions.topic
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</p>

<p>
This is particularly useful when used in parallel with our other open-source library, resource-pack-deploy,
This is particularly useful when used in parallel with our other open-source library, <a href="https://github.com/flytegg/resource-pack-deploy">resource-pack-deploy</a>,
so you can get the hash of the latest resource pack file, and use it to reset a client's cached version of your
resource pack if there are any differences.
</p>
Expand Down
3 changes: 2 additions & 1 deletion Writerside/topics/Getting-Started.topic
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
<li>JDK 21</li>
</list>

<chapter title="Installment" id="installment">
<chapter title="Installation" id="installation">
<p>Add the Flyte repository and Twilight dependency to your build tool of choice.</p>
<tabs>
<tab title="Gradle (Kotlin)">
<code-block lang="kotlin">
Expand Down
2 changes: 1 addition & 1 deletion Writerside/topics/SQL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SQL (MySQL, Postgres)

#### Getting Started
#### Getting started
To get started you need to create an instance of the SQL Wrapper like so
```kotlin
val db = SQLWrapper(url = "your db url", user="user", password="password")
Expand Down
8 changes: 3 additions & 5 deletions Writerside/topics/Scheduler.topic
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
title="Scheduler" id="Scheduler">

<warning>
<p>Twilight's repeat conflicting with Kotlin's repeat? As an alternative, you can use repeatingTask.</p>
</warning>

<p>
Bukkit's built-in scheduler is tedious at best, so Twilight takes advantage of beautiful Kotlin syntax to make
it easier to write, as well as adding a custom TimeUnit to save you calculating ticks.
Expand Down Expand Up @@ -87,5 +83,7 @@
}
</code-block>


<warning>
<p>Twilight's repeat conflicting with Kotlin's repeat? As an alternative, you can use repeatingTask.</p>
</warning>
</topic>
10 changes: 5 additions & 5 deletions Writerside/topics/Ternary-Operator.topic
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
title="Ternary Operator" id="Ternary-Operator">

<warning>
<p>This doesn't yet work for evaluating functions either side of the ternary though, we plan to figure this
out in the near future.</p>
</warning>

<p>There is a basic ternary operator implementation added which can be used like so:</p>
<code-block lang="kotlin">
val test = false
println(test then "yes" or "no")
</code-block>

<warning>
<p>This doesn't yet work for evaluating functions either side of the ternary though, we plan to figure this
out in the near future.</p>
</warning>
</topic>

0 comments on commit 16fe0c9

Please sign in to comment.