Commit Graph

48 Commits

Author SHA1 Message Date
Clare Liguori f248b75bde Rename AwsCredentialsProvider.getCredentials -> AwsCredentialsManager.getCredentialProvider
Signed-off-by: Clare Liguori <liguori@amazon.com>
2022-12-01 13:03:45 -08:00
Clare Liguori e40790d0c2 Use integration-aws-node for credentials in S3 Techdocs
Signed-off-by: Clare Liguori <liguori@amazon.com>
2022-11-28 14:56:13 -08:00
Clare Liguori 07d4117abb Address PR comments
Signed-off-by: Clare Liguori <liguori@amazon.com>
2022-11-25 11:37:16 -08:00
Clare Liguori cbef804d23 prettier fixes
Signed-off-by: Clare Liguori <liguori@amazon.com>
2022-11-18 08:26:58 -08:00
Clare Liguori 37931c33ce TechDocs: upgrade to AWS SDK v3
Signed-off-by: Clare Liguori <liguori@amazon.com>
2022-11-17 21:36:15 -08:00
Johan Haals a7607b5413 backend-common: Deprecate read in favour of readUrl in UrlReader
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-10-20 15:01:49 +02:00
Patrik Oldsberg 2142f91b35 techdocs-node: tweak mock-fs setup
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-10-12 11:48:45 +01:00
Matteo Silvestri 2e021cda37 throw exception with undefined containerRunner and docker
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-15 17:38:34 +02:00
Matteo Silvestri 0b2a30dead fixing techdocs-cli Docker client creation
Docker client does not need to be created when --no-docker
option is provided.

If you had DOCKER_CERT_PATH environment variable defined
the Docker client was looking for certificates
and breaking techdocs-cli generate command even with --no-docker
option.

Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
2022-09-07 15:43:27 +02:00
Anders Näsman 98a5e69afd Merge pull request #13050 from tragiclifestories/gcs-project-id
Add projectId config option to GCS techdocs publisher
2022-09-06 13:11:49 +02:00
Eric Peterson 3d2f943786 Merge pull request #13420 from aarontsharp/fix_techdocs_aws_bucket_path 2022-08-31 22:33:39 +02:00
aarontsharp 34db289371 Fix GCS also
Signed-off-by: aarontsharp <aaron.sharp@carta.com>
2022-08-30 08:47:21 -07:00
Fredrik Adelöw aaab1e34da Fix linting errors after #13392
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-30 13:44:09 +02:00
aarontsharp 33ac0c0546 fix: Include bucketRootPath in AWS publisher for Techdocs
Signed-off-by: aarontsharp <aaron.sharp@carta.com>
2022-08-29 16:43:57 -07:00
James Turley aa524a5377 Add projectId config option to GCS techdocs publisher
Fixes #13049

Signed-off-by: James Turley <jamesturley@gocardless.com>
2022-08-22 15:47:18 +01:00
Camila Belo 23abde02b6 chore(techdocs-node): bump techdocs container image
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-08-01 13:12:21 +02:00
Ömer Faruk Doğan ad35364e97 feat(techdocs): add edit button support for bitbucketServer
Signed-off-by: Ömer Faruk Doğan <8117265+omerfarukdogan@users.noreply.github.com>
2022-07-27 18:31:13 +03:00
Manuel Stein ce7219ff87 awsS3 getObject expect match without regex
Signed-off-by: Manuel Stein <manuel.stein@nokia-bell-labs.com>
2022-07-24 19:19:29 +03:00
Manuel Stein f28ad77d11 awsS3 getObject expect specific error message
Signed-off-by: Manuel Stein <manuel.stein@nokia-bell-labs.com>
2022-07-24 19:12:39 +03:00
Manuel Stein 6c118dd093 wrap aws-sdk errors - (prettier update)
there are http errors with no message from aws-sdk, so the error
 is wrapped to conform to the @backstage/errors assertError checks

Signed-off-by: Manuel Stein <manuel.stein@nokia-bell-labs.com>
2022-07-23 18:34:57 +03:00
Manuel Stein c8196bd37d wrap aws-sdk errors
because there are http errors with no message any error reading the
object is wrapped to conform to the @backstage/error assertError checks

Signed-off-by: Manuel Stein <manuel.stein@nokia-bell-labs.com>
2022-07-22 18:43:44 +03:00
Dang Huynh 99f786e149 Added repo_url to function getRepoUrlFromLocationAnnotation
Signed-off-by: Dang Huynh <dhhuynh2@gmail.com>
2022-07-07 14:18:37 -05:00
Camila Belo f9e2ec2551 Merge pull request #11065 from anicke/techdocs-staticdir
[TechDocs] Added configuration for local publishing target
2022-06-23 16:54:42 +02:00
Camila Belo 7ad6bde557 Merge pull request #11839 from namco1992/fix-techdocs-cli-config
techdocs-cli: fix the legacyCopyReadmeMdToIndexMd flag in techdocs-cli generate
2022-06-23 15:53:49 +02:00
Niklas Aronsson 860765ff45 [TechDocs] Added configuration for local publishing target
This patch adds a configuration option for setting the "local"
techdocs target directory. The target directory can be set using
the "techdocs.publisher.local.publishDirectory".

