Docusaurus – Build optimized websites quickly, focus on your content
docusaurus.io
docusaurus.io
https://news.ycombinator.com/item?id=34389421
I helped him in recovering from a Google SEO penalty, and he documented his journey on his blog:
https://johnnyreilly.com/how-we-fixed-my-seo
This might be helpful for those using Docusaurus, as some default settings, like pagination and tag pages, can generate thousands of non-helpful pages. These issues can be easily fixed with noindex tags and a sitemap/structure cleanup.
Overall, I think Docusaurus is great. It's clean, flexible, and the community is very responsive, so it's constantly improving at a fast pace
These days I'd probably start off using astro for a static site. They've got a docs starter, too.
Even if the code example works today, it might not in the future and tests prevent people getting stuck on outdated docs like we often see.
Instead of embedding code in markdown, I actually generate the markdown from code. Which with Kotlin is easy because you can write your own DSLs. And I get to refactor my code and documentation at the same time. It has some other nifty features like capturing output that you can show in the Markdown and a few other things.
If you want to see it in action, check out the documentation for my kt-search project. There are probably a lot of other libraries out there that do similar things. But it's a thing that most projects don't seem to rely on for their documentation. And breaking code samples are a major hurdle for writing documentation to begin with.
I find that addressing that gets you in a mode where you are documenting things by default. And good documentation also reveals design flaws because you are kind of forced to eat your own dog food by writing working code that shows how you would use a particular feature. I'm basically constantly trying to make life easier for both myself and my users.
Other notable mentions are
- mkdocs-material, if you prefer python to js
- astro starlight, not quite as mature and a bit heavier but looks nicer out the box and includes built-in search
+1 on Starlight, though, it is my go-to and I absolutely love it.
Somehow, someway, it was very resource-intensive for what it was.
We now run a homemade alternative that basically does the same job, but keeps scaling to five digit document counts (so far).
The SEO features, integrated Algolia search, and built-in components save a lot of time and help you focus on writing markdown.
The plugin system and React-based customization is powerful, but for most projects you should be fine with the provided components and editing the custom css file.
For a look at how a dev tool company uses Docusaurus to implement its docs, check out this article on Amplication's approach:
https://medium.com/abundant-dev/amplication-documentation-ca...
This might help those wanting to use Docusaurus with a docs-as-code workflow, especially when using GitHub or other git platforms for reviews.
Bonus points if you prefer to not deal with the JS ecosystem and prefer Python.
The main downside is that while reST is well-suited for extending the syntax actually writing Sphinx extensions is, subjectively, significantly more arcane than writing React components/MDX plugins.
A recent discussion on this topic, part of the "I prefer rST to Markdown" submission: https://news.ycombinator.com/item?id=41120772
My personal opinion when we chose Docusaurus was that it struck the right balance in having just enough batteries included.
It was quick and easy to launch something without having to fiddle with too much config, while allowing some scripting, customisability, and templating through MDX.
It's probably also a good thing that Facebook dogfoods Docusaurus in some places, while keeping it MIT licensed so the community can fork it if Facebook ever decides to stop maintaining it.
https://pagespeed.web.dev/analysis/https-eightshift-com/c5vu...
Would love feedbacks from anyone who have been with both Starlight and Docusaurus; thanks!
e.g. are there anything great about Starlight that I should stick to it? SEO-wise, etc.
I guess I’m just tempted because Docusaurus looks really nice
what I want is a simple CMS basically, not as complex as drupal etc, but at least support login to view when I need it.
It works very well for this purpose. I didn't bother to change the default UI though. And I haven't added any search mechanism (I keep the content organized, thus I don't need it much). It has a blog feature, but I don't use it.
It's hosted in Netlify, deploying automatically on each push.
Here's the source code if you are curious: https://github.com/AlbertVilaCalvo/Wiki