@backstage/plugin-techdocs 0.13.3-next.0 → 0.14.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 +72 -0
- package/dist/index.d.ts +11 -13
- package/dist/index.esm.js +433 -134
- package/dist/index.esm.js.map +1 -1
- package/package.json +28 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
# @backstage/plugin-techdocs
|
|
2
2
|
|
|
3
|
+
## 0.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2262fe19c9: **BREAKING**: Removed support for passing in an explicit `entity` prop to entity page extensions, which has been deprecated for a long time. This is only a breaking change at the TypeScript level, as this property was already ignored.
|
|
8
|
+
- 4faae902eb: Adjust the Tech Docs page theme as a side effect of the `mkdocs-material` theme update.
|
|
9
|
+
|
|
10
|
+
If you use the `spofify/techdocs` image to build your documentation, make sure you use version `spotify/techdocs:v0.3.7`.
|
|
11
|
+
|
|
12
|
+
**Breaking**: The `PyMdown` extensions have also been updated and some syntax may have changed, so it is recommended that you check the extension's documentation if something stops working.
|
|
13
|
+
For example, the syntax of tags below was deprecated in `PyMdown` extensions `v.7.0` and in `v.8.0.0` it has been removed. This means that the old syntax specified below no longer works.
|
|
14
|
+
|
|
15
|
+
````markdown
|
|
16
|
+
```markdown tab="tab"
|
|
17
|
+
This is some markdown
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```markdown tab="tab 2"
|
|
21
|
+
This is some markdown in tab 2
|
|
22
|
+
```
|
|
23
|
+
````
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 3bbb4d98c6: Changed <TechdocsPage /> to use <NotFoundErrorPage /> from createApp
|
|
28
|
+
- ed09ad8093: Updated usage of the `LocationSpec` type from `@backstage/catalog-model`, which is deprecated.
|
|
29
|
+
- b776ce5aab: Replaced use of deprecated `useEntityListProvider` hook with `useEntityList`.
|
|
30
|
+
- d4f67fa728: Removed import of deprecated hook.
|
|
31
|
+
- 45e1706328: Continuation of [#9569](https://github.com/backstage/backstage/pull/9569), fix Tech Docs Reader search position to be the same width as content.
|
|
32
|
+
- 919cf2f836: Minor updates to match the new `targetRef` field of relations, and to stop consuming the `target` field
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
- @backstage/plugin-catalog@0.9.0
|
|
35
|
+
- @backstage/core-components@0.8.10
|
|
36
|
+
- @backstage/plugin-catalog-react@0.7.0
|
|
37
|
+
- @backstage/catalog-model@0.11.0
|
|
38
|
+
- @backstage/core-plugin-api@0.7.0
|
|
39
|
+
- @backstage/integration@0.7.5
|
|
40
|
+
- @backstage/plugin-search@0.7.1
|
|
41
|
+
- @backstage/integration-react@0.1.23
|
|
42
|
+
|
|
43
|
+
## 0.13.4
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5
|
|
48
|
+
- c77c5c7eb6: Added `backstage.role` to `package.json`
|
|
49
|
+
- 6553985cd4: Match text size of admonitions to main content text size.
|
|
50
|
+
- 9df7b43e1a: Improve overall appearance of highlighted code in docs.
|
|
51
|
+
- Updated dependencies
|
|
52
|
+
- @backstage/core-components@0.8.9
|
|
53
|
+
- @backstage/core-plugin-api@0.6.1
|
|
54
|
+
- @backstage/errors@0.2.1
|
|
55
|
+
- @backstage/integration@0.7.3
|
|
56
|
+
- @backstage/integration-react@0.1.22
|
|
57
|
+
- @backstage/plugin-catalog@0.8.0
|
|
58
|
+
- @backstage/plugin-catalog-react@0.6.15
|
|
59
|
+
- @backstage/plugin-search@0.7.0
|
|
60
|
+
- @backstage/catalog-model@0.10.0
|
|
61
|
+
- @backstage/config@0.1.14
|
|
62
|
+
- @backstage/theme@0.2.15
|
|
63
|
+
|
|
64
|
+
## 0.13.3
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- Updated dependencies
|
|
69
|
+
- @backstage/core-components@0.8.8
|
|
70
|
+
- @backstage/plugin-search@0.6.2
|
|
71
|
+
- @backstage/plugin-catalog-react@0.6.14
|
|
72
|
+
- @backstage/plugin-catalog@0.7.12
|
|
73
|
+
- @backstage/integration-react@0.1.21
|
|
74
|
+
|
|
3
75
|
## 0.13.3-next.0
|
|
4
76
|
|
|
5
77
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
3
|
import { DiscoveryApi, FetchApi, IdentityApi } from '@backstage/core-plugin-api';
|
|
4
4
|
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
5
|
-
import { Entity,
|
|
5
|
+
import { Entity, EntityName } from '@backstage/catalog-model';
|
|
6
6
|
import { Config } from '@backstage/config';
|
|
7
7
|
import * as _backstage_core_components from '@backstage/core-components';
|
|
8
8
|
import { TableColumn, TableProps } from '@backstage/core-components';
|
|
9
9
|
import { UserListFilterKind } from '@backstage/plugin-catalog-react';
|
|
10
10
|
import { CSSProperties } from '@material-ui/styles';
|
|
11
|
-
import React from 'react';
|
|
11
|
+
import React, { PropsWithChildren } from 'react';
|
|
12
12
|
import * as _material_table_core from '@material-table/core';
|
|
13
13
|
|
|
14
14
|
declare type TechDocsMetadata = {
|
|
@@ -16,7 +16,10 @@ declare type TechDocsMetadata = {
|
|
|
16
16
|
site_description: string;
|
|
17
17
|
};
|
|
18
18
|
declare type TechDocsEntityMetadata = Entity & {
|
|
19
|
-
locationMetadata?:
|
|
19
|
+
locationMetadata?: {
|
|
20
|
+
type: string;
|
|
21
|
+
target: string;
|
|
22
|
+
};
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
/**
|
|
@@ -256,9 +259,7 @@ declare const techdocsPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
|
256
259
|
entityContent: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
257
260
|
}, {}>;
|
|
258
261
|
declare const TechdocsPage: () => JSX.Element;
|
|
259
|
-
declare const EntityTechdocsContent: (_props: {
|
|
260
|
-
entity?: _backstage_catalog_model.Entity | undefined;
|
|
261
|
-
}) => JSX.Element;
|
|
262
|
+
declare const EntityTechdocsContent: (_props: {}) => JSX.Element;
|
|
262
263
|
declare const DocsCardGrid: ({ entities, }: {
|
|
263
264
|
entities: _backstage_catalog_model.Entity[] | undefined;
|
|
264
265
|
}) => JSX.Element | null;
|
|
@@ -285,19 +286,16 @@ declare type Props$1 = {
|
|
|
285
286
|
};
|
|
286
287
|
declare const Reader: ({ entityRef, onReady, withSearch, }: Props$1) => JSX.Element;
|
|
287
288
|
|
|
288
|
-
declare type TechDocsPageHeaderProps = {
|
|
289
|
+
declare type TechDocsPageHeaderProps = PropsWithChildren<{
|
|
289
290
|
entityRef: EntityName;
|
|
290
291
|
entityMetadata?: TechDocsEntityMetadata;
|
|
291
292
|
techDocsMetadata?: TechDocsMetadata;
|
|
292
|
-
}
|
|
293
|
-
declare const TechDocsPageHeader: ({ entityRef, entityMetadata, techDocsMetadata, }: TechDocsPageHeaderProps) => JSX.Element;
|
|
293
|
+
}>;
|
|
294
|
+
declare const TechDocsPageHeader: ({ entityRef, entityMetadata, techDocsMetadata, children, }: TechDocsPageHeaderProps) => JSX.Element;
|
|
294
295
|
|
|
295
296
|
declare const isTechDocsAvailable: (entity: Entity) => boolean;
|
|
296
297
|
declare const Router: () => JSX.Element;
|
|
297
|
-
declare type Props = {
|
|
298
|
-
/** @deprecated The entity is now grabbed from context instead */
|
|
299
|
-
entity?: Entity;
|
|
300
|
-
};
|
|
298
|
+
declare type Props = {};
|
|
301
299
|
declare const EmbeddedDocsRouter: (_props: Props) => JSX.Element;
|
|
302
300
|
|
|
303
301
|
export { DefaultTechDocsHome, DocsCardGrid, DocsResultListItem, DocsTable, DocsTableRow, EmbeddedDocsRouter, EntityListDocsGrid, EntityListDocsTable, EntityTechdocsContent, PanelType, Reader, Router, SyncResult, TechDocsApi, TechDocsClient, TechDocsCustomHome, TechDocsIndexPage, TechDocsPage, TechDocsPageHeader, TechDocsPageHeaderProps, TechDocsPageProps, TechDocsPageRenderFunction, TechDocsPageWrapper, TechDocsPicker, TechDocsReaderPage, TechDocsStorageApi, TechDocsStorageClient, TechdocsPage, isTechDocsAvailable, techdocsPlugin as plugin, techdocsApiRef, techdocsPlugin, techdocsStorageApiRef };
|