-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup of non ascii TM and updated rdoc generation * remove <sup> and scenario schema which is now in reporting gem * remove schema from these docks * temporary gemfile edit * update link to rdocs * update rdoc link Co-authored-by: Nathan Moore <[email protected]>
- Loading branch information
Showing
16 changed files
with
412 additions
and
525 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
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 was deleted.
Oops, something went wrong.
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,15 +1,19 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
base: '/urbanopt-scenario-gem/', | ||
themeConfig: { | ||
navbar: false, | ||
sidebar: [ | ||
"/", | ||
{ | ||
title: "Schemas", | ||
children: [ | ||
"/schemas/scenario-schema.md" | ||
] | ||
} | ||
"/" | ||
] | ||
} | ||
}; | ||
}, | ||
chainWebpack: config => { | ||
config.module | ||
.rule('json') | ||
.test(/\.json$/) | ||
.use(path.join(__dirname, 'json-schema-deref-loader.js')) | ||
.loader(path.join(__dirname, 'json-schema-deref-loader.js')) | ||
.end() | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// thanks to https://gist.github.com/mgesmundo/07d6ea3958ed4c7d19d1161551fa46ca | ||
const $RefParser = require('@apidevtools/json-schema-ref-parser') | ||
|
||
module.exports = async function () { | ||
const parser = new $RefParser() | ||
const schema = await parser.dereference(this.resourcePath, { | ||
dereference: { | ||
circular: false | ||
} | ||
}) | ||
const resolve = await parser.resolve(this.resourcePath, { | ||
dereference: { | ||
circular: false | ||
} | ||
}) | ||
|
||
for (const dep in resolve._$refs) { | ||
this.addDependency(dep) | ||
} | ||
|
||
return JSON.stringify(schema) | ||
} |
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.