diff --git a/another-service/catalog-info.yaml b/another-service/catalog-info.yaml new file mode 100644 index 00000000..e69de29b diff --git a/another-service/docs/intro.md b/another-service/docs/intro.md new file mode 100644 index 00000000..6529a5d4 --- /dev/null +++ b/another-service/docs/intro.md @@ -0,0 +1,19 @@ +# Docs for sample-service-1 + +Anyone who has spent more than a month working in a decently sized software engineering department +can tell you the pain of finding documentation. Everyone wishes that great docs for internal +services were the norm but few people are willing to spend the time it takes to make fantastic +docs a reality. + +Even when you do take the time to write good docs, they end up being so difficult to find that you +might as well not have bothered. Motivated teams will create a dedicated website for the software +they have lovingly crafted. But searching for internal software isn’t like searching the open web, +Google doesn’t index your internal subdomains (hopefully!). + +It’s no wonder that software teams struggle to summon the motivation to produce great docs. +They’re hard to write and nobody will see them anyway. + +Backstage solves this problem by co-locating documentation with the service it is for. Write +your docs-as-code in whatever format you like ([MkDocs](https://www.mkdocs.org/) is currently +supported out of the box), publish it whereever you like, and Backstage will display it in context +where it is easy to find. \ No newline at end of file diff --git a/another-service/docs/local-development.md b/another-service/docs/local-development.md new file mode 100644 index 00000000..ccff20a6 --- /dev/null +++ b/another-service/docs/local-development.md @@ -0,0 +1,12 @@ +## Development + +First add some secrets to the `.env` file in the root. See the `.env.sample` file for suggestions +of required environment variables. + +Then run the software locally like this: + +```shell +yarn start +curl :3000/ +``` + diff --git a/another-service/docs/mkdocs.yaml b/another-service/docs/mkdocs.yaml new file mode 100644 index 00000000..e4df20c3 --- /dev/null +++ b/another-service/docs/mkdocs.yaml @@ -0,0 +1,9 @@ +site_name: 'sample-service' + +nav: +- Home: intro.md +- Local Development: local-development.md +- test: test-doc.md + +plugins: +- techdocs-core diff --git a/another-service/docs/test-doc.md b/another-service/docs/test-doc.md new file mode 100644 index 00000000..9a2c822d --- /dev/null +++ b/another-service/docs/test-doc.md @@ -0,0 +1,19 @@ +This is my testing document + + +```diff +diff --git a/src/components/CallToAction/EmailCaptureForm.js b/src/components/CallToAction/EmailCaptureForm.js index eb154ca..9450b93 100644 +--- a/src/components/CallToAction/EmailCaptureForm.js ++++ b/src/components/CallToAction/EmailCaptureForm.js +@@ -56,7 +56,7 @@ + +const EmailCaptureForm = ({ +