-
Notifications
You must be signed in to change notification settings - Fork 76
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
Update typedoc-plugin-markdown to 4.0.0 #4870
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some notes
@@ -26,9 +26,7 @@ Google Tag Manager, IAB TCF, etc. | |||
See [Fides](interfaces/Fides.md) for how to use the `window.Fides` JavaScript API, [FidesOptions](interfaces/FidesOptions.md) for supported options to customize it's behavior, and [FidesEvent](interfaces/FidesEvent.md) for how to use `window.addEventListener(...)` to subscribe to | |||
custom Fides events for real-time updates. | |||
|
|||
## Table of contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Table of contents are removed: https://typedoc-plugin-markdown.org/docs/migration-guide#-breaking-changes
I'm OK with that.
@@ -32,24 +32,11 @@ existence of Fides *or* subscribe to the global `FidesInitialized` event (see | |||
</body> | |||
``` | |||
|
|||
## Table of contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This TOC was helpful, but I think it's OK. When we package these up and host on our docs site, the sidebar generates a new TOC from the headings anyways: https://ethyca.com/docs/dev-docs/js/reference/interfaces/Fides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inline TOC was annoying me for that reason. I think it's a good move. I like the sidebar much better.
|
||
### getModalLinkLabel | ||
### getModalLinkLabel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤌 excellent little hint showing ()
for a function, thank you maintainers
@@ -226,19 +209,15 @@ function myCustomShowModalFunction() { | |||
} | |||
``` | |||
|
|||
#### Type declaration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't helpful, now it's gone. Bonus!
@@ -70,8 +70,9 @@ | |||
"rollup-plugin-postcss": "^4.0.2", | |||
"rollup-plugin-visualizer": "^5.12.0", | |||
"ts-jest": "^29.1.0", | |||
"typedoc": "^0.25.13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have included this previously! It was getting pulled in as a peer dependency.
Passing run #7626 ↗︎
Details:
Review all test suite changes for PR #4870 ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a fan of these updates. Better markup, better accessibility, fewer redundancies. What's not to love?
@@ -32,24 +32,11 @@ existence of Fides *or* subscribe to the global `FidesInitialized` event (see | |||
</body> | |||
``` | |||
|
|||
## Table of contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inline TOC was annoying me for that reason. I think it's a good move. I like the sidebar much better.
@@ -65,7 +52,7 @@ The specific keys provided in the `Fides.consent` property are determined | |||
based on your Fides configuration, and are provided to the browser based on | |||
the user's location, property ID, etc. | |||
|
|||
**`Example`** | |||
#### Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better for a11y!
Description Of Changes
This updates
typedoc-plugin-markdown
to the latest release and follows the v4 migration guide to tweak a couple of the formatting features 👍This improves the format of the generated
.md
files in a couple ways which I like, including removing the inline table of contents that was OK but more confusing than helpful in our docs.NOTE: I originally did this hoping to find a way to add some additional pages to document features that aren't strictly part of the types (e.g. guides) but looks like we'll need to wait until this plugin supports the
typedoc
beta: TypeStrong/typedoc#2567Code Changes
typedoc-plugin-markdown
dependencypackage.json
'stypedocOptions
configuration to be 🤌 just right 🤌Steps to Confirm
turbo build
in theclients/fides-js
project and check thedocs/
outputPre-Merge Checklist
CHANGELOG.md