-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to mdoc #2927
Comments
I can give a go to that one if that's ok |
My concern is that mdoc has a curricular dependency on cats through Paige. It has more dependencies which delay adding Scala 2.13 support |
My understanding is that we wouldn't bringing in more dependencies - but switch the way
Wouldn't that be ok this way? |
Sbt-microsite already has a dependency on mdoc, which is preventing it from supporting Scala 2.13, which is preventing us from generating docs for Scala 2.13 and setting default Scala version to 2.13. I hope that sbt-microsite makes this dependency on mdoc optional. Right now the circular dependency is only by an unused dependency but if we migrate to mdoc it will be a closer circle. |
Fair enough! Thanks for clarifying 👍 |
I will tackle this issue. It'll hopefully unblock #3368. |
I've stopped working on it because there are too many issues blocking a straightforward migration. |
BTW @travisbrown also gave it a try while working on #3218 I will try to look into this on the next weekend |
@larsrh Sorry I missed your comment last week, but yeah, I took an initial stab at this in December when I updated to sbt-microsites 1.x, and then tried again last month, when I spent a couple of hours trying to add A couple of issues I ran into have been reported and resolved (e.g. scalameta/mdoc#306), but there are still lots of weird things going on. I kept crashing the compiler with stuff like @jhnsmth It would be a huge service to everyone if you could do this, but it's not going to be fun. |
(For what it's worth maybe the worst part is the extremely slow turnaround time during development—you change something and then wait 35 seconds to get the next error message. If I were going to try this again I'd probably try to set something up where I could run mdoc on individual pages, possibly outside of the sbt build altogether, just so I could get faster feedback. I didn't really look into that, though.) |
I'll try to give this a go (if anything, add my username to the tombstone of people that tried), because I've done the same thing for my ongoing migration of squants' docs |
@travisbrown regarding faster feedback, I've realised mdoc allows argument override when you shellout to Mdoc process:
Which means you can run mdoc in watch mode (hot compiler, much faster recompilation), and also run on individual files and folders. This helps a lot |
This should be ready: #3595 |
No description provided.
The text was updated successfully, but these errors were encountered: