Commit Graph

599 Commits

Author SHA1 Message Date
Fredrik Adelöw d06fc3f3e3 Merge pull request #16614 from backstage/freben/unpack-props
🧹 unpack props inside component bodies
2023-03-02 10:50:51 +01:00
Patrik Oldsberg a6f22cbd40 Merge pull request #16521 from luchillo17/fix/BCKSTG-102-theme-aware-colors
refactor: Replace white & black colors with theme aware ones
2023-02-28 13:28:46 +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 54a1e133b5 enable pointer events for element that has new classname in newer versions of mkdocs-material
Signed-off-by: Morgan Bentell <mbentell@spotify.com>
2023-02-27 13:53:20 +01:00
Patrik Oldsberg 3a3e779a40 Merge pull request #16412 from immobiliare/fix-copy-to-clipboard-in-unsecure-context
fix(techdocs): copy to clipboard in not secure context
2023-02-27 10:26:14 +01:00
Antonio Musolino 238cf657c0 fix(techdocs): copy to clipboard works in usecure context
Signed-off-by: Antonio Musolino <antoniomusolino007@gmail.com>
2023-02-27 08:45:16 +01:00
Fredrik Adelöw c10384a923 Get rid of usages of the old Button
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-02-22 14:29:31 +01:00
Carlos Esteban Lopez cee0cd96cc refactor: Replace white & black colors with theme aware ones
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2023-02-22 03:53:07 -05:00
Fredrik Adelöw 306d9bbf9d Merge pull request #16367 from IlyaSavich/customizable-search-list-item-icon
Pass search item to icon component, pass icon as component to search list item
2023-02-21 14:47:05 +01:00
Ilya Savich 3f75b7607c Add ability to pass icon as function to have ability to customize it by search item
Signed-off-by: Ilya Savich <isavich@box.com>
2023-02-21 10:14:19 +01:00
Raghunandan adc244e1bd Use outerHTML during sanitize to preserve html tag attribs
Signed-off-by: Raghunandan <soapraj@gmail.com>
2023-02-15 18:38:42 +01:00
David Weber 4660b63947 feat: add TechDocs addon LightBox
Signed-off-by: David Weber <david.weber@w3tec.ch>
2023-02-06 19:38:19 +01:00
Emma Indal ce1220a4b8 support custom list item props on search extensions
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2023-02-02 09:36:30 +01:00
Emma Indal f7e698636a updates based on result list items extension changes
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2023-02-01 15:40:21 +01:00
Emma Indal a0619a5b49 make sure result list is structured with list elements only
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2023-02-01 15:40:21 +01:00
Ben Lambert 7f11883e24 Merge pull request #15813 from ryan-hanchett/feat/doc-table-pagesize
feat: add option to override material table options for DocsTable
2023-01-30 14:05:42 +01:00
Camila Belo 2f91e1684e feat(search): create catalog, explore, tools, and search extensions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2023-01-28 10:05:15 +01:00
Ryan Hanchett ba3a089c5e Merge branch 'master' of github.com:ryan-hanchett/backstage into feat/doc-table-pagesize 2023-01-23 15:38:05 -08:00
Damien Vitrac cad5607411 fix(techdocs): remove footer overlay on large screen
Uses static positions on the child links instead of the container
Resolves #15653

Signed-off-by: Damien Vitrac <dvitrac@vmware.com>
2023-01-23 14:04:03 +01:00
Morgan Bentell 40f77667c8 Merge pull request #15598 from gtestault/master
fix(techdocs): Fixes anchor bug in Techdocs reader
2023-01-19 12:21:49 +01:00
Ryan Hanchett 21c64d53bb feat: enable passing material table options to docs table via entity list docs table
Signed-off-by: Ryan Hanchett <ryan.hanchett@invitae.com>
2023-01-17 14:30:28 -08:00
Carlos Esteban Lopez 1daac71e74 fix: Apply linter <span> rule
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2023-01-10 16:07:40 -05:00
Gabriel Testault cb5a4d4849 fix(techdocs): remove comment about implementation details
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com>
2023-01-10 12:59:52 +01:00
Gabriel Testault c8e09cc383 fix(techdocs): Fixed bug in Techdocs reader where a techdocs page with a hash in the URL did not always jump to the document anchor.
the scrollIntoAnchor transformer now jumps to the anchor only after css waas loaded instead of jumping after 200ms.

