Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #26

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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