Commit Graph

824 Commits

Author SHA1 Message Date
Fredrik Adelöw d530d13a6e Merge pull request #29760 from csuich2/techdocs-entity-path
feat: add techdocs-entity-path annotation for techdocs deep linking
2025-05-27 14:46:39 +02:00
Chris Suich fcd29a338e useLayoutEffect, useRef, and simply deps
Signed-off-by: Chris Suich <csuich2@gmail.com>
2025-05-21 14:53:50 -04:00
Patrik Oldsberg 18c64e9bd4 plugins: add info.packageJson loader for all plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-05-15 11:25:53 +02:00
John Philip 8e9269825d Merge pull request #29790 from logonoff/docs
fix(techdocs): Update keyboard focus when clicking hash links
2025-05-06 09:29:26 -04:00
logonoff 2ffd273365 fix(techdocs): add focus+hover styling to codeblock CTC button (#29792)
* fix(techdocs): add aria-label to codeblock CTC button

Signed-off-by: logonoff <git@logonoff.co>

* fix(techdocs): add focus+hover styling to codeblock CTC button

Signed-off-by: logonoff <git@logonoff.co>

---------

Signed-off-by: logonoff <git@logonoff.co>
2025-04-30 16:36:27 -04:00
logonoff 7d445da49a fix(techdocs): Update keyboard focus on when clicking hash links
Signed-off-by: logonoff <git@logonoff.co>
2025-04-29 14:18:59 -04:00
Chris Suich ae717aa54c move helpers to techdocs-react
Signed-off-by: Chris Suich <csuich2@gmail.com>
2025-04-28 12:43:57 -04:00
Chris Suich ec7b35d77e feat: add techdocs-entity-path annotation for techdocs deep linking
This annotation enables specifying a path within another entities
techdocs to use as the root techdocs page.

Signed-off-by: Chris Suich <csuich2@gmail.com>
2025-04-28 11:32:28 -04:00
Fredrik Adelöw 28aa309325 Merge pull request #29665 from GabDug/typos
chore(typos): fix various code typos
2025-04-28 16:50:18 +02:00
Patrik Oldsberg fb58f20613 frontend-plugin-api: rename plugin ID option to pluginId
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-27 12:53:08 +02:00
Gabriel Dugny 72d019d663 chore(typos): Fix low-impact typos
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2025-04-23 17:56:22 +02:00
Patrik Oldsberg 3ac6a716b1 couple of type fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-17 20:19:15 +02:00
Paul Schultz 2e26579e06 chore: update react imports
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-04-08 07:35:24 -05:00
Alex Lorenzi 3ca7dd0b75 Switched to using styled components API which seems to solve issue of CSS being removed when switching pages in Docs
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com>
2025-03-02 09:26:15 -05:00
Alex Lorenzi bbaa722f80 Added className prop to Page component and override styles in the TechDocsReaderPage.tsx
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com>
2025-03-02 09:26:15 -05:00
Alex Lorenzi d381f3ec6a Override the BackstagePage default styles to avoid a "double scrollbar" situation that was stop the page from fully scrolling to the top of the page when we navigated to a new page
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com>
2025-03-02 09:26:15 -05:00
Jackson Chen b5a82087a7 techdocs: add extensions for techdocs addons (#28644)
* techdocs: add extensions for techdocs addons

Signed-off-by: Jackson Chen <jacksonc@spotify.com>

* techdocs: add blueprint extension for techdocs addons

Signed-off-by: Jackson Chen <jacksonc@spotify.com>

* techdocs: move addons blueprint to alpha

Signed-off-by: Jackson Chen <jacksonc@spotify.com>

* techdocs: add addon extensions for new frontend system and add docs

Signed-off-by: Jackson Chen <jacksonc@spotify.com>

* techdocs: fix addon modules naming patterns

Signed-off-by: Jackson Chen <jacksonc@spotify.com>

* techdocs: update test utils with entity presentation api

Signed-off-by: Jackson Chen <jacksonc@spotify.com>

---------

Signed-off-by: Jackson Chen <jacksonc@spotify.com>
2025-02-21 16:39:45 -05:00
John Philip 8486796262 Merge pull request #28867 from johnphilip283/fix-svg-styling
Fix svg styling
2025-02-18 11:17:19 -05:00
John Philip b5691cf531 Merge pull request #28872 from johnphilip283/preserve-svg-anchors
Update logic for determining if svg needs to be fetched
2025-02-18 11:13:11 -05:00
John Philip a58b25198e update tests
Signed-off-by: John Philip <jphilip@spotify.com>
2025-02-17 02:37:31 -05:00
John Philip 9ddc60b220 add url params to title of techdocs
Signed-off-by: John Philip <jphilip@spotify.com>
2025-02-17 02:14:11 -05:00
John Philip 9084375b27 clean up unnecessary test
Signed-off-by: John Philip <jphilip@spotify.com>
2025-02-16 23:32:14 -05:00
John Philip fe4abb8306 update logic for determining if svg needs to be fetched
Signed-off-by: John Philip <jphilip@spotify.com>
2025-02-16 23:30:23 -05:00
John Philip ce64f81d30 include dominant-baseline styling for svgs
Signed-off-by: John Philip <jphilip@spotify.com>
2025-02-15 01:24:36 -05:00
Alex Lorenzi 76c91c11cb fixed test
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com>
2025-02-13 12:46:57 -05:00
Alex Lorenzi 840a2687fe This is a better fix. Docs for Azure/fetch-event-source mention you should re-throw the error in the onerror function to stop operation
Signed-off-by: Alex Lorenzi <alorenzi@spotify.com>
2025-02-12 18:24:57 -05:00
Stephen Glass 681ac9d2e6 update test case to support custom error page
Signed-off-by: Stephen Glass <stephen@stephen.glass>
2025-01-29 16:00:12 +01:00
Stephen Glass eb3d91a351 use custom error page
Signed-off-by: Stephen Glass <stephen@stephen.glass>
2025-01-29 16:00:12 +01:00
Patrik Oldsberg 524f0afb30 techdocs: add missing alpha entity content route ref
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-01-22 12:01:48 +01:00
John Philip 47e429861d Merge pull request #27853 from autodesk-forks/nikolarAutodesk/makeTechDocsCustomizable
[plugin-techdocs] Add props to increase flexibility and reusability
2025-01-20 03:25:59 -05:00
Jenil Jain 5b33b7bdcb feat: Small fix
Signed-off-by: Jenil Jain <jenil.jain@harness.io>
2025-01-15 18:39:43 +05:30
Jenil Jain 9562155b8b feat: Techdocs base url should be app.baseUrl
Signed-off-by: Jenil Jain <jenil.jain@harness.io>
2025-01-15 18:39:43 +05:30
Jenil Jain e1ab047fa1 feat: Techdocs base url should be app.baseUrl
Signed-off-by: Jenil Jain <jenil.jain@harness.io>
2025-01-15 18:39:43 +05:30
nikolar 301a40f00f fix tests
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2025-01-14 18:54:16 -08:00
nikolar be04f3c91c use entityPresentationApi for title
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2025-01-14 17:55:56 -08:00
nikolar 85097cf492 clarify test actions
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2025-01-06 12:14:10 -08:00
Yasser Hennawi 3710b3507f fix: pass down withSearch from EntityTechdocsContent component
Signed-off-by: Yasser Hennawi <yahennawi@gmail.com>
2025-01-05 18:48:07 +01:00
nikolar f1a09dd40e 🧹
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-20 22:29:16 -08:00
nikolar 0fc1936db4 fix custom props
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-20 17:39:44 -08:00
nikolar ba17e05f6c fix error with suggestion for showHeader and showSupport
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-18 11:52:23 -08:00
nikolar 4c5df2c59f update review comments
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-17 17:54:01 -08:00
Tyler Davis 1ffb9f36e9 Properly capitalize Kind facet in CatalogTable title
Signed-off-by: Tyler Davis <tylerd@canva.com>
2024-12-12 21:02:20 +11:00
nikolar b75dc530bc Merge branch 'nikolarAutodesk/makeTechDocsCustomizable' of https://github.com/autodesk-forks/backstage into nikolarAutodesk/makeTechDocsCustomizable 2024-12-10 16:42:19 -08:00
Reyna Nikolayev 845b0f17f5 Merge branch 'master' into nikolarAutodesk/makeTechDocsCustomizable
Signed-off-by: Reyna Nikolayev <146387693+nikolarAutodesk@users.noreply.github.com>
2024-12-10 16:40:53 -08:00
nikolar d3dc0ec77d linkDestination can be undefined
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-10 14:19:43 -08:00
John Philip de022802e0 Merge pull request #27694 from hyb175/feature/add-pagination-to-tech-docs-table
[Feature] Add Pagination to Tech Docs Table
2024-12-10 14:02:38 -05:00
nikolar 0d7097b705 fix api-report warning
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-03 16:29:04 -08:00
nikolar 351952cb93 renaming
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-03 15:41:04 -08:00
nikolar 1f40e6bf88 add docs and clean up
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-02 22:35:58 -08:00
nikolar b6a8c56a81 add testing
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
2024-12-02 20:09:30 -08:00