diff --git a/.github/workflows/techdocs.yml b/.github/workflows/techdocs.yml new file mode 100644 index 0000000..4fc628a --- /dev/null +++ b/.github/workflows/techdocs.yml @@ -0,0 +1,26 @@ +name: Publish TechDocs Site + +on: + push: + paths: + - "docs/**" + - "mkdocs.yml" + +jobs: + publish-techdocs-site: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + id-token: write + + steps: + - id: 'techdocs-action' + uses: kartverket/backstage-techdocs-action@v1 + with: + entity_kind: component + entity_name: smseagle-proxy + gcs_bucket_name: {{BACKSTAGE_TECHDOCS_GCS_BUCKET_NAME_SANDBOX}} + workload_identity_provider: '' + service_account: "" + project_id: "" diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..e208cc7 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,14 @@ +--- +id: index +title: Index +description: Introduction to smseagle-proxy +--- + +# Kartverket.dev + +Some example text here + +You can read more about tech docs [here](https://backstage.io/docs/features/techdocs/). + +For inspiration you can look at how Backstage does it on their [demo site](https://demo.backstage.io/docs/default/component/backstage) and [github](https://github.com/backstage/backstage/blob/master/mkdocs.yml) + diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..d4b1ffc --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,11 @@ +site_name: Backstage +site_description: Documentation for smseagle-proxy +repo_url: https://github.com/kartverket/smseagle-proxy +edit_uri: edit/main/docs + +plugins: + - techdocs-core + +nav: + - Index: + - 'index.md' \ No newline at end of file