Commit Graph

27 Commits

Author SHA1 Message Date
Himanshu Mishra d62be2f822 Merge pull request #3731 from backstage/orkohunter/techdocs-set-correct-content-type-header 2020-12-16 10:58:04 +01:00
Himanshu Mishra ef4927baf6 techdocs-common: Use || operator instead of full if-else checks 2020-12-15 22:19:03 +01:00
Himanshu Mishra 6dedcbddb0 Set correct MIME Type for all types of files served from techdocs-backend 2020-12-15 19:28:50 +01:00
Patrik Oldsberg 1da7d2c657 plugins,packages: replace usages of ConfigReader.from 2020-12-15 19:04:50 +01:00
blam 3546862399 chore: update git-url-parse dependency 2020-12-15 13:22:17 +01:00
Himanshu Mishra 565d2b5893 techdocs-common: Add type dependencies 2020-12-14 16:32:23 +01:00
Himanshu Mishra be555ae8b8 techdocs-common: Remove unnecessary mock module for klaw 2020-12-11 10:28:08 +01:00
Himanshu Mishra 3aad0fb9e8 Bump latest @backstage packages in techdocs-common 2020-12-11 00:04:49 +01:00
Himanshu Mishra 320bb9c671 1. Use File.exists and fs.access to check if file exists instead of reading file
2. Clarify name of extension types which need special headers
3. More tests
2020-12-10 23:41:24 +01:00
Himanshu Mishra 9507d72a38 1. Replace klaw with recursive-readdir
2. Break out reading files logic to a helper function (add tests)
3. Use Promise.all to make sure all files are uploaded
2020-12-10 00:15:00 +01:00
Himanshu Mishra 92ecddbe24 techdocs-common: Unify response type of Local and googleGcs publisher 2020-12-09 20:32:41 +01:00
Himanshu Mishra 511f59f021 1. Use $file for googleGcs.credentials
2. Clarify that techdocs-common is only used in backend plugin since it is compiled to commonJS
2020-12-09 20:11:33 +01:00
Himanshu Mishra 24bcdd0829 techdocs: Use googleGcs for publisher type instead of google_gcs 2020-12-09 18:58:12 +01:00
Himanshu Mishra 9d08ef8f46 techdocs: replace 'build' with 'generate' in most places 2020-12-09 16:01:29 +01:00
Himanshu Mishra a3b99fab84 techdocs-common: Use request/response in type names 2020-12-08 16:07:34 +01:00
Himanshu Mishra 8736de114a Merge remote-tracking branch 'origin/master' into orkohunter/techdocs-publish-to-cloud-storage 2020-12-08 08:12:38 +01:00
Himanshu Mishra dae4f39838 techdocs: Add changeset for all three packages 2020-12-05 18:47:02 +01:00
Himanshu Mishra 372160ede5 Update README of all three techdocs packages/plugins 2020-12-05 18:07:50 +01:00
Himanshu Mishra 17cab77fd2 techdocs-common: Add tests for google publisher and some more 2020-12-05 17:42:21 +01:00
Himanshu Mishra ff3dd9c02b create-app: Add new techdocs default configs 2020-12-05 11:13:27 +01:00
Himanshu Mishra a212e43142 techdocs: Add JSON Schema config
Show better error if techdocs.builder is set to 'ci' and if no docs are found.
Return 404 from googleStorage client when a file is not found.
2020-12-05 10:48:54 +01:00
Himanshu Mishra 50a0911364 techdocs-common: Export @types/express from dependencies 2020-12-04 20:30:01 +01:00
Himanshu Mishra d073ba4f16 techdocs-common: Bump @types/dockerode version 2020-12-04 19:59:15 +01:00
Himanshu Mishra 2cbad5c19d techdocs-common: Bump @backstage/cli version 2020-12-04 19:47:27 +01:00
Himanshu Mishra 084670b37a Google Cloud Storage working with TechDocs (publish and fetch)
Plus
1. Introduce ncessary configs to connect with storage
2. Introduce config to prefer CI build of docs, or techdocs-backend to build and publish them.
3. Write guide how to use Google Cloud Storage with TechDocs
4. Add a TechDocs Configuration reference page in docucmentation
2020-12-03 22:40:15 +01:00
Himanshu Mishra e09cff1682 Abstract Publisher APIs from the router
1. Move fetchMetadata and serve static files to local publisher
2. Create factory class to create publishers based on app cofig
2020-12-02 13:05:44 +01:00
Himanshu Mishra ff348df9fe techdocs-common: Initialize package and move common code from techdocs-backend 2020-12-01 20:48:58 +01:00