Skip to content

Commit

Permalink
Fix typos (#26)
Browse files Browse the repository at this point in the history
Found via `typos --hidden --format brief`
  • Loading branch information
kianmeng authored Jan 17, 2024
1 parent 3d54f68 commit 514710b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ You can easily automate the process with ExDoc by adding the following to your `
defmodule Azeroth.MixProject do
use Mix.Project

# this is needed because the file are generated but if you run mix docs, Mix will check the existance of files first. so have to work around that
# this is needed because the file are generated but if you run mix docs, Mix will check the existence of files first. so have to work around that
@graphql_files [
"guides/graphql/enums.md",
"guides/graphql/inputs.md",
Expand Down
4 changes: 2 additions & 2 deletions lib/graphql_markdown/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ defmodule GraphqlMarkdown.Schema do
Enum.filter(schema["types"], fn type -> !String.starts_with?(type["name"], "__") end)
end

def schema_from_json(%{"data" => %{"__schema" => schema_defintion}}) do
{:ok, schema_defintion}
def schema_from_json(%{"data" => %{"__schema" => schema_definition}}) do
{:ok, schema_definition}
end

def schema_from_json(_) do
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/tasks/graphql.gen.markdown.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Mix.Tasks.GraphqlGenMarkdown do
valid override args:
-f, --schema Path to the schema file
-o, --outpout-dir Where to output the files. Default: [Current Directory]
-o, --output-dir Where to output the files. Default: [Current Directory]
-m, --multi-page Generate each type in a separate file. Default: [single page format]
-t, --title Specify the page title for the generated file (Applies to single file only)
--no-toc Do not generate the table of content (Applies to single file only)
Expand Down

0 comments on commit 514710b

Please sign in to comment.