SmartlyDressedGames / Unturned-Docs

Documentation for Unturned's modding features.
134 stars 49 forks source link

Tables for Game Data Files (Don't Accept PR) – v2 #296

Closed MoltonMontro closed 7 months ago

MoltonMontro commented 10 months ago

I think it's a good step - it looks nicer - but they are quite dense.

As a point of reference, it looks like Godot's docs use tables with word wrapping, but the table entries link to the full description below. https://docs.godotengine.org/en/stable/classes/class_node.html

They also have horizontal dividers between each full property description. Overkill for us?

For the sake of previewing, maybe worth adding the custom CSS to your commit? I experimented with this in a local build and it seemed to work: https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html

Revisions made based on the previous feedback/ideas, including word-wrapping. I've added tables to more docs, to help visualize how this'll look. Note that our property descriptions are just Lv.4 headers – Godot and RTD both use custom styling for similar info instead.

MoltonMontro commented 10 months ago

@SDGNelson RTD is building again (I think GitHub had a temporary outage). Check my first comment for the changes -- I've bolded the docs with the most notable ones.

SDGNelson commented 10 months ago

Opened the PR expecting to still need to investigate why the builds weren't working. Glad that it resolved itself!

Good idea trying a few things out in different files for comparisons.

MoltonMontro commented 10 months ago

@SDGNelson Done (x5). I've updated all the previous docs + added new ones. Here's the list:


Main exception is for Intro/GunAsset, which now more closely match the previous revision. A single table for all properties, with a separate section for property descriptions. These docs are exceptionally lengthy. For one of them, I moved Unity Setup info back to the top, and I agree that it seems better than having it below.

SightAsset is a good doc to view. It has three tables: Properties, DistanceMarker Dictionary, and ESide Enumeration. We discussed having docs for enums used by multiple classes, but maybe it should be for any with their own file? In this case, ELightingVision would have a doc, but ESide wouldn't.

Some thoughts about how we describe defaults and data types.

I've added C# Built-in Types. We could create a doc per built-in type, but I don't believe it’s necessary.

Some "custom" data types are located in Data File Format. Any thoughts on moving Color, Flag, and Vector3 into their own docs instead?

If we plan to doc every Enum, maybe those (+PlayerSpotLightConfig?) should be nested into a folder in the TOC/index.

SDGNelson commented 10 months ago

You're fast!