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: use correct syntax for inline link tags #1328

Merged
merged 4 commits into from
Feb 13, 2023

Conversation

hegemonic
Copy link
Contributor

Google Cloud uses API Extractor and API Documenter to generate API docs for Node.js client libraries. These tools can't resolve links that are formatted like the following example:

[Widget]{@link google.someapi.v1.Widget}

However, links that use TSDoc notation work just fine:

{@link google.someapi.v1.Widget | Widget}

So I've updated the templates to use the latter syntax.

@dansaadati FYI

Google Cloud uses [API Extractor](https://api-extractor.com/) and [API Documenter](https://api-extractor.com/pages/setup/generating_docs/) to generate API docs for Node.js client libraries. These tools can't resolve links that are formatted like the following example:

```
[Widget]{@link google.someapi.v1.Widget}
```

However, links that use [TSDoc notation](https://api-extractor.com/pages/tsdoc/tag_link/) work just fine:

```
{@link google.someapi.v1.Widget | Widget}
```

So I've updated the templates to use the latter syntax.
@hegemonic hegemonic requested review from a team as code owners February 13, 2023 00:23
Copy link
Contributor

@alexander-fenster alexander-fenster left a comment

Choose a reason for hiding this comment

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

Thank you!

@alexander-fenster alexander-fenster added the automerge Merge the pull request once unit tests and other checks pass. label Feb 13, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 801a54d into googleapis:main Feb 13, 2023
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Feb 13, 2023
gcf-merge-on-green bot pushed a commit that referenced this pull request Feb 13, 2023
🤖 I have created a release *beep* *boop*
---


## [3.0.3](https://togithub.com/googleapis/gapic-generator-typescript/compare/v3.0.2...v3.0.3) (2023-02-13)


### Bug Fixes

* **deps:** Update dependency google-gax to ^3.5.7 ([#1323](https://togithub.com/googleapis/gapic-generator-typescript/issues/1323)) ([178dcf0](https://togithub.com/googleapis/gapic-generator-typescript/commit/178dcf039caa7bedf24e779e9f829effae11de81))
* Do not fail if service yaml does not list any apis ([#1325](https://togithub.com/googleapis/gapic-generator-typescript/issues/1325)) ([28a980a](https://togithub.com/googleapis/gapic-generator-typescript/commit/28a980a42e7d49d3b90b0cf1391e3b6f8348547e))
* Make error message more visible ([#1330](https://togithub.com/googleapis/gapic-generator-typescript/issues/1330)) ([9c53c64](https://togithub.com/googleapis/gapic-generator-typescript/commit/9c53c648871718585a015566e940f4267bc4297b))
* Use correct syntax for inline link tags ([#1328](https://togithub.com/googleapis/gapic-generator-typescript/issues/1328)) ([801a54d](https://togithub.com/googleapis/gapic-generator-typescript/commit/801a54d450c1b770593f54731161093009626d1e))
* Use the official rules_ts ([#1329](https://togithub.com/googleapis/gapic-generator-typescript/issues/1329)) ([4aef706](https://togithub.com/googleapis/gapic-generator-typescript/commit/4aef70624d39b904000aa201100c87dfd5b8ea05))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
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.

2 participants