Comments (3)
Thanks. We have some other work to do on the REPL; I'm hoping someone who knows that code better will pick this up. But if not I'll try to do it myself soon.
from ramda.github.io.
For my suggestion of just hosting them locally, it would just involve a build-time script to fetch these two files and save them somewhere locally:
https://raw.githubusercontent.com/ramda/repl/master/package.json
to fetch the current versionhttps://raw.githubusercontent.com/ramda/repl/${pkg.version}/dist/bundle.css
https://raw.githubusercontent.com/ramda/repl/${pkg.version}/dist/bundle.js
It could be as simple as this:
// Assuming this is in the project root somewhere - depends on node-fetch,
// obviously
"use strict"
const fs = require("fs")
const path = require("path")
const {pipeline} = require("stream")
const fetch = require("node-fetch")
const repl = (h, p) => `https://raw.githubusercontent.com/ramda/repl/${h}/${p}`
const local = p => path.resolve(__dirname, p)
const save = (src, dest) =>
fetch(src).then(res => pipeline(res.body, fs.createWriteStream(dest)))
fetch(repl("master", "package.json"))
.then(res => res.json())
.then(pkg => {
save(repl(pkg.version, "dist/bundle.css"), local("repl.css"))
save(repl(pkg.version, "dist/bundle.js"), local("repl.js"))
})
from ramda.github.io.
just use rawgit.org
from ramda.github.io.
Related Issues (20)
- REPL slow initial load because of wzrd.in slow response HOT 19
- Replace goo.gl url shortener HOT 8
- R.includes "Added in v..." is inaccurate HOT 1
- Function hasPath not exposed to the console in the docs screen HOT 2
- documentation for R.otherwise refers to renamed R.then HOT 2
- REPL: ramda-fantasy and sactuary scripts failing to load HOT 2
- In ramda home page: ramda version does follow release version HOT 4
- "name-filter" will lead to confusion HOT 5
- Bug in documentation for partialObject HOT 8
- In ramda doc, Runkit throw Error with node version 17 and 16 HOT 2
- Two minor reversions HOT 2
- Allow multiple categories to be shown
- Is the documentation "Expand parameters" supposed to be JSDoc? HOT 5
- Ramda Documentation to be SEO Friendly HOT 3
- Idea/Documentation - Create a way how to quickly find a function in Ramda.js HOT 13
- Proposal: Reduce library adoption friction by emphasizing the most used functions somehow. HOT 12
- Broken label
- Can we use vue/react to refactor this website?
- In ramda doc, Runkit throw different Errors with different node version HOT 3
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 ramda.github.io.