Merge pull request #18251 from timvandermeij/docs-api-inline

Include the generated API documentation directly on the API page
This commit is contained in:
Tim van der Meij 2024-06-15 15:34:27 +02:00 committed by GitHub
commit ebb2db7be1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -6,4 +6,6 @@ slug: api
# API # API
We're currently working on <a href="draft/index.html">better API docs</a>, but the API is well documented in [api.js](https://github.com/mozilla/pdf.js/blob/master/src/display/api.js). The generated API documentation, from the inline comments in [api.js](https://github.com/mozilla/pdf.js/blob/master/src/display/api.js), is available below.
<iframe src="draft/index.html" title="PDF.js API documentation"></iframe>

View File

@ -24,6 +24,12 @@ main {
border-radius: 4px; border-radius: 4px;
padding: 10px; padding: 10px;
} }
iframe {
border: none;
height: calc(0.55 * 100vh);
width: 100%;
}
} }
footer { footer {