| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.Doc.Gen
Description
Auto-generation of various forms of documentation.
Synopsis
- generateDocs :: GenerateDocs -> IO ()
- data GenerateDocs where
- data SheetType
- data PageAddress = PageAddress {}
- data RecipeGraphData = RecipeGraphData {
- rgWorldEntities :: Set Entity
- rgStartingDevices :: Set Entity
- rgStartingInventory :: Set Entity
- rgLevels :: [Set Entity]
- rgAllEntities :: Set Entity
- rgRecipes :: [Recipe Entity]
- data EdgeFilter
- classicScenarioRecipeGraphData :: IO RecipeGraphData
- ignoredEntities :: Set Text
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 :: EdgeFilter -> GenerateDocs | Entity dependencies by recipes. |
| EditorKeywords :: Maybe EditorType -> GenerateDocs | Keyword lists for editors. |
| SpecialKeyNames :: GenerateDocs | List of special key names recognized by |
| CheatSheet :: PageAddress -> SheetType -> GenerateDocs | Cheat sheets for inclusion on the Swarm wiki. |
| TutorialCoverage :: GenerateDocs | List command introductions by tutorial |
Instances
| Show GenerateDocs Source # | |
Defined in Swarm.Doc.Gen Methods showsPrec :: Int -> GenerateDocs -> ShowS # show :: GenerateDocs -> String # showList :: [GenerateDocs] -> ShowS # | |
| Eq GenerateDocs Source # | |
Defined in Swarm.Doc.Gen | |
An enumeration of the kinds of cheat sheets we can produce.
Constructors
| Entities | |
| Terrain | |
| Commands | |
| CommandMatrix | |
| Capabilities | |
| Recipes | |
| Scenario |
Instances
| Bounded SheetType Source # | |
| Enum SheetType Source # | |
Defined in Swarm.Doc.Wiki.Cheatsheet Methods succ :: SheetType -> SheetType # pred :: SheetType -> SheetType # fromEnum :: SheetType -> Int # enumFrom :: SheetType -> [SheetType] # enumFromThen :: SheetType -> SheetType -> [SheetType] # enumFromTo :: SheetType -> SheetType -> [SheetType] # enumFromThenTo :: SheetType -> SheetType -> SheetType -> [SheetType] # | |
| Show SheetType Source # | |
| Eq SheetType Source # | |
Wiki pages
data PageAddress Source #
A configuration record holding the URLs of the various cheat sheets, to facilitate cross-linking.
Constructors
| PageAddress | |
Fields
| |
Instances
| Show PageAddress Source # | |
Defined in Swarm.Doc.Wiki.Cheatsheet Methods showsPrec :: Int -> PageAddress -> ShowS # show :: PageAddress -> String # showList :: [PageAddress] -> ShowS # | |
| Eq PageAddress Source # | |
Defined in Swarm.Doc.Wiki.Cheatsheet | |
Recipe graph data
data RecipeGraphData Source #
Constructors
| RecipeGraphData | |
Fields
| |
data EdgeFilter Source #
Constructors
| NoFilter | |
| FilterForward | |
| FilterNext |
Instances
| Show EdgeFilter Source # | |
Defined in Swarm.Doc.Gen Methods showsPrec :: Int -> EdgeFilter -> ShowS # show :: EdgeFilter -> String # showList :: [EdgeFilter] -> ShowS # | |
| Eq EdgeFilter Source # | |
Defined in Swarm.Doc.Gen | |
ignoredEntities :: Set Text Source #
Ignore utility entities that are just used for tutorials and challenges.