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

Improve mdx test rule #73

Merged
merged 1 commit into from
Nov 29, 2019
Merged

Conversation

NathanReb
Copy link
Contributor

First of all I'm glad to see a real life user of mdx!

I took the liberty to open a PR to slightly improve the mdx invocation in your dune file as it won't survive the next mdx release!

It was using the --direction option which is unnecessary given that option is used for ocaml blocks synchronized with external files and there weren't any such blocks in the README.md.
I ran into this when trying to release mdx.1.5.0 in which we removed the infer-timestamp direction as it wasn't working properly. I updated the constraints on the mdx dependency so that routes.0.5.2 can still properly be installed and tested through opam. You can see the release PR over there if you want to know more: ocaml/opam-repository#15415

We did that in a minor release because we believed it was unused outside of RealWorldOCaml but it turns out it was here! Sorry for the inconvenience!

I also added a dependency on the routes package so that dune runtest works from scratch and don't require a previous dune build so hopefully you'll enjoy that small improvement.

We're currently working on a future 2.0.0 release of mdx with proper integration to dune so that this kind of quirks don't show up again and you won't have to care too much about such CLI options.

Let me know what you think!

@anuragsoni anuragsoni merged commit 238bff0 into anuragsoni:master Nov 29, 2019
@anuragsoni
Copy link
Owner

Thank you! I’ve been really happy with mdx. It’s very useful to help stay on top of documentation. I’m looking forward to better dune integration.

anuragsoni added a commit to anuragsoni/opam-repository that referenced this pull request Dec 18, 2019
CHANGES:

* Improve mdx test tules (anuragsoni/routes#73, @NathanReb)
* Use github actions instead of travis ci (anuragsoni/routes#70, anuragsoni/routes#72)
* Get human readable route pattern from a route (anuragsoni/routes#64, anuragsoni/routes#74)
* Allow writing custom path match patterns (anuragsoni/routes#76)
anuragsoni added a commit to anuragsoni/opam-repository that referenced this pull request Dec 19, 2019
CHANGES:

* Improve mdx test tules (anuragsoni/routes#73, @NathanReb)
* Use github actions instead of travis ci (anuragsoni/routes#70, anuragsoni/routes#72)
* Get human readable route pattern from a route (anuragsoni/routes#64, anuragsoni/routes#74)
* Allow writing custom path match patterns (anuragsoni/routes#76)
anuragsoni added a commit to anuragsoni/opam-repository that referenced this pull request Dec 20, 2019
CHANGES:

* Improve mdx test tules (anuragsoni/routes#73, @NathanReb)
* Use github actions instead of travis ci (anuragsoni/routes#70, anuragsoni/routes#72)
* Get human readable route pattern from a route (anuragsoni/routes#64, anuragsoni/routes#74)
* Allow writing custom path match patterns (anuragsoni/routes#76)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants