Skip to content

fix: support @example tags#15

Merged
fhinkel merged 12 commits into
mainfrom
fhinkel-example-tags
Oct 26, 2021
Merged

fix: support @example tags#15
fhinkel merged 12 commits into
mainfrom
fhinkel-example-tags

Conversation

@fhinkel

@fhinkel fhinkel commented Oct 21, 2021

Copy link
Copy Markdown
Contributor

Use our fork of api-documenter. It supports @example tags.

Use the newest version of api-extractor instead of a fixed pre-release version. This only works with our fork where we do not convert from UDP Yaml to SDP.

Install api-documenter deps manually because we're using a forked subdirectory

Drive-by fix: Supress warnings

Internally: b/174675699 and b/179483748

@fhinkel fhinkel requested a review from a team October 21, 2021 16:21
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 21, 2021

@bcoe bcoe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm excited to see this work in action.

Comment thread generate-devsite.sh
npx @microsoft/api-extractor run --local

# install api-documenter deps manually because we're using a forked subdirectory
cd node_modules/@microsoft/api-documenter/

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

With OwlBot we've been building docker containers so that it's less likely to have a dependency of a dependency break underneath us.

This might be worth considering if these deps are complex.

Comment thread package.json
"dependencies": {
"@microsoft/api-documenter": "7.11.0",
"@microsoft/api-extractor": "7.8.2-pr1796.0"
"@microsoft/api-documenter": "https://gitpkg.now.sh/googleapis/rushstack/apps/api-documenter",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Interesting I hadn't seen this Vercel service before, had usually just used the Git URL, I'm guessing this is faster and doesn't require git in the tool chain?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It doesn't work for sub directories. This is a workaround.

@fhinkel fhinkel merged commit 98ec467 into main Oct 26, 2021
@fhinkel fhinkel deleted the fhinkel-example-tags branch October 26, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants