techdocs: Add JSON Schema config
Show better error if techdocs.builder is set to 'ci' and if no docs are found. Return 404 from googleStorage client when a file is not found.
This commit is contained in:
@@ -120,10 +120,10 @@ export async function createRouter({
|
||||
);
|
||||
}
|
||||
|
||||
// techdocs-backend will only try to build documentation for an entity if techdocs.docsBuilder is set to 'local'
|
||||
// techdocs-backend will only try to build documentation for an entity if techdocs.builder is set to 'local'
|
||||
// If set to 'ci', it will only try to fetch and assume that that CI/CD pipeline of the repository hosting the
|
||||
// entity's documentation is responsible for building and publishing documentation to the storage provider.
|
||||
if (config.getString('techdocs.docsBuilder') === 'local') {
|
||||
if (config.getString('techdocs.builder') === 'local') {
|
||||
const docsBuilder = new DocsBuilder({
|
||||
preparers,
|
||||
generators,
|
||||
|
||||
Reference in New Issue
Block a user