-
Notifications
You must be signed in to change notification settings - Fork 308
Conversation
"lol" —@kaguillera |
8117770
to
96d89b9
Compare
Rebased and squashed, previous head was f77da78. |
f77da78
to
ffdbaa7
Compare
I want to move the payment widget to above the content area, full width. The sidebar would then only be for second-level nav where that exists. |
|
Alright, it's not going to be performant enough to make a heavy JSON API request and shell out to render markdown on every request for an |
npm gives us a big download at http://registry.npmjs.org/-/all (200 MB). I'm going to explore what's in there and think about how we might use that.
|
That doesn't give us readme, but it gives us everything else we want: name, description, author, maintainers. If we shove that in a table, we can use time.modified to update, including refetching and reprocessing the readme. |
👍 because so far http://npmsearch.com/ does not seem to give you the flexibility to search on specific fields. |
Alright, circled the wagons IRL and decided to try out a local |
We will certainly need to verify that asap. |
@kaguillera Well, I suppose npm trusts it, and ... we trust npm, right? |
I guess On Oct 27, 2016 5:53 PM, "Chad Whitacre" [email protected] wrote:
|
Rebased (was db4539b). |
db4539b
to
5e1ac88
Compare
I'm taking a backup so I can get processed readmes to work with. |
Might have to give the NFL a pull request to clean up their readme under npm (it looks fine on GitHub). ;-) |
The raw README has: <img src="/logo/[email protected]" height="150"/> |
It's coming through unchanged in |
That's (more or less) the same as what's on GitHub itself. There was an option for this in marky-markdown, iirc ... |
Maybe that's slightly inaccurate? |
Looks like this is what we want to trigger. |
We need to pass an |
D'oh! I think that means we need to refetch or somehow reload all packages to get repository URLs out of the package.json. |
Any other plugin options we should be aware of? |
CDN would require version if we wanted it. |
Here is where we might find a solution to #4151 (comment). |
I'm not entirely sure how the CDN plugin relates to the GitHub plugin, but so far on my read the latter is what we want. The two do similar things, and we don't have all versions so I'm not sure storing a version is what we want. Let's go with a repo URL and the GitHub plugin since that should fix the presenting case at any rate. |
Should we throw the whole package JSON into a JSON field, or add a field for repo URL, or ... ? |
Seems like we should figure out the CDN plugin as well, to avoid having to do this over again down the line. |
When does that manifest? What is the order of plugins? |
Gosh, this is all gonna change as GitHub migrates to CommonMark. |
This is such a giant security hole. :-/ And it doesn't scale. Let's say we trust npm ... are we going to trust all N package managers on Libraries.io? I think we're going to need to wrap this in a service that is served on a different domain and iframed in. Or we can say heck with readmes. Do people really need the readme duplicated on Gratipay? They just need to know it's the right project. A link over to npm can solve that, right? We don't have any significant content on |
I'm not finding stats in the API. |
Closing. There's no sense adding inert and contentless pages. |
Part of #4148.
Todo
Test
From #4135 (comment):
http://localhost:8537/on/npm/async/
http://localhost:8537/on/npm/iframe-resizer/
http://localhost:8537/on/npm/mongoose/
http://localhost:8537/on/npm/nodemon/
http://localhost:8537/on/npm/react/
http://localhost:8537/on/npm/react-helmet/
http://localhost:8537/on/npm/react-modal/
http://localhost:8537/on/npm/react-redux/
http://localhost:8537/on/npm/react-router/
http://localhost:8537/on/npm/react-router-redux/
http://localhost:8537/on/npm/redux/
http://localhost:8537/on/npm/redux-thunk/
http://localhost:8537/on/npm/webpack/
Whee! 💃