Replies: 17 comments
-
What are the reasons? What is the documentation that doesn't look modern? this? https://maplibre.org/maplibre-gl-js-docs/api/markers/ (It looks pretty good to me, but I don't know much) |
Beta Was this translation helpful? Give feedback.
-
I would also consider merging the repos and having the docs as part of this repo. |
Beta Was this translation helpful? Give feedback.
-
@rotu, The problem with the current docs is not so much the visuals, but the underlying stack. The main problems are:
There are plenty of popular off-the-shelf docs compilers out there that we don't have to waste resources maintaining. |
Beta Was this translation helpful? Give feedback.
-
I think the build system does more than just build docs - it also does some preprocessing of example code and validates that the examples work. I think a good first step would be moving the docs into this repo as a workspace. And then retooling the build system. |
Beta Was this translation helpful? Give feedback.
-
I've been looking for an opportunity to spend some time taking care of Leafdoc - the thing that builds the LeafletJS API docs. Perhaps it's worth considering? |
Beta Was this translation helpful? Give feedback.
-
The focus of this issue it to use exiting tools for documentation that are widely used. |
Beta Was this translation helpful? Give feedback.
-
Back in... 2015? the LeafletJS API docs were written by hand, and the existing tools back then weren't a good fit for several reasons. So I wrote Leafdoc and we moved the documentation into docstrings. Yes, it's a niche tool, but it's been working reliably for years.
Ideally I'd like to write Leafdoc docstrings once, and from those docstrings generate: (1) readable HTML API docs (2) graphviz UML class diagrams and (3) typescript definitions. (1) and (2) are doable right now (e.g. API, UML), but (3) would need a fair a bit of work. |
Beta Was this translation helpful? Give feedback.
-
batfish is doing a very good job, and I'm generally happy with the results (I also think it's a lot more elaborate than the leaflet docs along with the style spec, the examples etc), the problem is maintenance mainly and the fact that we would like to use more standard tool, much like we did with typescript, jest, playwright, etc. |
Beta Was this translation helpful? Give feedback.
-
Ping @vshchutc |
Beta Was this translation helpful? Give feedback.
-
@HarelM , what is your opinion on the proposed solution with tsdoc -> typedoc -> markdown -> any of the off-the-shelf docs generators? |
Beta Was this translation helpful? Give feedback.
-
Looks good to me, both project have a huge weekly downloads count in npm. |
Beta Was this translation helpful? Give feedback.
-
I've been exploring TypeDoc to assess how much work this is, and my conclusion is that it's a very big undertaking to resolve all the lint issues that arise from migrating JSDoc to TSDoc. Half of them can be resolved automatically, but still 5k+ issues remain that require manual intervention. |
Beta Was this translation helpful? Give feedback.
-
From my point of view, the classes documentation is important, but the interesting part is the examples and style spec docs. |
Beta Was this translation helpful? Give feedback.
-
If we moved the style spec to a separate repo/docs site, we might be able to extend the lifetime of the batfish page a bit - it's the biggest deal-breaker as I see it that we currently can't update style spec docs |
Beta Was this translation helpful? Give feedback.
-
If the style spec docs are the main reason for batfish and the rest can be done in this repo I'm all for it. |
Beta Was this translation helpful? Give feedback.
-
I'm converting this into a discussion, as I would like to allocate some bounties around this. i.e. I'll be opening smaller issue to split the work and assign bounties to those. |
Beta Was this translation helpful? Give feedback.
-
I think the info here is spot on in terms of technology, I'll continue the discussion in the following issue: #2150 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our current setup for documentation is problematic for many reasons and we should look into something more standardized.
A such setup for the majority of the codebase could be to use:
TSDoc for writing the docs inline to write the docs inline - this would need syntax adjustments from JSDoc many places.
TypeDoc for exporting said docs
Then we'd need a way to display the docs nicely (the built-in typedoc site doesn't look modern), and by using the typedoc-plugin-markdown, we can use i.e.:
Beta Was this translation helpful? Give feedback.
All reactions