Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Comment out custom code samples in create-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Mar 13, 2018
1 parent 32b0cf8 commit 88f69e8
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions packages/api-explorer/lib/create-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,19 @@ module.exports = (oas, apiSetting) => {
category: { apiSetting },
api: {
method,
examples: {
codes: [
{
language: 'javascript',
code: 'console.log(1);',
},
{
language: 'curl',
code: 'curl http://example.com',
},
],
},
// Uncomment this if you want to test custom code samples
// examples: {
// codes: [
// {
// language: 'javascript',
// code: 'console.log(1);',
// },
// {
// language: 'curl',
// code: 'curl http://example.com',
// },
// ],
// },
},
swagger: { path },
// Uncomment this if you want some body content blocks
Expand Down

0 comments on commit 88f69e8

Please sign in to comment.