Tracking doc: migrating to TSDoc
See original GitHub issueWe have recently had a week long push where many team members contributed documentation to the codebase in the form of TSDoc comments that are used to generate the documentation in the new-docs folder.
This issue is to track the remainder of the work done to migrate our documentation fully to being powered by TSDoc.
- Fix any API Extractor warnings - when running
npm run generate-docsAPI extractor spits quite a few warnings out. We should fix these warnings (or silence any we are OK with) - Ensure all files are documented fully. Check none were missed. For files that we deliberately don’t document (e.g. because they are internal only), we should mark them as such (with an
@internalso we don’t accidentally generate docs for them) - Decide how to document and track events that various classes emit.
- Figure out what to do with pptr.dev. Currently it parses
docs/api.mdto generate the interface for browsing the documentation. We have some options here:- we could provide a custom generator to the API Documenter to generate HTML
- we could generate HTML from the markdown and ship that, and figure out how to layer on the search functionality.
- we ditch pptr.dev and point to GitHub only. Either permanently, or at least in the interim.
- Remove
docs/api.mdand all the tooling (utils/doclint) around it
Update: 08-07-20
Chatted with @mathiasbynens and we have come up with a plan:
- Go through the TSDoc output and tidy up / fix any obvious issues. Make sure all docs from
api.mdare ported. - Update
docs/api.mdto point users tonew-docs/puppeteer.puppeteer.md. - Update
docs/api.mdto contain links to old documentation on GitHub, so users on version <5 can still find the docs they need. - For now, update pptr.dev to redirect users to GitHub to view the new docs.
- Open an issue asking users for feedback on the docs, and iterate as needed (I fully expect to find issues; we’ve moved a lot of documentation around)
- Spike into generating pptr.dev as a static website.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top Results From Across the Web
Exploring TSDoc & TypeDoc | Typescript Documentation
Documentation is hard. Without automation, it's even harder. How can we use Typescript, TSDoc, and TypeDoc to make documentation easy for ...
Read more >@microsoft/tsdoc | Yarn - Package Manager
This library is the reference implementation of a parser for the TSDoc syntax. Using this library is an easy way to ensure that...
Read more >TSDoc
A doc comment standard for TypeScript. ... TSDoc is a proposal to standardize the doc comments used in TypeScript code, so that different...
Read more >Migrate to V5 - Invoice Ninja
The leading free source available online invoicing app for freelancers & businesses. Invoice, accept payments, track expenses, & time-tasks.
Read more >Section 3: Misc. Concerns - React TypeScript Cheatsheets
TypeScript uses TSDoc, a variant of JSDoc for TypeScript. ... For developing with Storybook, read the docs I wrote over here: ... Migrating...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hello everyone!
I have constructed this reply as a small FAQ to try to answer questions that are going to be appearing as you start investigating this issue and to provide help to other members of the community that are looking to start coding!
🤔 Where are the docs?
As @Hanaffi said, the
new-docs/directory is not currently in the repository, as it was removed on Oct 14, 2020.637a1f7409@puppeteer/puppeteer by @jackfranklin:
As the commit description indicates, they where changed to be generated via Travis CI which was then changed to Github Actions.
😲 What now?
If you are looking into investigating this issue and are interested in understanding the structure before running any code, I have restored some of the documents on main@lumbridge01/puppeteer-6118/new-docs.
If you want start tackling this challenge, I recollected:
On lumbridge01/puppeteer-6118!
I initially updated the fork to organize the information and start working on the issue, but then I invested some extra time to explain how to get started, in the interest of helping anyone who is currently investigating this same issue!
🎉 Lets go!
I will be tackling parts of this challenge in the following days and I encourage everyone to join!
Personally, I will be tracking my progress on that repository and everyone is welcomed to contribute there if you are looking to organize similar work on a single fork.
Happy coding!
@jackfranklin https://github.com/puppeteer/puppeteer/tree/main/new-docs This page isnt found! Can you post the link of TSDoc output?