swarm-0.5.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Doc.Gen

Description

Auto-generation of various forms of documentation.

Synopsis

Main document generation function + types

generateDocs :: GenerateDocs -> IO () Source #

Generate the requested kind of documentation to stdout.

data GenerateDocs where Source #

An enumeration of the kinds of documentation we can generate.

Constructors

RecipeGraph :: GenerateDocs

Entity dependencies by recipes.

EditorKeywords :: Maybe EditorType -> GenerateDocs

Keyword lists for editors.

SpecialKeyNames :: GenerateDocs

List of special key names recognized by Key command

CheatSheet :: PageAddress -> Maybe SheetType -> GenerateDocs

Cheat sheets for inclusion on the Swarm wiki.

TutorialCoverage :: GenerateDocs

List command introductions by tutorial

WebAPIEndpoints :: GenerateDocs

Web API endpoints

Instances

Instances details
Show GenerateDocs Source # 
Instance details

Defined in Swarm.Doc.Gen

Eq GenerateDocs Source # 
Instance details

Defined in Swarm.Doc.Gen

data EditorType Source #

An enumeration of the editors supported by Swarm (currently, Emacs and VS Code).

Constructors

Emacs 
VSCode 
Vim 

data SheetType Source #

An enumeration of the kinds of cheat sheets we can produce.

Formatted keyword lists

keywordsCommands :: EditorType -> Text Source #

Get formatted list of basic functions/commands.

keywordsDirections :: EditorType -> Text Source #

Get formatted list of directions.

operatorNames :: Text Source #

A list of the names of all the operators in the language.

Wiki pages

data PageAddress Source #

A configuration record holding the URLs of the various cheat sheets, to facilitate cross-linking.

Instances

Instances details
Show PageAddress Source # 
Instance details

Defined in Swarm.Doc.Gen

Eq PageAddress Source # 
Instance details

Defined in Swarm.Doc.Gen