-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: restore typedoc, add docs for monaco-graphiql
- Loading branch information
Showing
15 changed files
with
2,318 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<title>Monaco Example!</title> | ||
<style> | ||
.div { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<title>Monaco Example!</title> | ||
<style> | ||
.div { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.full-height { | ||
height: 100vh; | ||
} | ||
.full-height { | ||
height: 100vh; | ||
} | ||
.column { | ||
width: 50%; | ||
} | ||
</style> | ||
</head> | ||
|
||
.column { | ||
width: 50%; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body style="margin: 0; padding:0;"> | ||
<div style="display: flex;"> | ||
<div class="full-height column"> | ||
<div id="operation" style="height:70vh;"></div> | ||
<div id="variables" style="height:30vh;"></div> | ||
<body style="margin: 0; padding: 0;"> | ||
<div style="display: flex;"> | ||
<div class="full-height column"> | ||
<div id="toolbar" style=""></div> | ||
<div id="operation" style="height: 70vh;"></div> | ||
<div id="variables" style="height: 30vh;"></div> | ||
</div> | ||
<div | ||
id="results" | ||
class="full-height column" | ||
aria-label="Result Window" | ||
aria-live="polite" | ||
aria-atomic="true" | ||
></div> | ||
</div> | ||
<div id="results" class="full-height column" aria-label="Result Window" aria-live="polite" aria-atomic="true"></div> | ||
</div> | ||
</body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,36 @@ | ||
# `graphql-languageservice` | ||
|
||
This package brings together all the dependencies for building out web or desktop IDE services for the GraphQL Language. For now, it just exports three packages in this monorepo. | ||
> **Note**: Still mostly experimental, however it depends mostly on stable libraries. | ||
## Purpose | ||
|
||
This package brings together all the dependencies for building out web or desktop IDE services for the GraphQL Language. | ||
|
||
It is named as such to match the convention of other vscode languageservices. | ||
|
||
It also provides a new `LanguageService` class as browser/web-worker runtime friendly alternative to the one that lives in `graphql-language-service-interface`, that utilizes the same underlying functions, meaning _most_ fixes and improvements from here on out will continue to be reflected by both implementations. | ||
|
||
## Usage | ||
|
||
Instantiates with these optional parameters: | ||
|
||
```ts | ||
type GraphQLLanguageConfig = { | ||
parser?: typeof parse; | ||
schemaLoader?: typeof defaultSchemaLoader; | ||
schemaBuilder?: typeof defaultSchemaBuilder; | ||
schemaConfig: SchemaConfig; | ||
}; | ||
``` | ||
|
||
this is the minimum configuration required: | ||
|
||
```ts | ||
const languageService = new LanguageService({ | ||
schemaConfig: { uri: 'https://my/schema' }, | ||
}); | ||
``` | ||
|
||
### Methods | ||
|
||
We are working on restoring our typedoc which will provide much more info soon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.