https://github.com/dgraph-io/graphql-dgraph-web
GraphQL Web
https://github.com/dgraph-io/graphql-dgraph-web
Last synced: 12 months ago
JSON representation
GraphQL Web
- Host: GitHub
- URL: https://github.com/dgraph-io/graphql-dgraph-web
- Owner: dgraph-io
- License: apache-2.0
- Archived: true
- Created: 2020-04-27T17:27:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-16T14:04:44.000Z (almost 2 years ago)
- Last Synced: 2024-11-24T09:33:58.967Z (over 1 year ago)
- Language: SCSS
- Homepage:
- Size: 18 MB
- Stars: 7
- Watchers: 23
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Running
```sh
yarn install
yarn start
```
### Adding a page
Just add the title and path in `config.js`. Refer that file for more info.
### Adding GraphiQL component
The common GraphiQL component can be used throughout the site, just include it in the `mdx` file you want and you can even pass a `query` to fill it with a default value.
### Adding suboptions (right sidebar)
Refer `schema.mdx` and make sure to add the `` tag for each suboption and then look `config` to see how to add the options there.
### Deploy
Build all tags with `pathPrefix` except master like -
```
yarn build --prefix-paths
```
Now add all versions build folder with folder name as their `version` and add that to the root folder which contains the build files of master.
Remember to update the `URL` (baseurl) in `config.js` with the actual deployment url.
Also update the `currentVersion` in `config.js` everytime a new version is created.