Replies: 5 comments 6 replies
-
@zeel01 Hi! Currently we use esbuild to output a ESM module for Markdoc. It is possible to run everything on the frontend without using React. The most common use cases with Markdoc on the frontend usually involve using it with some sort of build system. Could you share more about your use case and how you are using Browserify? It seems possible to set up a build system with Browserify so that you can keep with the most up to date version of Markdoc. Are you expecting to be able to do something like:
? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to do this? Ideally I want to just run some client side script that can load |
Beta Was this translation helpful? Give feedback.
-
Hey, you can use Markdoc + Next.js static build to generate a set of HTML pages from a Markdoc site, which you can then serve with a web server / output with PHP / whatever. (I'm personally using Go, and do not want to host any server-side JS in production either.) Basically, what I did was use Tailwind UI's documentation template (which is already set up with Next.js and Markdoc), and then adding Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
if you don't mind having a build step you can always use something like Astro the Markdoc workflow is smooth and i like it the build takes less than a minute so i don't mind the only problem is you have to use .mdoc extension i just add a renamer script to rename all md files to that extension |
Beta Was this translation helpful? Give feedback.
-
Watching the presentation here: There is mention of a hosted markdoc editor using Monaco (22:50) - has there been any new work on that? |
Beta Was this translation helpful? Give feedback.
-
I'm evaluating using Markdoc to improve an existing documentation site that currently uses plain HTML files for docs. The site uses a PHP backend, so I can't run Markdoc there. I'm not all that familiar with React, but it looks like it can run everything on the frontend? Regardless, I can't rebuild this site in React even if I wanted to.
What I did do, was use Browserify to bundle the Node package for use in the the browser and... it works! Though it makes the code a little messy to debug, it's not too bad and I haven't encountered any issues with this approach.
Question is, is there a better/simpler way to do this? Obviously this way, if I update Markdoc in the future I'll need to re-browserify it.
So either:
Beta Was this translation helpful? Give feedback.
All reactions