@backstage/plugin-techdocs 1.5.0-next.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/dist/esm/index-7822455f.esm.js.map +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @backstage/plugin-techdocs
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 20840b36b4: Update DocsTable and EntityListDocsTable to accept overrides for Material Table options.
|
|
8
|
+
- 0eaa579f89: The `TechDocsSearchResultListItem` component is now a search result extension. This means that when rendered as a child of components that render search extensions, the `result`, `rank`, and `highlight` properties are optional. See the [documentation](https://backstage.io/docs/features/search/how-to-guides#how-to-render-search-results-using-extensions) for more details.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- c8e09cc383: Fixed bug in Techdocs reader where a techdocs page with a hash in the URL did not always jump to the document anchor.
|
|
13
|
+
- cad5607411: Improve view: remove footer overlay on large screen
|
|
14
|
+
- 66e2aab4c4: `ListItem` wrapper component moved to `SearchResultListItemExtension` for all `*SearchResultListItems` that are exported as extensions. This is to make sure the list only contains list elements.
|
|
15
|
+
|
|
16
|
+
Note: If you have implemented a custom result list item, we recommend you to remove the list item wrapper to avoid nested `<li>` elements.
|
|
17
|
+
|
|
18
|
+
- 4660b63947: Create a TechDocs `<LightBox/>` addon that allows users to open images in a light-box on documentation pages, they can navigate between images if there are several on one page.
|
|
19
|
+
|
|
20
|
+
Here's an example on how to use it in a Backstage app:
|
|
21
|
+
|
|
22
|
+
```diff
|
|
23
|
+
import {
|
|
24
|
+
DefaultTechDocsHome,
|
|
25
|
+
TechDocsIndexPage,
|
|
26
|
+
TechDocsReaderPage,
|
|
27
|
+
} from '@backstage/plugin-techdocs';
|
|
28
|
+
import { TechDocsAddons } from '@backstage/plugin-techdocs-react/alpha';
|
|
29
|
+
+import { LightBox } from '@backstage/plugin-techdocs-module-addons-contrib';
|
|
30
|
+
|
|
31
|
+
const AppRoutes = () => {
|
|
32
|
+
<FlatRoutes>
|
|
33
|
+
// other plugin routes
|
|
34
|
+
<Route path="/docs" element={<TechDocsIndexPage />}>
|
|
35
|
+
<DefaultTechDocsHome />
|
|
36
|
+
</Route>
|
|
37
|
+
<Route
|
|
38
|
+
path="/docs/:namespace/:kind/:name/*"
|
|
39
|
+
element={<TechDocsReaderPage />}
|
|
40
|
+
>
|
|
41
|
+
<TechDocsAddons>
|
|
42
|
+
+ <LightBox />
|
|
43
|
+
</TechDocsAddons>
|
|
44
|
+
</Route>
|
|
45
|
+
</FlatRoutes>;
|
|
46
|
+
};
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- Updated dependencies
|
|
50
|
+
- @backstage/core-components@0.12.4
|
|
51
|
+
- @backstage/catalog-model@1.2.0
|
|
52
|
+
- @backstage/theme@0.2.17
|
|
53
|
+
- @backstage/core-plugin-api@1.4.0
|
|
54
|
+
- @backstage/plugin-catalog-react@1.3.0
|
|
55
|
+
- @backstage/plugin-search-react@1.5.0
|
|
56
|
+
- @backstage/config@1.0.6
|
|
57
|
+
- @backstage/errors@1.1.4
|
|
58
|
+
- @backstage/integration@1.4.2
|
|
59
|
+
- @backstage/integration-react@1.1.10
|
|
60
|
+
- @backstage/plugin-search-common@1.2.1
|
|
61
|
+
- @backstage/plugin-techdocs-react@1.1.3
|
|
62
|
+
|
|
3
63
|
## 1.5.0-next.2
|
|
4
64
|
|
|
5
65
|
### Patch Changes
|