After browsing through numerous documentation websites, I have noticed that many of them share the same layout and features. This has led me to question whether there is a common library used by all these documentation sites.
How do they achieve this uniformity?
./docs
-> files.md
-> ./docs/files.html
As you can see, there are several files with the extension
.md
(sometimes also.mdx
)and they all seem to offer the same functionalities (as seen below).
I am curious if these sites utilize the same JavaScript library for generating their content?
https://i.sstatic.net/Rh36a.png
Despite my efforts to search through their repositories, none explicitly mention the name of a library being used.
Is there an npm package or CDN link to such a JavaScript library?
That can parse .md files within .docs, create a navigational list on the left based on folder structure, include buttons for next/previous pages, and a GitHub edit button, etc...
If it's not feasible, I am willing to build it from scratch, but manually writing HTML for each doc is time-consuming. I prefer a faster markdown-based solution that can help in creating consistent docs and auto-updating the navigation menu.
Additionally, handling routing for previous and next elements manually can be tedious.
Is there an automated tool or web API that can handle these tasks, especially parsing .md files if starting from scratch?
I am inclined towards using npm packages if available.
Example:
Previous and next documentation links.
- React Native
https://i.sstatic.net/UeyhJ.png
- Deno
https://i.sstatic.net/KkvNj.png
- Lusift
https://i.sstatic.net/k8sy0.png
They also feature a "EDIT THIS ON GITHUB" button.
- Mozilla Docs MDN
https://i.sstatic.net/AEDCl.png
The color scheme changes when scrolling through sections.
- Sketch API
https://i.sstatic.net/faACv.png
Although I have yet to uncover the name of the underlying library.
Other notable functionalities include...
- Multi-page support and much more...
(I attempted GitHub searches without success)
What would be a suitable documentation generator for a programming library I am developing?
My Google search: https://www.google.com/search?q=javascript+library+documentation
However, results mainly revolve around APIs like
GET/POST
and Swagger.I am specifically looking for a library catering to
functions
, demonstrating outcomes based on different inputs. Perhaps even supporting code snippet previews akin to StackOverflow. Simple file-driven solutions without complex server-side requirements.
Perhaps my search query needs refinement.