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

Use JSDoc comments for documentation #387

Draft
wants to merge 265 commits into
base: master
Choose a base branch
from
Draft

Use JSDoc comments for documentation #387

wants to merge 265 commits into from

Conversation

akwanpdf
Copy link
Contributor

@akwanpdf akwanpdf commented Sep 23, 2021

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's example 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.

dcupidon and others added 30 commits July 23, 2021 17:23
* 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
@dcupidon dcupidon changed the base branch from master to dev September 24, 2021 00:09
@akwanpdf akwanpdf changed the base branch from dev to master November 22, 2021 22:22
@@ -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)
Copy link
Contributor Author

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).

DocHome.md Outdated Show resolved Hide resolved
@@ -0,0 +1,496 @@
var q = null;
window.PR_SHOULD_USE_CONTINUATION = !0;
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

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"?>
Copy link
Contributor

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?

Copy link
Contributor

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.

@sgong-pdftron sgong-pdftron marked this pull request as draft March 1, 2023 16:25
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.

7 participants