Coder Social home page Coder Social logo

docland's People

Contributors

aslilac avatar ayame113 avatar bartlomieju avatar cjihrig avatar crowlkats avatar denobot avatar dsherret avatar kitsonk avatar kt3k avatar kwhinnery avatar littledivy avatar lucacasonato avatar mrkldshv avatar nberlette avatar piscisaureus avatar roj1512 avatar ry avatar satyarohith avatar thorwebdev avatar ultirequiem 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docland's Issues

Render decorators

Decorators are in the doc nodes, they are just not rendered as part of the documentation

Improve the UX of the sidebar

The sidebar on the previous design was super helpful. While reading the docs of any specific item, I would usually quickly scroll the sidebar for something else if I didn't find what I was looking for. Nice and clean new design btw.

Namespaced docs dont find other namespaced symbols for linking

Not sure if this is the write repo to file this issue...

In the new updated docs at: https://doc.deno.land/deno/stable/~/Deno.run
It shows that it returns a Process<T> but Process is no longer a hyperlink to the docs page for that type, so I have to manually go back and find the Process type manually.

In the old stable docs, if you looked at Deno.run, you could click on Process to be taken to the docs for that type.

For newbies like myself, being able to click those custom types and see what they are was very useful.

Link to globally scoped docs

The old doc site provided linkages to globally scoped symbols, the Deno namespace linked to the documentation website otherwise it linked to MDN.

Crash on https://doc.deno.land/https://esm.sh/preact/~/createElement

[error] Error: Not every node of kind "function".

    at assertAll (file:///mnt/starship/Projects/github.com/denoland/docland/components/doc.tsx:37:11)
    at CodeBlock (file:///mnt/starship/Projects/github.com/denoland/docland/components/doc.tsx:129:5)
    at renderFunctionalComponent (https://deno.land/x/[email protected]/core.ts:164:18)
    at _render (https://deno.land/x/[email protected]/core.ts:138:70)
    at https://deno.land/x/[email protected]/core.ts:48:17
    at Array.forEach (<anonymous>)
    at appendChildren (https://deno.land/x/[email protected]/core.ts:43:12)
    at h (https://deno.land/x/[email protected]/core.ts:255:3)
    at DocPage (file:///mnt/starship/Projects/github.com/denoland/docland/components/doc.tsx:273:25)
    at renderFunctionalComponent (https://deno.land/x/[email protected]/core.ts:164:18)

Support import maps

Ideally there would be a way to specify, perhaps in a URL parameter, an import map that goes along with the documented module.

There could be UI to tweak the import map, which would update the parameter in the URL and regenerate the docs.

For example, the docs for this module breaks due to the bare react import specifier:

https://doc.deno.land/https://unpkg.com/[email protected]/waterfallRender.mjs

That module works great in Deno projects with an import map that assigns a Preact ESM URL to the react specifier.

I would absolutely ๐Ÿ˜ love ๐Ÿ˜ to be able to just link to Deno docs in the readme for all my universal Node.js/Deno packages that rely on import maps, instead of maintaining complicated API docs markdown by hand. Hardcoded docs can have mistakes that get permanently published for that package version; whereas having docs generated on demand allows them to just get better and better over time as Deno docs improves, for all versions of the package.

Seeing argument types for Deno APIs requires to go through 3 separate pages.

I want to see parameter types for Deno.chmod API.

To do that I go as follows:
https://doc-land.deno.dev/ -> click "Deno CLI APIs (stable) ->
https://doc-land.deno.dev/deno/stable -> select "Deno" namespace ->
https://doc-land.deno.dev/deno/stable/~/Deno -> select "chmod" function

This requires to go through 3 separate pages to see it.

I think I'd be nice if there was any indication about argument types on the page for "Deno" namespace.

Broken link fragments on doc.deno.land/deno/stable

These seem very minor, but just for kicks I ran a link checker I wrote on https://doc.deno.land/deno/stable (mostly to test it out) and it found two links pointing to nonexistent fragments:

1. https://doc.deno.land/deno/stable/~/Deno -> #Namespaces

This seems straight forward. If there's only a single namespace, the heading's id is "Namespace" instead of "Namespaces" but the link in the sidebar is always to "#Namespaces".

2. https://doc.deno.land/deno/stable/~/Deno.chmodSync -> #Deno.chmod

I don't understand the context well enough to assess the problem. deno.d.ts uses Markdown in the JSDoc comment. I'm not sure if this is allowed or not (if it is, then I guess the doc generator should handle this somehow; if not, then the JSDoc comment shouldn't use Markdown).

Link checking during CI?

Related: @bartlomieju raised the idea on Discord of integrating link checking into docland's CI process. I'm wary of introducing something like this because it could fail on upstream problems (potentially the second issue here), leading to unwanted downstream breaks. But it's possible I'm too cautious (and honestly, I've never used GitHub Actions, so I'm not sure how rock-solid each step needs to be).

Regardless, feel free to leave feedback on that idea here. I didn't want to open a separate issue for that until I was confident that the issues above are in fact real bugs in the docs/generator (as opposed to bugs in my admittedly-not-thoroughly-tested tool :).

Markdown hyperlinks in comments have no style

I put a markdown hyperlink syntax into a doc comment, and doc.deno.land parsed and linked the text, but there is no styling to indicate that the link is present, even on hover. I'd want to see e.g. underline at all times, to point out that a link is available in the block of text.

As a simple example, there's a link after "For more information" below:

Screenshot 2021-12-21 17 54 39

Permalink repro: https://doc.deno.land/https://aws-api-7b9dvns8xscg.deno.dev/v0.2/services/sns.ts?actions=GetEndpointAttributes&docs=full/~/SNS#getEndpointAttributes

Code is something like:

  /**
   * Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS.
   * For more information, see [Using Amazon SNS Mobile Push Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html).
   */
  async getEndpointAttributes(...) {...}

This example isn't so bad, but EC2.RunInstances has 8 hyperlinks across a full page of text and they are not easy to find.

Source file URL doesn't wrap: goes out of border

When using a long URL as a source for the code, the URL (when rendering embed), will go out of the border, making it no further readable. In my opinion it would be good to add URL wrap.

This is the issue
image

Multiple namespaces in a `.d.ts` file fails to document

I created my module colormath.js but I wanted it to support in Node.js, Deno and Browser so i decided to use tsup for bundling ts files and here is my code for mod.ts:

// @deno-types="./dist/index.d.ts"
export * from './dist/index.mjs';

Now, I published this module in deno (colormath) but if you check the documentation in

https://doc.deno.land/https://deno.land/x/colormath/mod.ts

Although the documentation has parsed all functions, type aliases, classes but has only one namespace?
The documentation did not parsed all namespaces?

Is there any fault on my side?

Responsive design

Browsing on a mobile device documentation is quite common. We should have a responsive design for the website.

single docs page for multiple modules

I'd like to be able to have a single docs page for all my many modules in my repository. I currently use a _index.ts (I suppose I could name it _mod.ts instead). This works fine but I'm wondering if there might be a different way to do this that doesn't involve create a private/internal module that creates a directory of all my other modules manually.

e.g. could support be added to use some kind of pattern glob or something similar?

automate building/updating of static doc files

/static/ contains generated version of the documentation nodes and /build.ts updates these. When a Deno tag is released, it should be possible to automate the build and update of these files.

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.