Skip to content
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

Doctests #67

Open
julian-zucker opened this issue Jun 1, 2019 · 4 comments
Open

Doctests #67

julian-zucker opened this issue Jun 1, 2019 · 4 comments
Labels
documentation Documentation

Comments

@julian-zucker
Copy link
Member

Is your documentation request related to a problem? Please describe.
Code examples in our documentation can fall behind the actual code. If an API changes, the example may no longer run. This is confusing for users.

Describe the documentation you'd like
Not really "documentation I'd like", but I want a tool that will run all scala code examples in our docs, like doctest for python. This tool should be bundled in overcommit and travis.

Additional context
In PR #64, we had to update documentation, and could easily have forgotten. Automating the checking of documentation is good, and will make us less afraid to put code examples in documentation!

@julian-zucker julian-zucker added the documentation Documentation label Jun 1, 2019
@ubaldop
Copy link
Contributor

ubaldop commented Jun 2, 2019

Did you consider tut?

@julian-zucker
Copy link
Member Author

Tut looks like what we want! Run markdown tests, and generating MD output. Thanks for the suggestion!

@ubaldop
Copy link
Contributor

ubaldop commented Jun 3, 2019

You're welcome 😉
However, afaik, tut only exists as sbt plugin. Since you're using Maven it'd require few refinements in order to be introduced here.
I mean, for example, it'd be necessary to wrap tut in a Maven plugin.

@drassaby drassaby mentioned this issue Jun 3, 2019
@drassaby
Copy link
Member

Looks like tut is now deprecated. They recommend using mdoc, which has both an sbt plugin and command-line version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation
Projects
None yet
Development

No branches or pull requests

3 participants