Commit Graph

69 Commits

Author SHA1 Message Date
Morgan Bentell 7d4a09304f use latest techdocs docker image by default
Signed-off-by: Morgan Bentell <mbentell@spotify.com>
2023-05-22 11:56:57 +02:00
Adam Harvey 87a0b37aa7 refactor: Variable typo
Signed-off-by: Adam Harvey <adaharve@cisco.com>
2023-04-29 13:58:49 -04:00
Morgan Bentell 0e30c231e6 use spotify/techdocs:v1.2.0
Signed-off-by: Morgan Bentell <mbentell@spotify.com>
2023-03-23 11:26:52 +01:00
Fredrik Adelöw 014e41add3 try to fix windows build error
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-03-07 10:20:57 +01:00
Fredrik Adelöw 65454876fb unpack props inside component bodies
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-02-27 15:31:15 +01:00
Morgan Bentell 7e2fc35df2 Merge pull request #16519 from JosiahCraw/feature/add-proxy-support-for-techdocs-awsS3
feat: add support for HTTPS proxy for AWS S3 requests in Techdocs
2023-02-27 09:38:39 +01:00
Jos Craw ea2bbef1b1 feat: add support for HTTPS proxy for AWS S3 requests in Techdocs
Signed-off-by: Jos Craw <me.joscraw@gmail.com>
2023-02-22 21:52:03 +13:00
Knut Borchers bfe350ef4c fix: Prevent deletion of non-empty directories
Signed-off-by: Knut Borchers <knut.borchers@gmail.com>
2023-02-18 18:02:46 +01:00
Renan Mendes Carvalho c5d51ad7d4 renaming(mkDocs): To mkdocs
Suggested by kmatyukhin on https://github.com/backstage/backstage/pull/15417

Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com>
Co-authored-by: Konstantin Matyukhin <kmatyukhin@gmail.com>
2023-02-14 11:16:22 +01:00
Renan Mendes Carvalho d746d81bdd renaming(getMkDocsYml): Renamed to getMkdocsYml
Suggested by kmatyukhin on https://github.com/backstage/backstage/pull/15417

Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com>
Co-authored-by: Konstantin Matyukhin <kmatyukhin@gmail.com>
2023-02-14 11:16:22 +01:00
Andre Wanlin 37c17ab92c Handle deleting temportary mkdocs.yml
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Andre Wanlin c2bba4affe Rename configExists to configIsTemporary
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Andre Wanlin 8e11504ce3 Use object for YAML file
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Andre Wanlin 248d1242bd Added property to track if config exists already
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Andre Wanlin c9758fe81e Updated default name and params
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Andre Wanlin 943c245b6f Updated to use siteOptions object
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Andre Wanlin 15b6eaf533 Large refactor
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Andre Wanlin 339d9a5b5c Use default when no mkdocs config found
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-02-08 15:21:29 +01:00
Dang Huynh 87ab76e55c Fixed AWS SDK V3 bug with s3ForcePathStyle
Signed-off-by: Dang Huynh <dhhuynh2@gmail.com>
2023-01-06 15:49:06 -06:00
Johan Haals 4ae89dbce6 backend-common: Remove read method from UrlReader
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2023-01-02 16:34:54 +01:00
Fredrik Adelöw 2d33cd4dc0 favor afterEach for mock-fs
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-12-20 15:09:41 +01:00
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