Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(documentation): add props component, fix documentations and versions #42

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

zorox112-practicum
Copy link
Collaborator

No description provided.

@@ -60,11 +59,9 @@
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-plugin-typescript-to-proptypes": "^1.0.0",
"cross-env": "^7.0.3",
"docz": "^2.4.0",
"docz": "^2.3.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На 2 ноутах у меня не собирается дока из мастера, потому пришлось понизить версию до "стабильной" (такой конфиг был тут пару месяцев назад), которая бы нормально собиралась и следовательно удалил лишние и неактуальные зависимости


# Button

## Properties
<Props of={Button} />
## Custom properties
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Теперь компоненты с большим числом пропов будут иметь сверху кастомный список пропов, потом примеры, потом весь список пропов

Не типизирую, так как это копипаста из библиотеки,
функция getPropType не экспортируется из нее, потому пришлось копировать :(
*/
const RE_OBJECTOF = /(?:React\.)?(?:PropTypes\.)?objectOf\((?:React\.)?(?:PropTypes\.)?(\w+)\)/;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Копипаста из библиотеки, надо попробовать сделать к ним ПР, чтобы они экспортировали нужную нам функцию

@zorox112-practicum zorox112-practicum merged commit fa43df8 into main Nov 2, 2022
@zorox112-practicum zorox112-practicum deleted the fix_documentation branch November 2, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant