(chore) reverse docs-theme dependency direction#8005
(chore) reverse docs-theme dependency direction#8005cameronjoyner wants to merge 3 commits intodevelopfrom
Conversation
Generate changelog in
|
| "dependencies": { | ||
| "@blueprintjs/colors": "workspace:^", | ||
| "@blueprintjs/core": "workspace:^", | ||
| "@blueprintjs/docs-data": "workspace:^", |
There was a problem hiding this comment.
Notice that docs-theme now depends on docs-data rather than the other way around 👍
moving around a functionBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
| // @ts-check | ||
|
|
||
| import escapeHTML from "escape-html"; | ||
| import { marked } from "marked"; |
There was a problem hiding this comment.
This entire file will be remove in a forthcoming PR
fix slugify index.js importBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
reverting some of my changesBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
24247dd to
215922e
Compare
| import { marked } from "marked"; | ||
|
|
||
| import { Classes } from "@blueprintjs/core"; | ||
| import { Classes as DocsClasses } from "@blueprintjs/docs-theme"; |
There was a problem hiding this comment.
Only removed because docs-data doesn't rely on docs-theme anymore
| export function renderBlock( | ||
| /** the block to render */ | ||
| block: Block | undefined, | ||
| block: Block | DocPage | undefined, |
There was a problem hiding this comment.
Added here instead of adding conditional logic to packages/docs-theme/src/components/page.tsx because its a bit simpler/more straightforward
Changes proposed in this pull request:
docs-dataanddocs-themetypes,slugify, andMdxPluginDatafromdocs-dataMdxPluginDataindocs-dataas the replacement forMarkdownPluginDatafrom@documentalist/client, using our ownNavTreeNode[]andDocPagetypesnav treetype usage indocs-themecomponents from@documentalist/client'stodocs-dataisPageNodetype guard indocumentalistUtils.tsto replace the one from@documentalist/clientDOCS_CODE_BLOCKclass constant inmarkdownRenderer.mjsto remove thedocs-themeimport fromdocs-data