News for hackers. Stuff that matters.
Re:MdBook – Create book from Markdown files. Like Gitbook bu... by klodolph on Thursday June 29, 2023 @10:41PM (#36529880)
I’ve tried MdBook, Jekyll, and MkDocs. MdBook is slick for basic projects, but I felt it was too minimalistic for me. When I dug into the source for the MdBook sites that I liked, I saw that they had extended MdBook with some custom Rust code.

My recommendations are:

- MkDocs: Good default choice, reasonably flexible.

- Jekyll: For people who want a little more flexibility—things like landing pages, blogs, etc.

- Antora: For people who want the best docs, and are willing to put in the most effort. It will manage, for you, the process of generating documentation sites that collect documentation from multiple projects and possibly multiple versions of each project. Asciidoc is full of features you’ll find useful.

Hugo looks like it has a lot of flexibility like Jekyll, but it seems to take more effort to get everything working the way you want, and it also seems like there’s just too much variation in how the different themes work.

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by dcchambers on Thursday June 29, 2023 @11:20PM (#36530139)
I am a long time Jekyll user and I still think it's a great tool for blogs, but by far the best SSG for documentation websites I have found is Docusaurus. (https://docusaurus.io/)

I resisted trying it for the longest time because I didn't want a JavaScript based tool, but I am glad I caved. It's so easy to get started, crazy fast, and the sites are absolutely beautiful out of the box yet easy to customize. The mdx support is awesome too.

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by klodolph on Thursday June 29, 2023 @11:30PM (#36530204)
Somehow I missed Docusaurus when I surveyed documentation generators—it looks very good!

I can understand the desire to want something not written in JavaScript, and I certainly have my own language prejudices, but when I surveyed static site generators, language choice was all over the map. Like, I was willing to wrangle Ruby installations and gems to get Jekyll working, something I have nearly no experience with.

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by KRAKRISMOTT on Friday June 30, 2023 @02:19AM (#36531192)
Re:MdBook – Create book from Markdown files. Like Gitbook bu... by slorber on Friday June 30, 2023 @02:52PM (#36540273)
Docusaurus maintainer here, happy to read your feedback ;)
Re:MdBook – Create book from Markdown files. Like Gitbook bu... by bccdee on Thursday June 29, 2023 @11:23PM (#36530149)
Wow, what is up with the material mkdocs theme (https://squidfunk.github.io/mkdocs-material/)? That's an extremely spiffy landing page, especially given that it's for a theme designed for a totally separate piece of software.
Re:MdBook – Create book from Markdown files. Like Gitbook bu... by jonasdoesthings on Friday June 30, 2023 @01:36AM (#36530906)
mkdocs-materials is underselling itself as only a theme imo. It bundles a lot of value that mkdocs is missing out of the box as plugins and tweaks, like a good client-side search, page tags, or easy support for a lot of markdown extensions (e.g. code syntax highlighting, admonitions/callouts).

From my personal experience mkdocs+mkdocs-material is like GNU+Linux.

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by d4rkp4ttern on Friday June 30, 2023 @07:45AM (#36533209)
At least for Python documentation, this plus mkdocstrings is great.
Re:MdBook – Create book from Markdown files. Like Gitbook bu... by d4rkp4ttern on Friday June 30, 2023 @07:47AM (#36533220)
Check out the Pydantic docs pages - they use Mkdocs-material

https://docs.pydantic.dev/latest/

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by Bad_CRC on Friday June 30, 2023 @02:34AM (#36531289)
I'm a huge user of mkdocs and totally love it.

I've trying also bookstack and even it's more "wiki" like it's great too for less tech-savvy people (I usually edit my mkdocs projects in vscode and keet them in git repos and bookstack is all web based).

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by ssddanbrown on Friday June 30, 2023 @07:00AM (#36532840)
> I've trying also bookstack and even it's more "wiki" like it's great too for less tech-savvy people

Thanks! My main goal when building BookStack was to build a platform that could be used by all departments, of varying technical confidence, of the company that I was working at since existing open source documentation/wiki systems were positioned for a more technical audience.

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by james-bcn on Friday June 30, 2023 @04:05AM (#36531906)
For science and statistics, I think Quarto is excellent: https://quarto.org
Re:MdBook – Create book from Markdown files. Like Gitbook bu... by bheadmaster on Friday June 30, 2023 @05:36AM (#36532409)
I also recommend MkDocs.

It was the most painless experience I've had with quickly setting up docs from a bunch of .md files, and the plugins give it enough flexibility for most of the usual stuff I need.

Re:MdBook – Create book from Markdown files. Like Gitbook bu... by dsmmcken on Friday June 30, 2023 @09:52AM (#36534918)
Thanks, I hadn't heard of Antora, but the behaviours of assembling docs from multiple repos and using branches for versioning is exactly what I want. Too bad it's not using MDX though, as all our existing docs are markdown + interactive react components.