Commit Graph

388 Commits

Author SHA1 Message Date
Fredrik Adelöw 2993f0ea45 Merge pull request #6261 from GoWind/techdocs-fetch-with-credentials
Techdocs: Include cookies when requesting SVGs
2021-06-30 23:41:55 +02:00
Gowind 103b1b6ea6 Add unit test to ensure credentials are sent for SVGs
Signed-off-by: Gowind <petrovgovind@gmail.com>
2021-06-30 22:51:16 +02:00
Phil Kuang a444c7431a feat(techdocs): filter fetched entity kinds and fields
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-06-30 15:15:28 -04:00
Gowind 99a2873c76 Techdocs: Include cookies when requesting SVGs
Signed-off-by: Gowind <petrovgovind@gmail.com>
2021-06-29 15:18:01 +02:00
github-actions[bot] 5a64fe7ea5 Version Packages 2021-06-24 09:58:38 +00:00
dependabot[bot] d3b6c6c12a chore(deps): bump msw from 0.21.2 to 0.29.0
Bumps [msw](https://github.com/mswjs/msw) from 0.21.2 to 0.29.0.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mswjs/msw/compare/v0.21.2...v0.29.0)

---
updated-dependencies:
- dependency-name: msw
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 04:45:44 +00:00
Patrik Oldsberg 9258c54f87 Merge branch 'master' into rugvip/mod 2021-06-22 10:07:18 +02:00
Yousif Al-Raheem aefd54da6e fix overlapping sidebar with tabs in techdocs (#6121)
Signed-off-by: Yousif Al-Raheem <yousifalraheem@gmail.com>
2021-06-21 12:40:48 +02:00
Patrik Oldsberg fea7878f01 packages,plugins: update api reports for core migration
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-19 20:26:19 +02:00
Patrik Oldsberg 89e3ef223f plugins: run yarn diff --yes to fix dependencies for new core packages
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-19 15:33:11 +02:00
Patrik Oldsberg d453c05dc3 apply core-imports codemod to all packages and plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-19 15:33:08 +02:00
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
blam 90bd5ab9e7 chore: updating the api-docs as some PR's were merged after the api-docs PR merge that were not rebuilt
Signed-off-by: blam <ben@blam.sh>
2021-06-18 10:08:26 +02:00
Patrik Oldsberg 820de63018 Merge pull request #6076 from backstage/rugvip/allreports
scripts/api-extractor: create and check API reports for all(most) plugins
2021-06-17 15:46:11 +02:00
Otto Sichert 693b4ed59c Merge pull request #5975 from SDA-SE/feat/techdocs-states
[TechDocs] Refactor the implicit logic from `<Reader />` into an explicit state machine
2021-06-17 15:23:01 +02:00
Patrik Oldsberg d8d7226fce plugins: generate api reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-17 13:30:06 +02:00
Dominik Henneke ba984f675a Add a BUILD_READY_RELOAD type that replaces the old contentIsStale logic
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-17 10:23:41 +02:00
Dominik Henneke 2b9d30b153 Fix minor issues from the review comments
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-17 10:23:41 +02:00
Dominik Henneke 1dfec7a2ae Refactor the implicit logic from <Reader /> into an explicit state machine
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-17 10:23:41 +02:00
github-actions[bot] 36e5a82e9b Version Packages 2021-06-17 08:08:44 +00:00
Eric Peterson 33f820eb07 Merge pull request #6006 from backstage/iameap/bug-techdocs-ext-svg
[TechDocs] Fix external image rendering
2021-06-17 09:52:18 +02:00
Eric Peterson 0606f9b416 Clean up tests.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-17 09:30:36 +02:00
Patrik Oldsberg 560e0dd0b2 Merge pull request #5968 from ougfh/fix-doc-navigation-links-for-non-dir-urls
Do not add / for html pages in rewriteDocLinks
2021-06-15 18:23:40 +02:00
Dominik Henneke 938aee2fbd Fix the link to the documentation page when no owned documents are displayed
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-06-14 17:33:55 +02:00
Emma Indal 667656c8b5 [TechDocs] TechDocs custom homepage with user owned filter support (#5994)
* add emptystate to docs card grid

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

* adjust filterpredicate to accept a string, adjust custom home page based on owned documents filter

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

* update the techdocs home page to use the new ownedByUser filter

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

* fix tests

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

* use useOwnUser hook from catalog react plugin and delete duplicate one

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

* add changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2021-06-11 16:52:46 +02:00
Eric Peterson 86fc1c3930 Carve out exception for external SVGs
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-06-11 10:35:01 +02:00
github-actions[bot] 4a93128245 Version Packages 2021-06-10 12:18:06 +00:00
Anastasia Rodionova 2e1fbe203b Do not add / for html pages in rewriteDocLinks
Signed-off-by: Anastasia Rodionova <argali96@gmail.com>
2021-06-09 10:28:47 +02:00
github-actions[bot] fa92d70fba Version Packages 2021-06-03 13:23:54 +02:00
Eric Peterson 348c46896f Disallow object tags
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-28 17:46:08 +02:00
Eric Peterson 1b24ae1c7f Account for displaying SVGs in the frontend.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-28 17:45:16 +02:00
github-actions[bot] b5a0d1c5d7 Version Packages 2021-05-27 10:23:15 +00:00
Eric Peterson 54d3fdb338 Allow bundled files to be downloaded by respecting a[download]
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-26 17:07:45 +02:00
Eric Peterson fd381447a5 Fixes WSOD when loading docs with un-parseable URLs that were auto-transformed to links by mkdocs
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-24 17:51:53 +02:00
Crevil 4ea9df9d33 Set techdocs admonition font size to 1rem
Currently admonitions in TechDocs are rendered with font size 0.64rem which is much smaller than the rest of the text. This makes admontions hard to read and further "undo"s the attention they are here to provide.

This change adds a style overide, like we do with tables that sets the size to 1rem for bot collapsable and expanded admonitions.

Some trailing whitespace in the CSS styles is removed as well.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2021-05-21 21:52:27 +02:00
github-actions[bot] 18285453eb Version Packages 2021-05-20 11:48:46 +00:00
Fredrik Adelöw 3ecc5579eb Merge pull request #5676 from jrusso1020/jrusso/remove-circular-dependencies
Remove circular dependencies
2021-05-17 18:01:04 +02:00
Himanshu Mishra d45c9b04ce Merge pull request #5640 from roflc0pter/fix-sidebar-position
Add height of md-tabs on sidebar position
2021-05-17 13:23:53 +02:00
Himanshu Mishra a2c39ce841 Merge pull request #5632 from SDA-SE/feat/techdocs-hash
TechDocs: Handle URLs with a `#hash` correctly when rewriting link URLs
2021-05-17 12:43:37 +02:00
jrusso1020 65e6c45410 Remove circular dependencies
In reference to issue #5563 this does the initial work to remove
all the circular dependencies that we have encountered while
building backstage using bazel. The next step will be to implement
a method to catch these circular dependencies before they get
merged in

Signed-off-by: jrusso1020 <jrusso@brex.com>
2021-05-15 11:17:05 -06:00
github-actions[bot] df31bdca8f Version Packages 2021-05-12 09:39:51 +00:00
Emre a62cfe0682 add height of md-tabs on sidebar position
Signed-off-by: Emre <m.emre.konar@gmail.com>
2021-05-11 17:58:37 +02:00
dependabot[bot] ee103bc710 chore(deps): bump @testing-library/user-event from 12.8.3 to 13.1.8
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.8.3 to 13.1.8.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v12.8.3...v13.1.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 14:30:59 +02:00
Oliver Sand 35e0916040 Handle URLs with a #hash correctly when rewriting link URLs
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-05-10 17:45:26 +02:00
dependabot[bot] 0b51bcb008 chore(deps): bump react-use from 15.3.8 to 17.2.4
Bumps [react-use](https://github.com/streamich/react-use) from 15.3.8 to 17.2.4.
- [Release notes](https://github.com/streamich/react-use/releases)
- [Changelog](https://github.com/streamich/react-use/blob/master/CHANGELOG.md)
- [Commits](https://github.com/streamich/react-use/compare/v15.3.8...v17.2.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 09:20:46 +00:00
github-actions[bot] d397eb470f Version Packages 2021-05-06 08:25:18 +00:00
Oliver Sand 2e05277e0d Fix navigation in a page using the table of contents
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-05-04 14:17:29 +02:00
Erik Larsson 4ca6998aad Remove deprecated condition
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-05-04 02:34:24 +02:00
Erik Larsson 6381b7ec87 tsc
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-29 17:15:27 +02:00
Erik Larsson 5f1f40a65c Remove incorreect api factory creation
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-29 17:15:27 +02:00