-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Purge grimoire #2663
Comments
Seems there's some API as there's an old client for it - https://github.com/dakrone/clojuredocs-client/blob/master/src/cd_client/core.clj Not sure if that works still, but I think it might be a nice idea to create some middleware for dealing with ClojureDocs if we decide to support it. This would also allow us to show examples in docs, etc. |
I don't think there's an API, but there is an archive available at: https://clojuredocs.org/clojuredocs-export.json. I just prompt the user at startup to download that, and then check for its existence when showing the doc. I think the archive is updated daily. |
Thanks @cursive-ide ! I was wondering how you did it. Your implementation is very slick and convenient. |
Added a comment to an existing request for an API to see what kind of permissions are given/needed for this data. Seems its about 3mb so maybe could just throw it in an edn file and distribute with orchard or cider-nrepl? |
@dpsutton I agree. That's what we did for |
See also clojure-emacs/orchard#60 which links to how we've extracted |
/me waves sadly |
@bbatsov I'm testing to use clojuredocs-export.json in vim-iced. In my implementation, I try to receive I can contribute this codes to orchard or cider-nrepl. What do you think about this implementation? |
@liquidz The implementation seems reasonable to me, it's just a bit disappointing that there's no EDN export and now we need a third-party dep to parse the JSON. This means that we have to do this in Anyways, I guess that's good enough for now. Thanks for offering to help out! |
@bbatsov Thanks! |
Great!
Btw, I've been thinking that we might make this happen ourselves as well, because all we need is some trivial web service deployed to Heroku (or whatever) that just pull json export daily and converts it to EDN. Still, I hope @zk would be able to help us with some EDN export straight from the source. |
How about using Netlify?
|
@liquidz Awesome! That's exactly what I had in mind. Now you can add the functionality straight to Orchard and cider-nrepl will feature just a think wrapper around it. |
This handles only the web views, as the data from the middleware needs further processing.
@liquidz I finally started working on this and I noticed that the export can be tweaked a bit to be more convenient - it keeps records of all the edits made by everyone and I think we just need to discard this info and put things like |
This handles only the web views, as the data from the middleware needs further processing.
This handles only the web views, as the data from the middleware needs further processing.
This handles only the web views, as the data from the middleware needs further processing.
This handles only the web views, as the data from the middleware needs further processing.
@bbatsov I'm not sure what structure you are expecting. |
@liquidz Sure! Here, for instance, I'd drop all the author information about how created/edited something:
This type of data is important for ClojureDocs itself, but it's not important when you just want to show some data in an editor. As I said - it's not a big deal for me tweak the data processing in Orchard, but I'm reasonably sure we won't ever need this type of data so it might be better to make the export more compact. Basically something like this will be ideal:
Does this name sense? |
@bbatsov Thanks! |
@bbatsov I deployed the compact version here. |
@liquidz Awesome! That's exactly what I had in mind! I guess we can update orchard/cider-nrepl to use this data instead. |
@bbatsov I started to understand the code in This is the dict output when looking up the symbol
It's missing the key |
I assume that simply this is not part of the ClojureDocs export for some reason, which seems a bit weird, but it won't be hard to tweak slightly what we get from it. |
ClojureDocs export data seems not to have |
Well, I guess we can just consider the lack of |
This assumption is good enough, but I think would be good to tweak the data exporter to include the |
It is easy to tweak exporter :) |
@wandersoncferreira @bbatsov
I guess this is a response from So we should tweak |
Yeah, we should. |
I can work on it Thursday. We are sponsoring the Clojure South event here in Brazil and I'm very busy organizing all the stuff we are going to bring to the event. Hope to see you there @bbatsov |
I think it's a bit easier to type/remember than C-c C-d C-r.
@wandersoncferreira Likewise! @liquidz One small note about the export - it'd be really nice if you pretty-printed the export edns, so they are a bit easier to navigate by humans. Not to mention that Emacs handles very poorly super long lines. :D |
@bbatsov OK! I fixed export EDN file. Non pretty-printed version is left here. |
Great! Thank you! 🙇 |
CIDER removed `cider-grimoire-web` as Grimoire is no longer available, and now uses ClojureDocs: - https://metaredux.com/posts/2019/06/29/farewell-grimoire.html - clojure-emacs/cider#2663
@arrdem has deprecated grimoire and is redirecting to clojure docs. So now
cider-grimoire
yields the following:I spent a few minutes looking at clojuredocs to see if there's an api and I don't believe there is. We'll need to either swap over to clojuredocs or remove this feature.
I'd hope to see it moved towards Clojure docs. @cursive-ide does this and it is very slick. I really enjoy the in-editor docs and I'll miss the fruits of @arrdem 's work. Thanks so much for the great project and happy endeavors going forward.
The text was updated successfully, but these errors were encountered: