Skip to content

Commit

Permalink
Lock file maintenance (mui#34161)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michał Dudak <michal@dudak.me>
  • Loading branch information
2 people authored and Daniel Rabe committed Nov 29, 2022
1 parent 1d2c4c1 commit ccc5833
Show file tree
Hide file tree
Showing 2 changed files with 792 additions and 764 deletions.
3 changes: 2 additions & 1 deletion docs/scripts/ApiBuilders/ComponentApiBuilder.ts
Expand Up @@ -8,6 +8,7 @@ import kebabCase from 'lodash/kebabCase';
import * as prettier from 'prettier';
import remark from 'remark';
import remarkVisit from 'unist-util-visit';
import { Link } from 'mdast';
import { defaultHandlers, parse as docgenParse, ReactDocgenApi } from 'react-docgen';
import muiDefaultPropsHandler from 'docs/src/modules/utils/defaultPropsHandler';
import { LANGUAGES } from 'docs/src/modules/constants';
Expand Down Expand Up @@ -97,7 +98,7 @@ async function computeApiDescription(api: ReactApi, options: { host: string }):
const file = await remark()
.use(function docsLinksAttacher() {
return function transformer(tree) {
remarkVisit(tree, 'link', (linkNode) => {
remarkVisit(tree, 'link', (linkNode: Link) => {
if ((linkNode.url as string).startsWith('/')) {
linkNode.url = `${host}${linkNode.url}`;
}
Expand Down

0 comments on commit ccc5833

Please sign in to comment.