Commit Graph

42 Commits

Author SHA1 Message Date
Ben Lambert 2c36df1ee7 Merge pull request #3805 from backstage/blam/isomorphic-git
Remove the NodeGit Dependency in favour of isomorphic-git
2020-12-29 14:46:35 +01:00
blam 8bccc6bec0 chore: refactor variable names for isomorphic git. 2020-12-29 13:32:24 +01:00
github-actions[bot] a1ebbdeee0 Version Packages 2020-12-29 10:59:38 +00:00
Himanshu Mishra 231b55b874 Merge remote-tracking branch 'origin/master' into blam/isomorphic-git 2020-12-28 22:02:46 +01:00
Himanshu Mishra 8804e89811 techdocs: Add changeset for @backstage/integration changes 2020-12-28 21:18:18 +01:00
Himanshu Mishra c91e4d6b04 techdocs: Use @backstage/integration for scm tokens and request options 2020-12-28 21:08:54 +01:00
blam f60b02bec4 Merge branch 'master' of github.com:backstage/backstage into blam/isomorphic-git
* 'master' of github.com:backstage/backstage: (23 commits)
  cli: fix windows tests
  Introduce slight bias towards positive trend in cost insights mock data
  core-api: rename BackstageRoutes to FlatRoutes
  Update plugins/catalog/src/hooks/useEntity.ts
  Fix parameter name in docstring for duration#inclusiveStartDateOf
  Adjust test
  Add changeset
  fix: token expiration in s, not ms
  Create loud-days-breathe.md
  Create polite-glasses-occur.md
  dev-utils: add a small label with the entity name to EntityGridItems
  dev-utils: add EntityGridItem for easily displaying various entity cards
  dev-utils: use dev index module as root for hot reloading
  dev-utils: add .registerPage for use with extensions
  catalog: rename EntityProvider to EntityLoaderProvider, and add new EntityProvider
  reduce close timeout to 100 ms
  changeset: add changeset for core-api RouteRef deprecations
  core-api: use typescript workaround for using private constructor instead of a runtime one
  core-api: deprecate RouteRef path and remove deprecated createSubRoute
  delay window close by 200 ms
  ...
2020-12-28 17:39:15 +01:00
Fredrik Adelöw 0574a27b7c cli: fix windows tests 2020-12-28 11:43:25 +01:00
blam cc4a49aaf3 Merge branch 'master' of github.com:backstage/backstage into blam/isomorphic-git
* 'master' of github.com:backstage/backstage: (45 commits)
  Speed up some PRs with paths-ignore
  Remove unnecessary step
  catalog: export EntitySwitch component and conditions
  Apply suggestions from code review
  changeset: add changeset for new catalog composability components
  catalog: fix EntityLayout TabbedLayout route path matching
  catalog: gather all mount points beneath EntityLayout Routes
  catalog: add EntityLayout
  Change to raw Windows Discord hook
  Release plugin-cost-insights 0.5.3
  catalog: add EntitySwitch
  catalog: export new CatalogIndexPage and CatalogEntityPage
  Create dull-seals-march.md
  core-api: add BackstageRoutes
  Fix plugin name
  fixed category lables
  feat(cost-insights): Make alert url field optional
  fossa: Add changeset
  fix(fossa): Bump core packages version to fix failing CI
  Update 2020-12-22-stability-index.md
  ...
2020-12-26 22:22:11 +01:00
Himanshu Mishra cb28e1a6a0 chore(git): Need author and commiter for doing git merge 2020-12-23 00:34:12 +01:00
Himanshu Mishra 9ca586e579 techdocs: Replace nodegit with isomorphic-git
TechDocs needs 4 functions from the git library
1. To clone 2. To get the commit timestamp for HEAD 3. To fetch 4. To merge two branches

Created necessary commands in the new SCM client and reordered them alphabetically for convenience
2020-12-23 00:12:20 +01:00
github-actions[bot] c3c04658f2 Version Packages 2020-12-22 12:14:20 +00:00
Himanshu Mishra 82f241f90c Merge pull request #3764 from backstage/orkohunter/techdocs-backend-refactor-factory-methods 2020-12-21 19:10:38 +01:00
Himanshu Mishra 2ac77aeec2 techdocs-backend: Remove individual preparers and generators from app backend, to use factory methods
When a new Backstage app is setup, the techdocs backend file contains all the preparers (dir, github, gitlab, etc.) and same for generators. While this providers added customizibility, it comes with a cost of complexity in setting up the app backend. New preparers' updates would need users to update their app's techdocs backend file.

Scaffolder backend has already moved to this proposed pattern.
2020-12-17 11:33:56 +01:00
github-actions[bot] 6e9f4d4a15 Version Packages 2020-12-17 10:16:33 +00:00
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