GithubHelp home page GithubHelp logo

support nextjs about graphql-markdown HOT 4 OPEN

eerison avatar eerison commented on June 9, 2024
support nextjs

from graphql-markdown.

Comments (4)

edno avatar edno commented on June 9, 2024 1

Hi @eerison

That's the right place for this question.
I have plan to make the solution more agnostic, ie not dependent on Docusaurus.
The work is in progress, and I expect to have something by early summer.

from graphql-markdown.

LunaticMuch avatar LunaticMuch commented on June 9, 2024 1

I am working on this too within my company. We have a prototype ready and working which will go out in some weeks (nothing yet finalized).
We reused @graphql-markdown/utils for parsing schema and then we generate routes and return props. We're dealing with caching now to speed up some of the elaboration.

from graphql-markdown.

edno avatar edno commented on June 9, 2024 1

I have plan to make the solution more agnostic, ie not dependent on Docusaurus.
The work is in progress, and I expect to have something by early summer

Work is still in progress. Most of the ground work has been done, ie clean up the code and migrating to TS, adding documentation in the code. This is currently available in 1.21.0-next.0 and following (pre-releases only).

I am exploring the next step that is moving away from a messy architecture (the latest clean up improve the code, but not the architecture), to a cleaner one based on NestJS. I don't know yet if NestJS will be the final solution, but I will for sure move the code into a "mature" NodeJS framework offering a better code structure, and DI.
A top of it, I'll add more API documentation, so one can quickly reuse the libraries for custom export format.
👉 This will be the 2.0.

Once the framework migration is done with feature parity to current 1.x, the next steps will be moving away from the current homemade schema parser to a proper AST parser (exploration has already be done, it is just a matter of implementation).
👉 This will be the 2.0 or 2.1.

And, finally a template engine (tbd) to give more control on the output, and possibly generate other format than markdown.
👉 This will be the 2.1 or 2.2.

from graphql-markdown.

nathanchapman avatar nathanchapman commented on June 9, 2024

Super excited for this! This would work really well with Nextra's Docs Theme

from graphql-markdown.

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.