Giter VIP home page Giter VIP logo

tsdocs's People

Contributors

benjaminismyname avatar dependabot[bot] avatar itp2023 avatar pastelsky avatar reala10n avatar rvbsm avatar takagimeow avatar yash-singh1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tsdocs's Issues

Feature Request: Enable Sharing of NPM Package Links with Custom Visibility Settings via URL Parameters

I would like to suggest a new feature for TSDocs.dev that enhances the sharing capabilities of NPM package documentation.

Currently, when sharing a link to a specific NPM package's documentation, the visibility settings for members are always set to default.

It would be incredibly useful to have the ability to embed custom visibility settings directly into the URL.

Often, when an NPM library extends another, it inherits methods and properties that may not be relevant to the immediate documentation needs. The ability to share links to these packages with URL parameters that hide or deemphasize inherited methods and properties would be extremely valuable.

This would allow NPM package authors to share their documentation with more focus on their package's unique features, while reducing emphasis on inherited aspects

It could be implemented via URL parameters that dictate the visibility settings, providing a seamless and efficient way to share documentation with specific configurations.

Search Issue

when I search for "React" on tsdocs, It only shows the following error:
image

Better loading page while a package is first building?

Upon publishing a new version of an npm package, it seems like initial versions of the package take a while to build before they're cached. For example, when https://tsdocs.dev/docs/ts-api-utils/1.2.0 was released just now, on visiting https://tsdocs.dev/docs/ts-api-utils for the first minute or it would stall and maybe eventually give a Cloudflare 524 timeout. Now both pages are working fine.

