Coder Social home page Coder Social logo

denosaurs / ddoc Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 1.0 6.79 MB

๐Ÿ“‘ Offline deno documentation in a desktop app, generated locally

Home Page: https://deno.land/x/ddoc

License: MIT License

TypeScript 100.00%
deno documentation cli devtool

ddoc's People

Contributors

lucacasonato avatar notfilippo avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

lucacasonato

ddoc's Issues

bug: worker dependencies are being downloaded on runtime

This has to happen but with some clever techniques I think it can be avoided.

~/dev/deno/ddoc master 7s
base ฮป ddoc https://deno.land/x/oak/mod.ts
[16:41:54] [*] spawning server webworker...
Download https://deno.land/x/[email protected]/server.ts
Download https://deno.land/x/[email protected]/doc.ts
Download https://deno.land/x/[email protected]/website.js
Download https://deno.land/x/[email protected]/third_party/data.ts
Download https://deno.land/x/[email protected]/third_party/docs.ts

suggestion: make deno install possible

It would be really awesome if you could just deno install this project. To make that work there are a few things that could use improvement IMO:

  • download .deno_plugins relative to Deno.mainModule, import.meta.url or a cache folder like $DENO_DIR/.deno_plugins. Otherwise a .deno_plugins folder gets created everywhere you run the program.
  • embed the contents of the doc_website files in the source code, so that doc_website repo does not need to be cloned and built. This can probably be done the same way that wasm files are embedded into source code. As compressed base64 strings.

install fails with deno v1.5.1

running deno install -A -f --unstable https://deno.land/x/[email protected]/ddoc.ts
will download all the dependencies, but then fail when compiling the script

Check https://deno.land/x/[email protected]/ddoc.ts
error: TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { File, Policy, Origin, RELOAD_POLICY };
         ~~~~
    at https://a6uo4rpmxalr6ichpa32twdpmhgj6in4k6guyv242gu4u6ofwuva.arweave.net/B6juRey4Fx8gR3g3qdhvYcyfIbxXjUxXXNGpynnFtSo/cache.ts:6:10

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { File, Policy, Origin, RELOAD_POLICY };
               ~~~~~~
    at https://a6uo4rpmxalr6ichpa32twdpmhgj6in4k6guyv242gu4u6ofwuva.arweave.net/B6juRey4Fx8gR3g3qdhvYcyfIbxXjUxXXNGpynnFtSo/cache.ts:6:16

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { LogLevels, LevelName } from "./levels.ts";
                    ~~~~~~~~~
    at https://deno.land/[email protected]/log/mod.ts:13:21

Found 3 errors.

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.