-
Notifications
You must be signed in to change notification settings - Fork 95
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
Use JSDoc comments for documentation #387
base: master
Are you sure you want to change the base?
Conversation
* Added export for PDFViewCtrl in index.d.ts * Fixed config.options.d.ts exports in index.d.ts * Added exports for the remainig interfaces within document_view.d.ts * Fixed error in document_view.d.ts
* Rect to include width and height optional properties * Annotation to include pageRect and screenRect optional properties
@@ -1,6 +1,6 @@ | |||
# PDFTron React Native Wrapper | |||
|
|||
- [API](API.md) | |||
- [API](https://raw.githack.com/PDFTron/pdftron-react-native/ts-typedocs-master/docs/index.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Will change to pdftron.com once the docs are up).
docs/scripts/prettify/prettify.js
Outdated
@@ -0,0 +1,496 @@ | |||
var q = null; | |||
window.PR_SHOULD_USE_CONTINUATION = !0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain how is prettify used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JSDoc website states that:
By default, JSDoc's default template generates pretty-printed versions of your source files. It also links to these pretty-printed files in the documentation.
I believe that prettify.js
is the file responsible for this. It looks that it has been replaced in the official JSDoc repo by the Prettier library, but active development of Docstrap probably ended before this change was made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i feel very uneasy to include source code of other third party software here, same with the icons, we should discuss them
@@ -0,0 +1,288 @@ | |||
<?xml version="1.0" standalone="no"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the usage for all fonts/image resources copy-right permitted? where are these from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DocStrap is based off of Bootstrap. Within Bootstrap's components are the set of Glyphicons that you are seeing in the fonts
folder. Boostrap states here that these glyphs are free to use.
- Also restore ts-typedocs scripts and dev dependencies
This update changes the way APIs will be documented in this repo. Instead of being written in
API.md
, docs will now be written in the source files using JSDoc comments (see API documentation wiki for guide to creating/editing/publishing docs).Viewing docs This update allows HTML files to be generated for these docs. To see the doc files in your browser, click any
API
hyperlink in the README or click here.Generating docs locally To generate local doc files, run
npm start
in the outer repo'sexample
folder, then open these files in your browser to see any changes you made.Docs for users GitHub Actions will automatically generate docs in
master
.Doc website template Currently we are using a forked version of DocStrap edited to work for this library.