chore: remove create-react-app- template and fix up the docs template

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-05-21 10:25:43 +02:00
parent 648db41fc4
commit e2832d055c
5 changed files with 37 additions and 86 deletions
@@ -1,67 +0,0 @@
apiVersion: backstage.io/v1alpha1
kind: Template
metadata:
name: create-react-app-template
title: Create React App Template
description: Create a new CRA website project
tags:
- experimental
- react
- cra
spec:
owner: web@example.com
templater: cra
type: website
path: '.'
schema:
required:
- component_id
- use_typescript
- description
- collaborators
properties:
component_id:
title: Name
type: string
pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
description: Unique name of the component. Lowercase, URL-safe characters only.
description:
title: Description
type: string
description: Help others understand what this website is for.
use_typescript:
title: Use TypeScript
type: boolean
description: Include TypeScript
default: true
use_github_actions:
title: Use Github Actions workflows to build this component
type: boolean
description: Use Github Actions
default: true
collaborators:
title: Collaborators
description: Provide users with permissions
type: array
ui:options:
orderable: false
items:
type: object
required:
- username
- access
properties:
access:
type: string
description: The type of access for the user
default: pull
enum:
- push
- pull
- admin
- maintain
- triage
username:
type: string
description: The username or group
@@ -1,4 +1,4 @@
## {{ cookiecutter.component_id }}
## {{ cookiecutter.name }}
{{ cookiecutter.description }}
@@ -1,4 +1,4 @@
site_name: {{cookiecutter.component_id | jsonify}}
site_name: {{cookiecutter.name | jsonify}}
site_description: {{cookiecutter.description | jsonify}}
nav:
@@ -1,4 +1,4 @@
apiVersion: backstage.io/v1alpha1
apiVersion: backstage.io/v1beta2
kind: Template
metadata:
name: docs-template
@@ -10,21 +10,39 @@ metadata:
- mkdocs
spec:
owner: backstage/techdocs-core
templater: cookiecutter
type: documentation
path: '.'
schema:
required:
- component_id
- description
properties:
component_id:
title: Name
type: string
pattern: ^[a-z0-9A-Z_.-]{1,63}$
description: Unique name of the component
description:
title: Description
type: string
description: Help others understand what these docs are about.
parameters:
- title: Fill in some steps
required:
- name
- description
properties:
name:
title: Name
type: string
description: Unique name of the component
ui:autofocus: true
ui:options:
rows: 5
description:
title: Description
type: string
description: A description for the component
ui:autofocus: true
ui:options:
rows: 5
# This template is meant to be used on top of an existing tmeplate.
# By adding the following and fetching from an absolute URL you can
# add in the docs template
steps:
- id: fetch
name: Template Docs Skeleton
action: fetch:cookiecutter
input:
url: ./skeleton
values:
name: '{{ parameters.name }}'
description: '{{ parameters.description }}'