Separate from speeding up the package builds (#44): could the site immediately give a 'loading' page while the package version is building?

Don't show headers for empty sections

Per example at: https://tsdocs.dev/docs/@liveryvideo/player/7.9.0-beta.4/classes/LiveryPlayer.html deselect the Inherited member visibility and then scroll down to see empty sections for Methods - attributes, Methods - controllers, etc. I think these are derived from usage of @group in the tsdoc of the LitElement from the lit package that is extended here. These sections do have members while Inherited members are enabled, but after that is disabled they are empty.

Recommendations for priming cache on package release?

👋 I found this project recently and think it's awesome. Really nice way to solve the issue of TypeDoc-ing packages. Yay! Thanks for making it!

I separately filed #44 and #45 around improving the cold start experience for new packages. But even if those two get improved, it's likely that larger packages will inevitably take a while to build on each new version. Could tsdocs provide a recommendation around how packages should handle "priming" the cache on new package release?

For example, could a copy-and-paste script (or published GitHub Action) be added to the docs that pings https://tsdocs.dev/docs/<package-name> as a part of a release flow?

TypeDocBuildError - ENOSPC: no space left on device

I tried to pull up the information for nano-cache and received the following error:

    ENOSPC: no space left on device, copyfile '/var/www/tsdocs/tsdocs/node_modules/typedoc/static/main.js' -> '/var/www/tsdocs/tsdocs/docs/1.0/nano-cache/1.1.2/assets/main.js'
at Object.copyFile in node:internal/fs/sync:49
at Object.copyFileSync in node:fs:2949
at copySync in typedoc/dist/lib/utils/fs.js:175
at  in typedoc/dist/lib/utils/fs.js:171
at Array.forEach in :null
at copySync in typedoc/dist/lib/utils/fs.js:171
at _classThis.onRenderEnd in typedoc/dist/lib/output/plugins/AssetsPlugin.js:112
at triggerEvents in typedoc/dist/lib/utils/events.js:191
at triggerApi in typedoc/dist/lib/utils/events.js:167
at eventsApi in typedoc/dist/lib/utils/events.js:60

⚙️ Help wanted!

Here are a few pieces that we currently need help with

  1. Getting a good pre-commit setup, and CI steps
  2. Making our styling system saner (currently its a mix of hardcoded values, and CSS vars. Also, the typedoc styles live separate to the next JS App)
  3. Dark mode support for docs (#1)
  4. Doing a coverage of the top ~200 most used frontend / backend npm packages by type and seeing where tsdocs.dev fails
  5. A Command + K search widget for quick search

Make it extendable

I think it would be very cool, if I have a package and I want to have a really quick API docs in my application

so it would be cool if there's smth like that

what do you think? @pastelsky

Site crashing for some packages

Trying to access @hilma/forms results in the site crashing.

The first few times I tried to access it, it resulted in an UNEXPECTED_DOCS_POLL_FAILURE:

image

Refreshing the page led to this:

image

I tried again a few minutes later and got a different failure, with this stack trace:

image

Accessing other libraries works fine (I looked at the docs for react and eslint-plugin-nitpick which is my own package and didn't encounter any error).

I don't know if this issue is the proper way to report this, but help would be appreciated...

Error when loading documentation for @excalidraw/excalidraw

              Missing symbol when converting import type node at: import("react").FC void) | undefined;
    onDock?: ((docked: boolean) => void) | undefined;
    docked?: boolean | undefined;
    className?: string | undefined;
    __fallback?: boolean | undefined;
}, "name">, "children">, "onDock"> & {
    /** pass `false` to disable docking */
    onDock?: SidebarProps["onDock"] | false;
} & {
    __fallback?: boolean | undefined;
}>
at Object.convert in typedoc/dist/lib/converter/types.js:232
at convertType in typedoc/dist/lib/converter/types.js:82
at  in typedoc/dist/lib/converter/types.js:262
at Array.map in :null
at Object.convert in typedoc/dist/lib/converter/types.js:262
at convertType in typedoc/dist/lib/converter/types.js:82
at _classThis.convertType in typedoc/dist/lib/converter/converter.js:211
at Object.convertVariable in typedoc/dist/lib/converter/symbols.js:487
at convertSymbol in typedoc/dist/lib/converter/symbols.js:126
at Object.convertAlias in typedoc/dist/lib/converter/symbols.js:451

Support OpenSearch description format

The OpenSearch description format can be used to describe the web interface of a search engine. This allows a website to describe a search engine for itself, so that a browser or other client application can use that search engine. OpenSearch is supported by (at least) Firefox, Edge, Safari, and Chrome. (See Reference Material for links to other browsers' documentation.)
https://developer.mozilla.org/en-US/docs/Web/OpenSearch

e.g. PR: kachkaev/njt#45
e.g. https://njt.vercel.app/opensearch.xml

PS: might look into implementing this in the next weeks

Relative links in readme can be broken

From HN:

Consider showing files other than the README. Relative links to things like CONTRIBUTING.md currently break. Alternatively interpret all relative links as pointing to github.com or npmjs.com. It'd be great to have a way to link from the README into API docs to guide readers. The community doesn't have a great convention for this unfortunately.

Types for subpath exports are missing

First, thank you very much for this website! <3 This looks very promising and I think it has a lot of potential.

I noticed that there isn't a way to access subpath exports. For example, solid-js has a few subpath exports like render or Portal from solid-js/web. It seems that there isn't a way to look at the types of these exports.

Link to solid-js on tsdocs.dev: https://tsdocs.dev/docs/solid-js/1.8.7

Slow build/load time on first release of a package

Upon publishing a new version of an npm package, it seems like initial versions of the package take a while to build before they're cached. For example, when https://tsdocs.dev/docs/ts-api-utils/1.2.0 was released just now, on visiting https://tsdocs.dev/docs/ts-api-utils for the first minute or it would stall and maybe eventually give a Cloudflare 524 timeout. Now both pages are working fine.

Separate from giving a better response while the build is happening (#45): are there opportunities to speed it up?

(btw, I do see #28 (comment) - just filing an issue to ask about & track this 🙂)

Q: Use as standalone tool to extract info?

Is there a way to use tsdocs from the command line to extract info from source code and output it as (for example) JSON?

I'm looking for tools that would allow me to bring support for TypeScript in mkdocs/mkdocstrings.

Add package documentation preview

Currently it seems like this is just a service. I do see mention of running it locally, but then you need to install redis as well. And also I imagine it will also only work with published NPM packages.

I want a way to preview what the generated documentation will look like while I'm working on my code, before publishing it.

E.g. something like a tsdocs-preview NPM package that you can add as a dev dependency to your project to be able to run a server that shows you the docs generated based on the files in your local repo checkout.

Or perhaps it would be even better if there was like a tsdocs-cli NPM package that enables you to locally generate the related HTML etc or perhaps even alternatively MD. That way that could alternatively also be included within NPM packages. But also it would enable previewing your tsdoc based documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.