This fixes two "TODOs" in the "plugins/techdocs-node/src/stages
/publish/local.ts" file:

*  Use a more persistent storage than node_modules or /tmp directory.
   Make it configurable with techdocs.publisher.local.publishDirectory
*  Move the logic of setting staticDocsDir based on config over to
   fromConfig, and set the value as a class parameter.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-06-16 22:27:39 +02:00
Eric Peterson 2c048f8b90 Fix windows test and deprecated redirect method usage.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
Co-authored-by: Emma Indal <emma.indahl@gmail.com>
2022-06-13 17:46:01 +02:00
Eric Peterson 5296b00d4a chore: fix local entity path join
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-06-13 14:11:39 +02:00
Mengnan Gong a5d73da942 techdocs-cli: fix the legacyCopyReadmeMdToIndexMd flag in techdocs-cli
generate

Signed-off-by: Mengnan Gong <namco1992@gmail.com>
2022-06-03 14:26:51 +08:00
Eric Peterson c2a1d8935e Use @spotify/techdocs v1.0.3 by default.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-05-11 09:41:54 +02:00
Eric Peterson c57446c858 Merge pull request #10846 from TierMobility/master
[TechDocs] Accept sequence node custom tags in mkdocs config validation
2022-04-25 11:37:08 +02:00
Viktor Bahr 465c8770e5 fix(techdocs-node): add trailing newline to fixture
Signed-off-by: Viktor Bahr <viktor.bahr@tier.app>
2022-04-25 11:00:48 +02:00
Eric Peterson 9fa68705bf Update default TechDocs container to v1.0.2
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-04-19 13:26:26 +02:00
Viktor Bahr 24db82d8c1 feat(techdocs-node): accept sequence node custom tags
This change to the MKDOCS_SCHEMA lets the validation logic accept
custom tags that are sequence nodes as valid.

Signed-off-by: Viktor Bahr <viktor.bahr@tier.app>
2022-04-14 17:57:47 +02:00
Viktor Bahr b7b2899e55 test(techdocs-node): sequence node custom tag validation failure
This test proves that currently only scalar YAML nodes are considered valid by
the mkdocs YAML validation logic, even though using the `!ENV` tag with
sequential data is officially supported by mkdocs[0].

[0] https://www.mkdocs.org/user-guide/configuration/#environment-variables

Signed-off-by: Viktor Bahr <viktor.bahr@tier.app>
2022-04-14 17:57:47 +02:00
Eric Peterson bcf1a2496c Nest config under mkdocs key.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-04-05 17:33:18 +02:00
Phil Kuang 9ab9ce617e fix(techdocs): do not copy docs/README.md as docs/index.md
Signed-off-by: Phil Kuang <pkuang@factset.com>
2022-04-04 12:57:38 -04:00
Patrik Oldsberg 6634ba10d0 techdocs-node: remove custom test setup
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-15 17:25:58 +01:00
Patrik Oldsberg 6869f7db09 techdocs-node: inline azure mocks
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-15 17:25:58 +01:00
Patrik Oldsberg 6ce22dad4d techdocs-node: inline google storage mock
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-15 17:25:58 +01:00
Patrik Oldsberg f81513197b techdocs-node: inline swift sdk mock
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-15 17:25:58 +01:00
Patrik Oldsberg d25346be78 techdocs-node: inline aws-s3 mock
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-15 17:25:57 +01:00
Fredrik Adelöw 6565f2c50b Merge pull request #10147 from rex4539/typos
Fix typos
2022-03-15 11:01:46 +01:00
Emma Indal b44692890b tests fixups
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-14 22:39:18 +01:00
Emma Indal cb4f0e4f07 clean up deprecations of techdocs-node plugin
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-14 22:39:17 +01:00
Dimitris Apostolou aedd4daa66 Fix typos
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
2022-03-13 14:12:05 +02:00
Eric Peterson 3e54f6c436 Use @backstage/plugin-search-common instead of @backstage/search-common
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-04 18:47:55 +01:00
Eric Peterson 91bf1e6c1a Use @backstage/plugin-techdocs-node instead of @backstage/techdocs-common
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-04 09:54:19 +01:00
Eric Peterson 84a8788794 Move packages/techdocs-common -> plugins/techdocs-node
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-03-03 17:43:21 +01:00