Skip to content

Commit

Permalink
Merge branch 'main' into recommend-cabal
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored May 5, 2024
2 parents 9fc1f3f + 0a001a6 commit ec46604
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/doc/Swarm/Doc/Schema/Render.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ scenariosDir :: FilePath
scenariosDir = "data/scenarios"

docFragmentsDir :: FilePath
docFragmentsDir = scenariosDir </> "doc-fragments"
docFragmentsDir = scenariosDir </> "_doc-fragments"

schemasDir :: FilePath
schemasDir = "data/schema"
Expand Down Expand Up @@ -148,7 +148,7 @@ genScenarioSchemaDocs = do
schemaTuples <- except $ traverse sequenceA xs
things <- liftIO $ mapM loadFooterContent schemaTuples
myMarkdown <- except $ genMarkdown things
docHeader <- liftIO $ TIO.readFile "data/scenarios/doc-fragments/header.md"
docHeader <- liftIO $ TIO.readFile "data/scenarios/_doc-fragments/header.md"
liftIO . writeFile (docFragmentsDir </> "SCHEMA.md") . T.unpack $ docHeader <> myMarkdown

case result of
Expand Down
2 changes: 1 addition & 1 deletion data/scenarios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ scripts/validate/json-schemas.sh

### YAML schema

See the autogenerated [`SCHEMA.md`](doc-fragments/SCHEMA.md).
See the autogenerated [`SCHEMA.md`](_doc-fragments/SCHEMA.md).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions data/schema/entity.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"title": "Entity",
"description": "Description of an entity in the Swarm game",
"footers": [
"doc-fragments/entity-properties.md",
"doc-fragments/capabilities.md"
"_doc-fragments/entity-properties.md",
"_doc-fragments/capabilities.md"
],
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion data/schema/robot.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "Robot",
"description": "Description of a robot in the Swarm game",
"footers": [
"doc-fragments/base-robot.md"
"_doc-fragments/base-robot.md"
],
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion data/schema/world.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "World",
"description": "Description of the world in the Swarm game",
"footers": [
"doc-fragments/cells.md"
"_doc-fragments/cells.md"
],
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-- = Search process overview
--
-- 2D structures may be defined at the
-- <https://github.com/swarm-game/swarm/blob/main/data/scenarios/doc-fragments/SCHEMA.md#top-level toplevel of a scenario file>.
-- <https://github.com/swarm-game/swarm/blob/main/data/scenarios/_doc-fragments/SCHEMA.md#top-level toplevel of a scenario file>.
-- Upon scenario load, all of the predefined structures that are marked
-- as @"recognize"@ are compiled into searcher state machines.
--
Expand Down

0 comments on commit ec46604

Please sign in to comment.