diff --git a/src/assets/logo_markdown_template.svg b/src/assets/logo_markdown_template.svg new file mode 100644 index 0000000000..865a71372e --- /dev/null +++ b/src/assets/logo_markdown_template.svg @@ -0,0 +1,10 @@ + + diff --git a/src/assets/logo_markdown_template_old2.svg b/src/assets/logo_markdown_template_old2.svg new file mode 100644 index 0000000000..9175aef11e --- /dev/null +++ b/src/assets/logo_markdown_template_old2.svg @@ -0,0 +1,6 @@ + + diff --git a/src/assets/logo_markdown_templateold.svg b/src/assets/logo_markdown_templateold.svg new file mode 100644 index 0000000000..d173cbec65 --- /dev/null +++ b/src/assets/logo_markdown_templateold.svg @@ -0,0 +1,24 @@ + + diff --git a/src/components/documentation/documentation-management.component.ts b/src/components/documentation/documentation-management.component.ts index d5c2efe4b6..a6430ce965 100644 --- a/src/components/documentation/documentation-management.component.ts +++ b/src/components/documentation/documentation-management.component.ts @@ -15,7 +15,12 @@ */ import NotificationService from '../../services/notification.service'; -import DocumentationService, {DocumentationQuery, FolderSituation, SystemFolderName} from '../../services/documentation.service'; +import DocumentationService, { + DocumentationQuery, + FolderSituation, + PageType, + SystemFolderName +} from '../../services/documentation.service'; import {StateService} from '@uirouter/core'; import _ = require('lodash'); import {IScope} from 'angular'; @@ -53,12 +58,20 @@ const DocumentationManagementComponent: ng.IComponentOptions = { this.systemFoldersById = _.keyBy(this.systemFolders, 'id'); this.currentFolder = this.getFolder(this.rootDir); - this.supportedTypes = DocumentationService.supportedTypes(this.getFolderSituation(this.rootDir)); + this.supportedTypes = DocumentationService + .supportedTypes(this.getFolderSituation(this.rootDir)) + .filter(type => !this.apiId || type !== PageType.MARKDOWN_TEMPLATE); this.breadcrumb = this.generateBreadcrumb(); $scope.renameFolder = false; $scope.translateFolder = false; }; + this.isFolder = (type: string): boolean => PageType.FOLDER === type; + this.isLink = (type: string): boolean => PageType.LINK === type; + this.isSwagger = (type: string): boolean => PageType.SWAGGER === type; + this.isMarkdown = (type: string): boolean => PageType.MARKDOWN === type; + this.isMarkdownTemplate = (type: string): boolean => PageType.MARKDOWN_TEMPLATE === type; + this.getFolderSituation = (folderId: string) => { if (!folderId) { return FolderSituation.ROOT; diff --git a/src/components/documentation/documentation-management.html b/src/components/documentation/documentation-management.html index a89e250b8e..cc6ba77b60 100644 --- a/src/components/documentation/documentation-management.html +++ b/src/components/documentation/documentation-management.html @@ -110,7 +110,7 @@