by colinclerk on 5/11/22, 3:07 PM with 146 comments
by cdevroe on 5/11/22, 4:14 PM
Very cool of them to open source this. Looks great.
by aquilaFiera on 5/11/22, 6:22 PM
Shameless plug: we're looking for someone to come in and a product manager over the Stripe Docs. Imagine working on docs at the company known for docs. Very fun problems.
https://stripe.com/jobs/listing/product-manager-docs/3928998
by etchalon on 5/11/22, 3:24 PM
We used it to build the Streamlit docs. I assumed this is how everyone was doing documentation: https://github.com/streamlit/docs
by _miau_hoch2 on 5/11/22, 5:46 PM
I was lately evaluating several tools like VuePress, Docusaurus and AsciiDoc.
I ended up using Mkdocs Material (https://squidfunk.github.io/mkdocs-material/). If you haven't already, have a look. I think it is pretty impressive. From tags, tabs to the fantastic built-in search ...
by ksajadi on 5/11/22, 3:35 PM
by andrerpena on 5/11/22, 7:20 PM
Also, I needed a React renderer for React-Native and I was also about to write my own.
By the looks of it, I will be able to just use Markdoc.
Thank you Stripe!
by oellegaard on 5/11/22, 4:17 PM
What separates this from any of the existing markdown static site generators?
by polutropos on 5/11/22, 4:53 PM
Or is this only for https://stripe.com/docs, https://stripe.com/docs/payments, etc?
by alberth on 5/11/22, 4:49 PM
Because this seems to be run locally, vs something hosted like a CMS.
You locally have a NodeJS app running, you draft a new page, it renders it for you in HTML/CSS, and then you upload the rendered output to your web server?
(Sorry for the naive question)
by todd3834 on 5/12/22, 6:13 AM
Shameless plug: If anyone is interested, I published my esbuild plugin so you don’t have to transform on the server if you want to just import a markdown file.
by bww on 5/11/22, 4:55 PM
It's got a ways to go before it generates output that looks as good as Stripe's documentation, but it makes it dead simple to create API documentation that's guaranteed to be in sync with your service, because it was generated by your tests when they ran.
by dragonsh on 5/11/22, 4:16 PM
In order to generate a print quality documentation from this markdoc format will be a huge task. RestructuredText already has strong support for Latex output.
Now people have plain markdown, gitbook and now markdoc with its own set of non standard extensions. Hopefully rst format can catch up among JavaScript developers.
So far haven’t seen a complete documentation tool like Python Sphinx [1].
[0] https://docutils.sourceforge.io/docs/ref/rst/restructuredtex...
by openbrian on 5/11/22, 6:16 PM
by blutack on 5/11/22, 4:06 PM
I have an asciidoc based chain that mostly works for generating both PDF manuals and standalone html docs but it's a bit of a faff to install and set up especially for non-technical users.
My dream is something like pandoc but with one or more diagram libraries integrated, native PDF output and all wrapped up in a single binary, maybe with a nice web UI/editor built into the binary. Oh, and if it could manage multiple documents and versioning that would be great too. Looking for a Fossil SCM kind of feel?
Closest thing I've used would probably be LyX but that's almost too capable!
I do appreciate this is a really hard thing to do and I'm wondering what toolchains other people are using?
by zellyn on 5/11/22, 4:58 PM
The items inside the diagram seem curiously absent from the source of the page: https://raw.githubusercontent.com/markdoc/docs/main/pages/do...
Instead, when the `diagram` tag is defined, it maps the "type" parameter to a particular diagram: https://github.com/markdoc/docs/blob/main/components/Diagram...
Any reason it is done that way, rather than specifying the diagram in the source of the document using mermaid, pikchr, etc? Even inlining the SVG seems like it would be better for keeping everything together.
by majkinetor on 5/11/22, 6:25 PM
As far as I can see, you can get similar workflow with combination of existing tools. I created this docker image that combines them for very easy consumption and created thousands of pages of technical, functional and user documentation with it:
by epaulson on 5/11/22, 8:32 PM
I think MSFT just uses stock DocFX for the Azure docs site, but I'm not sure.
by d4rkp4ttern on 5/13/22, 11:06 AM
by ABraidotti on 5/11/22, 4:57 PM
by andrerpena on 5/11/22, 8:32 PM
by alphang on 5/11/22, 7:32 PM
It also looks like there are functions, but they're considerably shaved down compared to JavaScript/etc.
I wonder if this will get more adoption in the TW community and by various static site generators.
by seanwilson on 5/11/22, 6:58 PM
by fellowniusmonk on 5/11/22, 6:09 PM
by schemescape on 5/11/22, 8:16 PM
The landing page uses root-relative links and the FAQ/examples don't seem to cover links in depth.
I like relative links because my editor (VS Code) will auto-complete relative links... but many Markdown-based tools don't handle the Markdown-source-to-output-HTML translation.
by IshKebab on 5/11/22, 5:17 PM
by mikelabatt on 5/12/22, 4:01 AM
by gambler on 5/11/22, 7:15 PM
by cercatrova on 5/11/22, 7:37 PM
by meshaneian on 5/11/22, 10:49 PM
by lordleft on 5/11/22, 7:50 PM
by creakingstairs on 5/12/22, 1:44 AM
by annagrigoryan2 on 5/12/22, 5:26 PM
I guess it's my lucky day.
by nik736 on 5/11/22, 3:24 PM
by AtNightWeCode on 5/11/22, 6:09 PM
On a side-note, mixing serifs and sans in the way the site does looks like something only a mass murderer would do.
by inson on 5/11/22, 10:31 PM
by data_ders on 5/11/22, 3:59 PM
by fedeb95 on 5/11/22, 7:49 PM
by dragonwriter on 5/11/22, 3:59 PM
by dallasgutauckis on 5/11/22, 3:28 PM