question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tracking doc: migrating to TSDoc

See original GitHub issue

We 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-docs API 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 @internal so 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.md to 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.md and 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.md are ported.
  • Update docs/api.md to point users to new-docs/puppeteer.puppeteer.md.
  • Update docs/api.md to 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:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

7reactions
lumbridge01commented, Mar 10, 2021

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:

chore: gitignore new-docs (#6511) - They are generating a lot of noise in PRs. This commit removes them from git, but updates CI to generate them - to ensure there are no errors when generating the new documentation.

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:

  • How the current Actions Workflow is generating the docs
  • An important doc linter that has to be run before commiting
  • and listed the current warnings that are to be fixed in a todo list

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.

Note: As this Issue is going to be getting extra attention in the following days, I suggest that we make the collaborative effort to notify changes that are already covered on this Issue so we do not end up working on exactly the same features at the same time!

Happy coding!

4reactions
Hanafficommented, Mar 9, 2021

@jackfranklin https://github.com/puppeteer/puppeteer/tree/main/new-docs This page isnt found! Can you post the link of TSDoc output?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found