Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Commit

Permalink
docs: fix docs links (#88)
Browse files Browse the repository at this point in the history
- Replace ibm.biz links with public URLs

close #85
  • Loading branch information
jlengstorf authored Mar 6, 2018
1 parent 24caea7 commit fa0db30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/_content/data-source/tutorial-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Open `src/index.js` and update the context:

/*
* For more information on the main data source object, see
* https://ibm.biz/graphql-data-source-main
* https://gramps.js.org/api/gramps/#gramps
*/
export default {
- // TODO: Rename the context to describe the data source.
Expand Down
2 changes: 1 addition & 1 deletion docs/_content/errors/formatError.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Description: Could not load the given xkcd comic
Error Code: XKCDModel_Error
GraphQL Model: XKCDModel
Target Endpoint: https://xkcd.com/2000/info.0.json
Documentation: https://ibm.biz/gramps-data-source-tutorial
Documentation: https://xkcd.com/json.html
Data: {
"id": "2000"
}
Expand Down
10 changes: 6 additions & 4 deletions src/lib/externalDataSources.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const warnInProduction = ({ sources, logger }) => {
'',
` External source(s): ${externalSources.join(', ')}`,
'',
' See https://ibm.biz/gramps-data-source-tutorial for details.',
' For details, see:',
' https://gramps.js.org/data-source/data-source-overview/',
'======================================================================',
].join(EOL);

Expand Down Expand Up @@ -92,16 +93,17 @@ const warnForOverrides = ({ overrides, logger }) => {

const message = [
EOL,
`========================= WARNING ==========================`,
`============================ WARNING =============================`,
` Existing data sources have been overridden by`,
` development-only data sources. This WILL NOT work`,
` in production environments.`,
``,
` These data sources are running in dev-only mode:`,
` - ${overrides.join(`${EOL} - `)}`,
``,
` Details: https://ibm.biz/graphql-data-source`,
`============================================================`,
` Details: `,
` https://gramps.js.org/data-source/data-source-overview/`,
`==================================================================`,
EOL,
];

Expand Down

0 comments on commit fa0db30

Please sign in to comment.