NRWL 故事书与 Angular:替换文档页面
我将 NRWL 与 Angular 和故事书一起使用。我想知道是否有任何方法可以用自定义 README.md 文件替换默认的文档页面。
我一直在尝试用 .mdx 文件替换文档页面,但尚未成功。
这就是我尝试从 my-component.stories.ts 文件
export default {
title: 'MyComponent',
component: MyComponent,
decorators: [
moduleMetadata({
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
MaterialModule
],
})
],
parameters: {
docs: {
page: './MyComponent.stories.mdx',
},
},
} as Meta<MyComponent>;
I am using NRWL with Angular and storybook. I am wondering if there is any way to replace default Docs page with a custom README.md file.
I have been trying to replace Docs page with a .mdx file as well but not successful yet.
This is how i am trying to override default Docs page from within my-component.stories.ts file
export default {
title: 'MyComponent',
component: MyComponent,
decorators: [
moduleMetadata({
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
MaterialModule
],
})
],
parameters: {
docs: {
page: './MyComponent.stories.mdx',
},
},
} as Meta<MyComponent>;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论