Comments (6)
But I'm also feeling it's too much to provide API because the API is not so dynamic.
Great point!
I like this idea, as for most clients it'd be quite convenient to work with that. I don't think we need to a smaller granularity than this (e.g. breakdown for see alsos, notes, etc), as the EDN file for each symbol shouldn't be very big and clients can fetch it process it locally additionally.
from clojuredocs-export-edn.
I also think it's great.
But I'm also feeling it's too much to provide API because the API is not so dynamic. 🤔
For example, how about splitting the EDN file beforehand as follows?
- https://clojuredocs-edn.netlify.com/clojure.core/map.edn
- EDN file for everything about
clojure.core/map
.
- EDN file for everything about
- https://clojuredocs-edn.netlify.com/clojure.core/map/see-alsos..edn
- EDN file containing only
:see-alsos
ofclojure.core/map
- EDN file containing only
👍 Pros.
- We don't need to maintain the server providing the API (Netilify do the work for us)
- Easy to do
👎 Cons.
- We need to have a more detailed (and partially duplicated) file to serve detailed requests
- We can't provide functionalities like keyword searches, of course.
from clojuredocs-export-edn.
OK, I'll fix codes to generate them 😄
from clojuredocs-export-edn.
I have one point to discuss.
There are some vars which has same name like follows.
Some filesystems are case insensible, so it couldn't write EDN files separately.
So I'm considering to add a prefix such _
for vars which starts with upper case.
- https://clojuredocs-edn.netlify.com/clojure.data/_Diff.edn
- https://clojuredocs-edn.netlify.com/clojure.data/diff.edn
@bbatsov Do you have any ideas?
from clojuredocs-export-edn.
I'll have to think about this. Another approach would be to have a different convention for data types, as those are the things with capitalized names. How many such cases are there in total? I assume not many, right?
from clojuredocs-export-edn.
Yeah, there are only 5 cases as follows.
clojure.core.async/pub
clojure.core.async/mult
clojure.core.async/Mix
clojure.data/Diff
clojure.spec.alpha/spec
from clojuredocs-export-edn.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clojuredocs-export-edn.