This project aims to provide documentation for the Roblox Lua application programming interface (API). This directory contains the manual, or documentation for the project itself. It introduces concepts, values, and goals for the project, and provides guidelines and workflow for writing API documents.
- File structure: How project files are structured.
- Stages: How work on documentation is motivated.
- States: Classification of document and entity progress.
- Branches: How branches are used in this repository.
- Writing: Guidelines for writing documents.
- Resources: How to handle resource files.
- Type declarations: Format of type declarations in documents.
- Contributing: Information about contributing to the project.
This section defines several terms, which are used throughout the manual (but not necessarily throughout the API documentation).
-
An entity is a unit or piece of the API. For example, class, property, enum, or data type.
-
A primary entity is defined in relation to no other entities.
-
A secondary entity belongs to a primary entity; it can only be referred to in relation to that entity.
-
The entity type indicates the kind of entity. This is used to disambiguate the names of primary entities. For example, the API has a Platform class, as well as a Platform enum.
Primary entities:
Entity Type Examples Classes class Instance,Workspace,Model,BasePartEnums enum NormalId,Material,KeyCodeData Types type int,string,Vector3,CFrameSecondary entities:
Entity Primary type Examples Properties class Instance.Name,BasePart.PositionFunctions class Humanoid.MoveTo,GuiObject.TweenPositionEvents class Sound.Played,AnimationTrack.KeyframeReachedCallbacks class BindableFunction.OnInvoke,MarketplaceService.ProcessReceiptEnum items enum NormalId.Front,Material.Water. -
A document is a file that describes entities. A single document describes a single primary entity, along with all of its secondary entities.
-
An entity's or document's state describes how complete it is. See states for more information.
-
A stage refers to the current motivation of a document, or for the project overall. See stages for more information.