TechDocs: Add docs by default to react ssr template (#2261)
* Add docs by default to react ssr template
* Update plugins/scaffolder-backend/sample-templates/react-ssr-template/{{cookiecutter.component_id}}/docs/index.md
* Update plugins/scaffolder-backend/sample-templates/react-ssr-template/{{cookiecutter.component_id}}/docs/index.md
Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
+1
@@ -6,6 +6,7 @@ metadata:
|
||||
annotations:
|
||||
github.com/project-slug: {{cookiecutter.storePath}}
|
||||
backstage.io/github-actions-id: {{cookiecutter.storePath}}
|
||||
backstage.io/techdocs-ref: github:https://github.com/{{cookiecutter.storePath}}
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: experimental
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
# {{ cookiecutter.component_id }}
|
||||
|
||||
{{ cookiecutter.description }}
|
||||
|
||||
## Getting started
|
||||
|
||||
Start writing your documentation by adding more markdown (.md) files to this folder (/docs) or replace the content in this file.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
The Table of Contents on the right is generated automatically based on the hierarchy
|
||||
of headings. Only use one H1 (`#` in Markdown) per file.
|
||||
|
||||
## Site navigation
|
||||
|
||||
For new pages to appear in the left hand navigation you need edit the `mkdocs.yml`
|
||||
file in root of your repo. The navigation can also link out to other sites.
|
||||
|
||||
Alternatively, if there is no `nav` section in `mkdocs.yml`, a navigation section
|
||||
will be created for you. However, you will not be able to use alternate titles for
|
||||
pages, or include links to other sites.
|
||||
|
||||
Note that MkDocs uses `mkdocs.yml`, not `mkdocs.yaml`, although both appear to work.
|
||||
See also <https://www.mkdocs.org/user-guide/configuration/>.
|
||||
|
||||
## Support
|
||||
|
||||
That's it. If you need support, reach out in [#docs-like-code](https://discord.com/channels/687207715902193673/714754240933003266) on Discord.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
site_name: {{cookiecutter.component_id}}
|
||||
site_description: {{cookiecutter.description}}
|
||||
|
||||
nav:
|
||||
- Introduction: index.md
|
||||
|
||||
plugins:
|
||||
- techdocs-core
|
||||
Reference in New Issue
Block a user