Contributing to Taiga - Documentation of the documentation features? #11056
-
|
I am trying to contribute to NgDrawFlow. As a first step, I would like to improve the docs a bit. But I am having a hard time to understand how to use the docs code display components (for example What I would like to do are:
Right now it looks like this:
public readonly firstNodeExample: Record<string, TuiRawLoaderContent> = {
TypeScript: import('./examples/first-node/first-node.ts?raw'),
Component: import('./examples/first-node/first-node.ts?raw'),
ComponentStyles: import('./examples/first-node/first-node.css?raw')
};In general, is there a "docs" of the "docs" page/repo? I only found this which links to a russian doc. .. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Yes, there's no need to double the files as MD, we do not do that in Taiga UI repo. @a1rat91 if that's something you do in the ng-draw-flaw, is there a reason for it? As for Preview tab, currently it's required. You would have to rework the The easiest way to hide it would probably to add filtering here so that it is ignored if it's an empty string and then override its name in DI: |
Beta Was this translation helpful? Give feedback.



Yes, there's no need to double the files as MD, we do not do that in Taiga UI repo. @a1rat91 if that's something you do in the ng-draw-flaw, is there a reason for it?
As for Preview tab, currently it's required. You would have to rework the
examplecomponent from@taiga-ui/addon-docand I'm not sure how to best go around it, it's pretty complex and is used a lot. Are you sure there's no meaningful default tab you could be showing besides code?The easiest way to hide it would probably to add filtering here so that it is ignored if it's an empty string and then override its name in DI:
https://github.com/taiga-family/taiga-ui/blob/main/projects/addon-doc/components/example/example-get-tabs…