Commit Graph

535 Commits

Author SHA1 Message Date
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
Patrik Oldsberg 9f1feb5464 plugins: fix tests for react router bump
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-29 14:10:52 +02:00
Patrik Oldsberg 763fb81e82 refactors to avoid using useParams where possible
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-08-23 18:43:26 +02:00
blam 1de5594c75 chore: reworking tests for swc
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
blam 658d6ab0e7 chore: fixing all tests
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 1826f15069 chore: reworking
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
Emma Indal 9d02b5e887 Merge pull request #13125 from backstage/camilaibs/fix-techdocs-title-subtitle
[TechDocs] Update title and subtitle when location changes
2022-08-22 16:56:57 +02:00
Fredrik Adelöw ef9ab322de it just keeps 🧹 -ing
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-18 17:21:00 +02:00
Fredrik Adelöw 3f739be9d9 more api cleanup
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-08-18 15:16:19 +02:00
Camila Belo 829f14a9b0 fix(techdocs): to update title and subtitle when location changes
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-08-12 15:27:25 +02:00
Andre Wanlin f1e97bcc4f Added back reduction in size
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2022-08-10 10:13:34 -05:00
Crevil e69f405945 Simplify code to be more readable
Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-08-01 17:40:19 +02:00
Crevil 1abe0a2333 Support already expanded navigation
Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-08-01 17:37:33 +02:00
Crevil 8acb22205c Add navigation scroll to techdocs
Currently the active navigation item might be hidden behind nested items or out
of view on load.

This change adds a techdocs transformer that scrolls any active item into view
and expands any nested active items.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-07-28 08:01:29 +02:00
Ben Lambert 9aef50ef1a Merge pull request #12679 from lunarway/feature/techdocs-nav-highlight
Add highlight to active techdocs navigation item and parents
2022-07-27 16:53:49 +02:00
Jake Crews 4bdda91def Merge branch 'master' into fix-view-techdocs-link 2022-07-26 07:51:54 -05:00
gabrielucido 83636e7c5a Added constant to sidebar width.
Signed-off-by: gabrielucido <gabrielucido@gmail.com>
2022-07-19 17:07:01 -04:00
gabrielucido 7a98c73dc8 fix(docs-like-code): Patched Techdocs Sidebar layout for medium devices.
Signed-off-by: gabrielucido <gabrielucido@gmail.com>
2022-07-19 16:43:01 -04:00
Crevil b86ed4d990 Add navigation item highlight to active item
This change adds high lighting to navigation items in tech docs. It highlights
the whole nav tree with the same color and an underline.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-07-17 16:18:27 +02:00
Eric Peterson 8d9ff6de46 Merge pull request #12043 from Bonial-International-GmbH/pjungermann/techdocs/initial-filter
feat: use same initial filter `owned` at TechDocsIndexPage as at CatalogPage
2022-07-15 10:25:56 +02:00
Patrick Jungermann ebf3eb1641 feat: use same initial filter owned at TechDocsIndexPage as at CatalogPage
Aligns filter use of catalog page (and api page) with techdocs page.

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-07-15 01:31:11 +02:00
Jake Crews a62b31c3e6 fix techdocs contexts test
Signed-off-by: Jake Crews <jake.crews@daveramsey.com>
2022-07-14 10:45:46 -05:00
Raghunandan 823ae416c5 Fix scroll issue within techdocs reader instead of adding special classes to entity page components
Signed-off-by: Raghunandan <soapraj@gmail.com>
2022-06-26 11:04:06 +02:00
Raghunandan b49cc12d95 reorder code + fix comments
Signed-off-by: Raghunandan <soapraj@gmail.com>
2022-06-26 10:34:48 +02:00
Raghunandan 03019695a3 Add special classes to identify entity page headers and tabs. Use that to make sure the sidebars in docs do not scroll beyond them
Signed-off-by: Raghunandan <soapraj@gmail.com>
2022-06-26 10:34:48 +02:00
Camila Belo 6259fcf98a refactor(techdocs): apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-06-23 13:44:11 +02:00
Emma Indal b2dd93f207 delete headings transformations
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-06-23 13:35:01 +02:00
Raghunandan Balachandran b52a63a037 Merge pull request #11936 from backstage/reorder-techdocs-page-tab-title
[Techdocs] Reorder tab title
2022-06-17 11:34:55 +02:00
Ömer Faruk Doğan cdf8e8aab0 feat(techdocs): use entity title in searchbar placeholder
Signed-off-by: Ömer Faruk Doğan <8117265+omerfarukdogan@users.noreply.github.com>
2022-06-13 09:08:24 +03:00
Eric Peterson 915700f64f Set a pagination-aware rank value for all search engines.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-06-10 15:36:11 +02:00
Eric Peterson 4b7f4eb262 Merge pull request #11777 from kuangp/feat/techdocsEntityTitle
feat(techdocs): use entity title as label in header
2022-06-09 16:33:22 +02:00
Fredrik Adelöw 98941a4304 Merge pull request #11482 from leon-vg/add-icon-to-backstage-search-results
[Search] Optional icon for catalog and techdocs results
2022-06-09 13:44:19 +02:00
Raghunandan 2931968cf7 reorder tab title
Signed-off-by: Raghunandan <soapraj@gmail.com>
2022-06-08 17:11:59 +02:00
Phil Kuang d047d81295 feat(techdocs): use entity title as label in header
Signed-off-by: Phil Kuang <pkuang@factset.com>
2022-06-07 07:43:04 -04:00
Eric Peterson da72da5dae Replace SidebarPinStateContext with versioned provider and hook.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-05-23 15:37:43 +02:00
Camila Belo b862e974cb refactor(techdocs): apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:53:35 +02:00
Camila Belo a805d841af refactor(techdocs): delete inject css
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:38:35 +02:00
Camila Belo 307581d8b6 feat(techdocs): use styles transformer
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:37:53 +02:00
Camila Belo 4e42ccad35 feat(techdocs): export styles transformer
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:35:31 +02:00
Camila Belo c7e4026c94 test(techdocs): cover styles transformer
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo b20cdd0efa feat(techdocs): create styles transformer
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo 0d969cc4df feat(techdocs): export style rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo cfa8b5be75 feat(techdocs): sort style rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo 906568604e feat(techdocs): extract extensions rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo 49fe071b65 feat(techdocs): extract animations rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo 432ed4ea1d feat(techdocs): extract typeset rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo c8df6bfd7e feat(techdocs): extract layout rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo eeba7f240c feat(techdocs): extract reset rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo 97a7e8bb0f feat(techdocs): extract variables rules
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00
Camila Belo c63b34fe85 feat(techdocs): define style rule options
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2022-05-23 14:34:36 +02:00