You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having JSON files generated from monorepo packages, when I run api-documenter, the markdown output does not contain a lot of links between these monorepo packages.
Repro steps
git clone [email protected]:influxdata/influxdb-client-js.git
cd influxdb-client-js
yarn
yarn workspaces run apidoc:extract
yarn api-documenter markdown -i docs -o docs/dist
The generated markdown files are now missing a lot of links between monorepo packages, For example, open docs/dist/influxdb-client-apis.authorizationsapi._constructor_.md, it contains:
Parameter
Type
Description
influxDB
InfluxDB
an instance that knows how to communicate with InfluxDB server
Expected result:
The InfluxDB type should be a link.
Actual result:
The InfluxDB type is not a link. The associated api-extractor input file docs/influxdb-client-apis.api.json contains a reference
@influxdata/influxdb-client!~InfluxDB:class is not present in docs/influxdb-client.api.json but @influxdata/influxdb-client!InfluxDB:class is!
Details
There are 1376 occurrences of the same pattern in the influxdb-client-js project. I created a script that repairs these references influxdata/influxdb-client-js#567 , changing !~ to ! in a reference is a workaround ... all links are then rendered properly in the markdown files.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question
Answer
@microsoft/api-extractor version?
7.29.3
@microsoft/api-documenter version?
7.19.5
Operating system?
Linux
Documentation target?
Markdown
Would you consider contributing a PR?
I does not seem simple to me, YES after an advice
TypeScript compiler version?
4.7 and 4.8
Node.js version (node -v)?
14, 16 - does not matter
The text was updated successfully, but these errors were encountered:
sranka
changed the title
[api-documenter] Link between packages are not rendered
[api-documenter] Links between packages are not rendered
Sep 13, 2022
Summary
Having JSON files generated from monorepo packages, when I run
api-documenter
, the markdown output does not contain a lot of links between these monorepo packages.Repro steps
The generated markdown files are now missing a lot of links between monorepo packages, For example, open
docs/dist/influxdb-client-apis.authorizationsapi._constructor_.md
, it contains:Expected result:
The
InfluxDB
type should be a link.Actual result:
The
InfluxDB
type is not a link. The associated api-extractor input filedocs/influxdb-client-apis.api.json
contains a reference@influxdata/influxdb-client!~InfluxDB:class
is not present indocs/influxdb-client.api.json
but@influxdata/influxdb-client!InfluxDB:class
is!Details
There are 1376 occurrences of the same pattern in the
influxdb-client-js
project. I created a script that repairs these references influxdata/influxdb-client-js#567 , changing!~
to!
in a reference is a workaround ... all links are then rendered properly in the markdown files.Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/api-extractor
version?@microsoft/api-documenter
version?node -v
)?The text was updated successfully, but these errors were encountered: