Code Monkey home page Code Monkey logo

Comments (13)

flybayer avatar flybayer commented on May 18, 2024 5

Ok sounds like it shouldn't even be part of the blitz app. So not as an auto generated page, but as a standalone site.

And seems like maybe there's two main use cases:

  1. blitz docs -> Opens docs in browser with hot reloading
  2. blitz docs export ~/some/path/myDocs -> Exports a full static site that can you can do anything with.

from blitz.

Skn0tt avatar Skn0tt commented on May 18, 2024 4

Related discussion: #1907

from blitz.

flybayer avatar flybayer commented on May 18, 2024 3

Thanks @mbrookson, generating API documentation is a great idea! Someone can definitely work on that at anytime.

I also think generating clients is a good idea, but let's keep this issue focused on the docs part.

from blitz.

merelinguist avatar merelinguist commented on May 18, 2024 1

Love this idea! Might hop on it. @mbrookson Are you looking for a page to be generated, so that people can go to something like localhost:3000/api, or something more like a Markdown file?

from blitz.

sakulstra avatar sakulstra commented on May 18, 2024 1

just stepped over this issue. This idea is super cool!

Having a recipe for generating a dokz page as part of the application would be a dream come true, but perhaps for the beginning we could try to generate an openapi yaml/json and offload the integration to the enduser.

from blitz.

mbrookson avatar mbrookson commented on May 18, 2024

@merelinguist A generated page would be ideal and probably more flexible as more functionality could be added in the future I guess? Markdown would be useful still, but doesn't have quite as much potential for further features later on.

from blitz.

mbrookson avatar mbrookson commented on May 18, 2024

@merelinguist Maybe the web page could be driven via a markdown file though? Best of both worlds, plus you could also then choose to do other things with the markdown if you wanted, like generate a client.

from blitz.

flybayer avatar flybayer commented on May 18, 2024

The other question is how to distribute it. Does it only show during development? In production behind authentication? As a standalone static docs site?

from blitz.

merelinguist avatar merelinguist commented on May 18, 2024

@ryardley Any idea how simple it would be to inject a page like this?

from blitz.

merelinguist avatar merelinguist commented on May 18, 2024

I’d be pretty reticent to have it in production, especially if it’s supposed to be more of a handy dev tool than “here’s a guide to our complete private api”.

from blitz.

mbrookson avatar mbrookson commented on May 18, 2024

Yeah that's an interesting point. Perhaps could be an option? You might want to expose docs for a public API in some instances.

Getting a bit more complex here and just throwing out ideas, but perhaps it could even be per endpoint? Each function could be marked as to whether it should be exposed in public docs. For an initial implementation I'd probably err on the side of caution and keep it private and only available during development.

Also in regards to how it's distributed, standalone would probably be better. Doesn't seem ideal to have to run the application just to be able to view the docs when you're actually only focused on the development of a separate mobile application. On the other hand. Perhaps the docs could be generated using a separate CLI command, run standalone, and be able to be put into a git hook so they can be generated on commit.

from blitz.

bitec-projects avatar bitec-projects commented on May 18, 2024

Thanks @mbrookson, generating API documentation is a great idea! Someone can definitely work on that at anytime.

I also think generating clients is a good idea, but let's keep this issue focused on the docs part.

Hello! You can see deployd.com this framework that I have been used is fantastic! I developed a full stack based on riot.js, deployd, semantic ui and others... My stack is very simular with blitz.js! I'm studying blitz.js and I'm in love with it :)

from blitz.

Gnosnay avatar Gnosnay commented on May 18, 2024

Hi team any progress for this feature?

from blitz.

Related Issues (20)

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.