-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used MkDocs to build instruction #20
- Loading branch information
Showing
12 changed files
with
251 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Deploy MkDocs to gh-pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- run: pip install mkdocs-material | ||
- run: mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/build | ||
/.gradle | ||
/.idea | ||
/.idea | ||
/site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
# Installation | ||
MGPP was published on [Gradle Plugin Portal](https://plugins.gradle.org/plugin/io.github.liplum.mgpp). | ||
|
||
Please make sure to always upgrade MGPP to the latest version: [](https://plugins.gradle.org/plugin/io.github.liplum.mgpp) | ||
|
||
## Gradle setup | ||
- Using the [plugins DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block): | ||
=== "Groovy" | ||
|
||
``` groovy | ||
plugins { | ||
id "io.github.liplum.mgpp" version "<version>" | ||
} | ||
``` | ||
|
||
=== "Kotlin" | ||
|
||
``` kotlin | ||
plugins { | ||
id("io.github.liplum.mgpp") version "<version>" | ||
} | ||
``` | ||
- Using [legacy plugin application](https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application): | ||
=== "Groovy" | ||
|
||
``` groovy | ||
buildscript { | ||
repositories { | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
} | ||
dependencies { | ||
classpath "io.github.liplum.mgpp:MindustryGradlePluginPlumy:<version>" | ||
} | ||
} | ||
|
||
apply plugin: "io.github.liplum.mgpp" | ||
``` | ||
|
||
=== "Kotlin" | ||
|
||
``` kotlin | ||
buildscript { | ||
repositories { | ||
maven { url = uri("https://plugins.gradle.org/m2/") } | ||
} | ||
dependencies { | ||
classpath("io.github.liplum.mgpp:MindustryGradlePluginPlumy:<version>") | ||
} | ||
} | ||
|
||
apply(plugin = "io.github.liplum.mgpp") | ||
``` | ||
|
||
## Configuration | ||
For ease of understanding, simplified examples are used here. Of course, it can still work for you. | ||
|
||
=== "Groovy" | ||
|
||
```groovy | ||
mindustry { | ||
dependency { | ||
mindustry version: 'v135' | ||
arc version: 'v135' | ||
} | ||
client { | ||
official version: 'v135' | ||
} | ||
server { | ||
official version: 'v135' | ||
} | ||
} | ||
mindustryAssets { | ||
rootAt "$projectDir/assets" | ||
} | ||
``` | ||
=== "Kotlin" | ||
|
||
```kotlin | ||
import io.github.liplum.mindustry.* | ||
mindustry { | ||
dependency { | ||
mindustry on "v135" | ||
arc on "v135" | ||
} | ||
client { | ||
mindustry official "v135" | ||
} | ||
server { | ||
mindustry official "v135" | ||
} | ||
} | ||
mindustryAssets { | ||
root at "$projectDir/assets" | ||
} | ||
``` | ||
|
||
## Dependency setup | ||
You can improt the repositories where Mindustry was published by `mindustryRepo()`. | ||
|
||
You can use `importMindustry()` to import the Mindustry dependencies you have configured above. | ||
|
||
=== "Groovy" | ||
|
||
``` groovy | ||
repositories { | ||
mavenCentral() | ||
mindustryRepo() | ||
} | ||
dependencies { | ||
importMindustry() | ||
} | ||
``` | ||
|
||
=== "Kotlin" | ||
|
||
``` kotlin | ||
import io.github.liplum.mindustry.* | ||
repositories { | ||
mavenCentral() | ||
mindustryRepo() | ||
} | ||
dependencies { | ||
importMindustry() | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Samples | ||
|
||
## Templates | ||
There is a [template](https://github.com/liplum/MdtModTemplate) already initilized with mgpp for whom first time try mgpp. | ||
|
||
## Samples | ||
There are two official sample projects for testing purposes: [Groovy Sample](https://github.com/PlumyGame/mgpp/tree/master/TestProjectGroovy), [Kotlin Sample](https://github.com/PlumyGame/mgpp/tree/master/TestProjectKt), [Multi-project Sample](https://github.com/PlumyGame/mgpp/tree/master/TestMultiproject). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Welcome to MGPP | ||
[](https://plugins.gradle.org/plugin/io.github.liplum.mgpp) [](https://discord.gg/3Hrep3WtUz) | ||
|
||
MGPP is an unofficial gradle plugin for Mindustry modding. | ||
|
||
It provides lots of functionalities for you to develop a mod or plugin. | ||
|
||
## Features | ||
- Manage the Dependencies | ||
> Importing the dependencies of arc and Mindustry automatically with configuration. | ||
- Download the Game | ||
> Downloading any version of Mindustry easily. | ||
- Debug your Mod | ||
> Being able to debug your mod and Mindustry with an IDE, such as IntelliJ IDEA. | ||
- Work with Other Mods | ||
> Starting the game with your mod and others to test the compatibility or interaction. | ||
- Separate Working Space | ||
> The configurable data directory of Mindustry Client located in a temporarily folder as default to separate the envrionments of your all projects. | ||
- Manage your Assets | ||
> Assets will be copied into the output jar file with configuration. | ||
- Generate Resource Class | ||
> A class with references of assets to reduce boilerplate codes. | ||
- Deploy on Android | ||
> Deploy your mod compatible to Mindustry on Android. *[Android SDK Required]* | ||
## Information | ||
You can access the [repository](https://github.com/PlumyGame/mgpp) on GitHub to obtain more information. | ||
|
||
Also, there is a [JavaDoc page](https://plumygame.github.io/mgppDoc/index.html) for you to check up the API of mgpp. | ||
|
||
If you face any issue with mgpp, please contact us on [Issue Report](https://github.com/PlumyGame/mgpp/issues) page. | ||
|
||
Join our [Discord server](https://discord.gg/3Hrep3WtUz) to send us feedback immediately. | ||
|
||
Welcome to contribute mgpp! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Mindustry Extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
site_name: MGPP Instruction | ||
theme: | ||
name: material | ||
shortcuts: | ||
help: 191 # ? | ||
next: 78 # n | ||
previous: 66 # p | ||
search: 83 # s | ||
features: | ||
- navigation.tabs | ||
- content.tabs.link | ||
palette: | ||
# Palette toggle for light mode | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
toggle: | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
|
||
# Palette toggle for dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
toggle: | ||
icon: material/weather-night | ||
name: Switch to light mode | ||
|
||
#page tree | ||
nav: | ||
- Home: | ||
- Overview: index.md | ||
- Installation: home/installation.md | ||
- Samples: home/samples.md | ||
|
||
- Mindustry: | ||
- Overview: mindustry/overview.md | ||
|
||
- Assets: | ||
- Overview: assets/overview.md | ||
|
||
- Task: | ||
- Overview: task/overview.md | ||
|
||
markdown_extensions: | ||
- pymdownx.tabbed: | ||
alternate_style: true | ||
- pymdownx.superfences | ||
- toc: | ||
permalink: "#" |