awesome-pages test 2

This commit is contained in:
Yair Morgenstern
2023-07-02 23:21:24 +03:00
parent 6726d2ce03
commit cf1be27e3c
10 changed files with 21 additions and 10 deletions

View File

@ -12,5 +12,5 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install mkdocs-material mkdocs-awesome-pages-plugin
- run: mkdocs gh-deploy --force

View File

@ -66,7 +66,7 @@ However, it also imposes a couple of conventions about how links should best be
| Link type | Format | Example |
| --------- | ------ | ------- |
| Inter-wiki | Should begin with "./", and include ".md". | [`./Mods.md#other`](../Modders/1-Mods.md#other) |
| Inter-wiki | Should begin with "./", and include ".md". | [`./Mods.md#other`](../Modders/Mods.md#other) |
| Code or asset file | Should begin with "https://github.com/yairm210/Unciv/blob/master/", and be relative to the project root. | [`https://github.com/yairm210/Unciv/blob/master/android/assets/game.png`](https://github.com/yairm210/Unciv/blob/master/android/assets/game.png) |
These formats will allow IDEs like Android studio to resolve these links and check for broken links, while also working on the [Github code browser](https://github.com/yairm210/Unciv/tree/master/docs).

7
docs/Modders/.pages Normal file
View File

@ -0,0 +1,7 @@
nav:
- Mods.md
- Making-a-new-Civilization.md
- ...
- summary.md
- Unique-parameters.md
- uniques.md

View File

@ -9,7 +9,7 @@ In that case only graphics and audio will be active, the rule changes will be ig
## Override built-in graphics
If a mod supplies an image with the same name and path as one included in the base game (and its [atlas](1-Mods.md#more-on-images-and-the-texture-atlas) is up to date), and the mod is active, the mod's graphics will be used instead of the built-in one.
If a mod supplies an image with the same name and path as one included in the base game (and its [atlas](Mods.md#more-on-images-and-the-texture-atlas) is up to date), and the mod is active, the mod's graphics will be used instead of the built-in one.
For example, if you include a file named "Images/OtherIcons/Link.png" in your mod, you will be overriding the little chain links icon denoting linked lines in Civilopedia. The first part of the path is not relevant for overriding, it controls which of a set of atlas files will carry the image, but for selection in the game only the rest of the path is relevant. So, to override "Images.Tech/TechIcons/Archery.png" you could place your image as "Images/TechIcons/Archery.png" and it would work because the "TechIcons/Archery" part is the key.

View File

@ -1,6 +1,6 @@
# Creating a custom tileset
**You should read the [Mods](1-Mods.md) page first before proceeding**
**You should read the [Mods](Mods.md) page first before proceeding**
In order to add a tileset mod (yes, tilesets are just another type of mod), all you need to do is add your images under Images/Tilesets/MyCoolTilesetExample and enable the mod as a permanent visual mod - the game will recognize the tileset, and allow you to pick it in the options menu.

View File

@ -1,6 +1,6 @@
# Creating a UI skin
**You should read the [Mods](1-Mods.md) page first before proceeding**
**You should read the [Mods](Mods.md) page first before proceeding**
In order to add a UI skin mod (yes, UI skins are just another type of mod), all you need to do is add your images under `Images/Skins/MyCoolSkinExample` and enable the mod as a permanent visual mod.
@ -201,4 +201,4 @@ The color this UI element should have.
A float value. Default value: null
The alpha this UI element should have. Overwrites the alpha value of tint if specified.
The alpha this UI element should have. Overwrites the alpha value of tint if specified.

View File

@ -87,7 +87,7 @@ Credits for icons should go in a `Credits.md` page.
You have a working mod, now it's time to go wild!
- Add the [atlas files](1-Mods.md#more-on-images-and-the-texture-atlas) to your repo so your users get images
- Add the [atlas files](Mods.md#more-on-images-and-the-texture-atlas) to your repo so your users get images
- Install Git locally, so you can change your files on your device and have those changes reflected in your repository
- Expand the abilities of your civ by adding new [uniques](uniques.md)
- Add new civs, buildings or units

View File

@ -12,7 +12,7 @@ The game only knows how to recognize existing definitions, so you can't add *new
There are three main kinds of mods:
- **Extension mods** - these add new nations/units/buildings/resources to a base ruleset - can be either to the default ruleset, or to a base ruleset mod. Easy to do and probably the better place to get started - for example, [creating a new Civilization](2-Making-a-new-Civilization.md)
- **Extension mods** - these add new nations/units/buildings/resources to a base ruleset - can be either to the default ruleset, or to a base ruleset mod. Easy to do and probably the better place to get started - for example, [creating a new Civilization](Making-a-new-Civilization.md)
- **Base Ruleset mods** - these replace the entire existing ruleset - tech tree, units, policies, nations etc - to give an entirely different experience than the base game. These generally require quite a bit of work, but give a whole new experience, and so are the most popular.
- **Ruleset-agnostic mods** - these do not contain any ruleset-related jsons, but instead contain other affects. Audiovisual mods (including tilesets, unitsets, and UI skins) and map mods are in this category.
@ -149,5 +149,5 @@ Existing mods can be found [here](https://github.com/topics/unciv-mod)!
Now you should try to create your first mod!
We recommend you start off by [adding a new civilization](2-Making-a-new-Civilization.md) as a mod, to get a hang of the process :)
We recommend you start off by [adding a new civilization](Making-a-new-Civilization.md) as a mod, to get a hang of the process :)

View File

@ -13,6 +13,6 @@ If you're a developer, you'll probably want to start at the [Getting Started](De
If you're a translator, head over to [Translating!](Other/Translating.md)
If you're a modder, [start here](Modders/1-Mods.md).
If you're a modder, [start here](Modders/Mods.md).
If not, you can still help by spreading the word - vote for Unciv where you can, mention it on Reddit or Twitter etc, and help us with new ideas of how to get the word out!

View File

@ -35,3 +35,7 @@ markdown_extensions:
- abbr
- pymdownx.snippets
plugins:
- search
- awesome-pages # For reordering pages so modders have a clear progression for understanding