Comments (13)
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:
blitz docs
-> Opens docs in browser with hot reloadingblitz docs export ~/some/path/myDocs
-> Exports a full static site that can you can do anything with.
from blitz.
Related discussion: #1907
from blitz.
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.
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.
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.
@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.
@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.
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.
@ryardley Any idea how simple it would be to inject a page like this?
from blitz.
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.
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.
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.
Hi team any progress for this feature?
from blitz.
Related Issues (20)
- Blitz generate should provide functioning forms for a better scaffolding experience. HOT 2
- Support Bun runtime HOT 6
- ajv dependency was not installed with blitz new HOT 5
- support prisma extensions HOT 5
- Module not found: Can't resolve 'ajv/dist/compile/codegen' HOT 1
- BlitzServerMiddleware types are incorrect HOT 2
- Error Building Blitz in Cloudflare HOT 3
- can't locally silence [blitz-rpc] debug logs HOT 1
- deploy failed on vercel HOT 15
- Cannot find module 'next/dist/client/resolve-href' HOT 1
- BLITZ_PUBLIC_ prefix does not expose env to client HOT 2
- BlitzRoutes: Support app router HOT 4
- Windows Compatibility Issue: process.kill("SIGABRT") not supported HOT 5
- useAuthenticatedBlitzContext fails on vercel HOT 7
- getBlitzContext unusable in api HOT 2
- getBlitzContext() can't be use in edge funcion HOT 2
- nextjs (app router) fails on vercel HOT 1
- v2.0.7 `pnpm blitz dev --turbo` error with Invalid next.config.js options HOT 2
- enhancePrisma has disappeared since v2.0.7
- No matching version found for @blitzjs/[email protected] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blitz.