Commit Graph

233 Commits

Author SHA1 Message Date
Patrik Oldsberg d458690f5c Merge pull request #5754 from TejasQ/tejask/3333
TechDocs: Support configurable working directory as temp dir
2021-06-16 18:54:47 +02:00
Tejas Kumar 20d9c7d384 Address review comments
Signed-off-by: Tejas Kumar <tejask@spotify.com>
2021-06-16 10:09:06 +02:00
Fredrik Adelöw 3108ff7bfd Make yarn dev for backends respect the PLUGIN_PORT env var
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-14 14:46:19 +02:00
github-actions[bot] 4a93128245 Version Packages 2021-06-10 12:18:06 +00:00
github-actions[bot] b5a0d1c5d7 Version Packages 2021-05-27 10:23:15 +00:00
Tejas Kumar d93a3f9853 Refactor to use optional string
Signed-off-by: Tejas Kumar <tejask@spotify.com>
2021-05-20 16:34:04 +02:00
Tejas Kumar a345a2e019 Use backend.workingDir for techdocs
Signed-off-by: Tejas Kumar <tejask@spotify.com>
2021-05-20 16:32:31 +02:00
Tejas Kumar d2329e7486 Use stringifyEntityRef in place of deprecated
Signed-off-by: Tejas Kumar <tejask@spotify.com>
2021-05-20 16:23:13 +02:00
github-actions[bot] df31bdca8f Version Packages 2021-05-12 09:39:51 +00:00
github-actions[bot] d397eb470f Version Packages 2021-05-06 08:25:18 +00:00
Dominik Henneke e0bfd3d448 Refactor the runDockerContainer function to a ContainerRunner interface.
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-05-03 14:16:28 +02:00
Fredrik Adelöw b99ac3f6e1 Minor composability etc docs changes
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-05-02 22:13:05 +02:00
Raghunandan a1351acc87 awsS3 option endpoint -> s3ForcePathStyle
Signed-off-by: Raghunandan <soapraj@gmail.com>
2021-04-30 13:50:18 +02:00
Jussi Hallila e9e56b01ac Add possibility to use path style discovery on S3 tech docs. Enables the possibility to support S3-like buckets that rely on path style API like Localstack.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-04-29 10:54:42 +02:00
github-actions[bot] 70be53c939 Version Packages 2021-04-15 15:40:08 +02:00
Oliver Sand cba5944fcd Change the response status of metadata endpoints in case a documentation is not available to 404 NOT FOUND
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-07 16:55:39 +02:00
dependabot[bot] 66ed65899f chore(deps-dev): bump supertest from 4.0.2 to 6.1.3
Bumps [supertest](https://github.com/visionmedia/supertest) from 4.0.2 to 6.1.3.
- [Release notes](https://github.com/visionmedia/supertest/releases)
- [Commits](https://github.com/visionmedia/supertest/compare/v4.0.2...v6.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 04:38:27 +00:00
github-actions[bot] 844da89090 Version Packages 2021-03-25 17:46:13 +00:00
Chongyang Adrian, Ke aaeb7ecf3c TechDocs: show outdated docs and asnyc build new
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-03-25 10:26:11 +08:00
Oliver Sand 21cc2f9216 Different workaround for prettier issue with markdown files
Follow up for #5073

Instead of disabling prettier completely, I would prefer to disable it for the lines that actual cause issues.

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-03-24 19:28:32 +01:00
Oliver Sand 1b42444587 Fix indentions of admonitions (#5073)
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-03-23 21:29:31 +01:00
dependabot[bot] d42f055d48 chore(deps): bump express-promise-router from 3.0.3 to 4.1.0
Bumps [express-promise-router](https://github.com/express-promise-router/express-promise-router) from 3.0.3 to 4.1.0.
- [Release notes](https://github.com/express-promise-router/express-promise-router/releases)
- [Changelog](https://github.com/express-promise-router/express-promise-router/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/express-promise-router/express-promise-router/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-23 04:26:33 +00:00
github-actions[bot] 718eea4f08 Version Packages 2021-03-18 12:31:44 +00:00
Adam Harvey 9b3a205303 PIP8 alignment
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-17 11:23:08 -04:00
Adam Harvey 2ef9ac9d83 Change wording for spelling alignment
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-16 22:58:47 -04:00
Adam Harvey 8efa047a6b Wrap lines
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-16 22:50:12 -04:00
Adam Harvey 74e0e12e41 Update text
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-16 22:48:59 -04:00
Adam Harvey 70d96002ac Update example documentation
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-16 22:38:33 -04:00
Himanshu Mishra e7baa0d2ed TechDocs: Separate backend and frontend config schema declarations
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-16 15:48:46 +01:00
Himanshu Mishra 8fdb4d8e00 techdocs: backend responds with an error if publisher type is not supported
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 11:40:12 +01:00
Himanshu Mishra 75941ca364 techdocs: techdocs_metadata.json could be missing, ignore the error
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 11:30:00 +01:00
Himanshu Mishra 11242ac41e Apply suggestions from code review
Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 08:55:17 +01:00
Himanshu Mishra 784d39894a techdocs: Replace res.send with res.json
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 01:32:59 +01:00
Himanshu Mishra cf1b10f651 techdocs: When builder is set to local
1. Do not check for updates if a check has been done in last 60 seconds
2. Use stored etag from techdocs_metadata.json instead of in-memory storage
3. Enable re-building docs when in a mix of basic and recommended setup i.e. local builder with external storage

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 01:11:08 +01:00
Emma Indal c8b54c3702 TechDocs Homepage (#4401)
* add tabs to homepage

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add new overview content component

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add new owned content component

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add types

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add test for owned content component

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add test for overview content

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* document name to link and change copy to clipboard link

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* rename changeset file

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* fix types

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* move home components out from reader dir to its own dir

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* Update plugins/techdocs/src/reader/components/OverviewContent.tsx

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* enable search in table

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add docs icon to core icons

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add example TechDocs support button config

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* use isOwnerOff and useOwnUser to see documents that are owned via group membership

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* update tests

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* cleanup imports

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* leave techdocs support config out of this PR

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* prettieeeeeer

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* copy paste useOwnUser hook over to techdocs plugin

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* delete unused package

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-11 19:23:32 +01:00
Fredrik Adelöw 8686eb38cf Introduce the @backstage/errors package.
Encode thrown errors in the backend as a JSON payload using a facility in that package, and render helpful frontend displays of those errors.

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 14:31:21 +01:00
github-actions[bot] 0e120c5c66 Version Packages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 13:45:44 +01:00
Fredrik Adelöw 702b837b8b Remove all dot-folder imports everywhere
We aren't supposed to import from '.' or '../..' etc; point to the actual node being imported instead. I did allow e.g. '../../bigfolder' however. Going all the way to the individual file could be done too, but is a matter of taste perhaps.

Also ran Organize Imports on all the touched files :)

No changeset since there are no functional changes at all - only the imports changed

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-10 13:43:59 +01:00
dependabot[bot] 7616988312 chore(deps): bump knex from 0.21.18 to 0.95.1
Bumps [knex](https://github.com/knex/knex) from 0.21.18 to 0.95.1.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-08 10:26:45 +01:00
Himanshu Mishra ea3d406038 Merge pull request #4714 from erdoganoksuz/feature/OpenStackSwiftPublisher 2021-03-05 07:57:36 +00:00
Adam Harvey 56b21fda18 Merge pull request #4818 from adamdmharvey/refactor-techdocs-logging
chore(techdocs-common, techdocs-backend): Refactor TechDocs logging
2021-03-04 19:23:00 -05:00
Adam Harvey a9d7c123fb Wording tweaks
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-04 18:53:39 -05:00
Adam Harvey 2daa65a18b Change wording
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-04 18:51:57 -05:00
Adam Harvey c149b14009 Fix typo
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-04 18:51:34 -05:00
Adam Harvey 02d78290a5 Enhance example documented-component
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-04 16:05:17 -05:00
Adam Harvey 26e23b2c7d Refactor logging
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
2021-03-04 14:23:01 -05:00
github-actions[bot] ff2ab4fade Version Packages 2021-03-04 13:11:10 +00:00
erdoganoksuz e0bccb16a2 versions for changeset
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com>
2021-03-03 11:46:30 +03:00
erdoganoksuz cebda81000 documentation added
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com>
2021-03-03 11:46:23 +03:00
erdoganoksuz e36ef00fd0 router case added and hasDocsBeenGenerated fixed
Signed-off-by: Mert Can Bilgiç <mert.bilgic@trendyol.com>
2021-03-03 11:46:12 +03:00