Signed-off-by: Gabriel Testault <gabriel.testault@goto.com>
2023-01-05 16:17:08 +01:00
Patrik Oldsberg db2e137744 remove unnecessary usages of ThemeProvider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-31 18:24:32 +01:00
Ben Lambert 4100f670b0 Merge pull request #14965 from kuangp/fix/techdocsLog
fix(TechDocsBuildLogs): properly render entire log
2022-12-28 16:44:46 +01:00
Morgan e567de03a1 add another test
Signed-off-by: Morgan <mbentell@spotify.com>
2022-12-20 10:03:48 +01:00
Morgan 665c681f3c fix tests that broke
Signed-off-by: Morgan <mbentell@spotify.com>
2022-12-20 09:55:50 +01:00
Morgan Bentell 028f88ecb4 Update test string
Signed-off-by: Morgan Bentell <morgan.bentell@gmail.com>
2022-12-19 18:06:41 +01:00
Morgan 6aa2b965eb when looking for the page within the outlet, reject addons wrapper as well as addons, because different versions of react router use different numbers of wrappers. Should be compatible with all 6.* versions now
Signed-off-by: Morgan <mbentell@spotify.com>
2022-12-19 17:48:13 +01:00
Carlos Esteban Lopez 87cbf39fa1 fix: Fix button linter rules
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2022-12-13 11:37:14 -05:00
Patrik Oldsberg 530a1f1299 plugins: replace react-router mocks with react-router-dom
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-12 21:30:57 +01:00
Patrik Oldsberg 2e701b3796 refactor react-router -> react-router-dom
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-10 15:17:53 +01:00
Phil Kuang a74dd61534 fix(TechDocsBuildLogs): properly render entire log
Signed-off-by: Phil Kuang <pkuang@factset.com>
2022-12-07 21:54:15 -05:00
Patrik Oldsberg 3ad5d36e52 Merge pull request #14615 from jsundquist/master
fix(search): update to only link title in search results
2022-11-28 15:10:38 +01:00
Fredrik Adelöw 3bd6cc7c55 some more progress toward ubiquitous eslint-plugin-testing-library
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-23 09:28:37 +01:00
Fredrik Adelöw d3fea4ae0a avoid globals
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-22 15:42:29 +01:00
Fredrik Adelöw cb716004ef add some eslint rules for testing-library use in tests
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-18 11:29:20 +01:00
Jonathan Sundquist 81e945d052 move link outside of ternary
Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com>
2022-11-15 09:24:28 -06:00
Patrik Oldsberg 7ac593e8d3 Merge pull request #14075 from ilteoood/fix/14026
fix: page hader
2022-11-15 09:19:31 +01:00
Jonathan Sundquist a19cffbeed fix(search): update to only link title in search results
Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com>
2022-11-14 10:16:44 -06:00
Anders Näsman e984e9018f Merge pull request #14256 from omerfarukdogan/master
feat(docs): hide document description if not provided
2022-11-14 14:05:18 +01:00
Eric Peterson bd2aab4726 Capture 'click' event on link clicks within TechDocs dom
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-11-11 12:00:37 +01:00
Ömer Faruk Doğan 63705e73d9 feat(docs): hide document description if not provided
Signed-off-by: Ömer Faruk Doğan <8117265+omerfarukdogan@users.noreply.github.com>
2022-11-10 16:58:21 +03:00
Matteo Pietro Dazzi 22719b8812 Merge remote-tracking branch 'backstage/master' into fix/14026 2022-10-26 22:12:33 +02:00
Matteo Pietro Dazzi f5ab2bc24c fix: capitalize
Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
2022-10-26 22:12:18 +02:00
Matteo Pietro Dazzi 9a2088fb8c refactor: position
Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
2022-10-26 22:12:18 +02:00
Otto Sichert cc8701d2fb Add documentation for configuring TechDocsReaderPage
Signed-off-by: Otto Sichert <git@ottosichert.de>
2022-10-25 17:38:43 +02:00
Morgan 5878dcd120 remove unused import
Signed-off-by: Morgan <mbentell@spotify.com>
2022-10-25 16:39:57 +02:00
Morgan 1a22b5f1b1 rewrite loop code
Signed-off-by: Morgan <mbentell@spotify.com>
2022-10-25 16:27:03 +02:00