Comments (13)
At the risk of adding a 'Me Too' reply here - I just noticed this - it seems conspicuous by it's absence. NPM, Nuget, Docker, etc all have this snippet, it's kinda expected now. There is a little bit of a risk that a user will currently reach an Elm package page and end up thinking "That's nice.... now what?"
from package.elm-lang.org.
Is anyone working on this? I could try to prepare a PR.
IMO there doesn't even have to be a copy-to-clipboard button, all I would care about is having the full package name in a valid format (author + name, without spaces around the slash, etc)
from package.elm-lang.org.
So I started implementing this, as I also found it lacking.
It currently looks like this:
There is a small hack there because I don't think this is currently possible in elm-html.
I used:
attribute "onClick" "this.select()"
Is this hack acceptable?
Would be cool if I could do this in elm-html with something like
selected model.selected
instead.
If you're ok with the design and if this hack is acceptable, I'm gonna send a pull request.
Let me know.
from package.elm-lang.org.
I think it's elm package install elm-lang/core
as of 0.15. Where would you expect this information to be? That is, where is it missing?
from package.elm-lang.org.
Ah, sorry, should've been more descriptive. It would be useful on each package's page. For instance, on elm-lang/core
's page, there would be a code block for easy copy & paste to a user's shell to install the package, like Rubygems has (see the sidebar).
It had taken me a bit to realize what the exact command I was supposed to use to install packages is.
from package.elm-lang.org.
That's a good idea. Like most version control hosting websites have a clone box. Sounds like a simple addition to the page. Maybe something you can try to add yourself and submit as a PR? It's a nice small thing to start contributing with :)
from package.elm-lang.org.
IMO, NPM's solution is simple and effective:
E.g just like @Zinggi 's solution though no need for auto copy functionality, plus a simple link to show beginners how to use elm package
from package.elm-lang.org.
@megapctr it doesn't seem like anyone is working on this, no. And the header is very hard to copy, since trying to select the words just grabs the link instead, and it's very easy to select the version.
from package.elm-lang.org.
@drathier there's a MR fixing the header, but for some reason it seems it's being ignored? #209
from package.elm-lang.org.
@megapctr ah. I would still like a copy/pastable command in a textbox, like git clone here on github. It's not that simple to figure out you can copy/paste the text in the header, and it does take a few extra seconds each time.
from package.elm-lang.org.
Just looked over a colleagues shoulder last friday, he just recently started to explore elm. And exactly this was what he was looking for, so I had to say, you can copy the header.
He then pasted into iTerm2 and it got separated over three lines :/
from package.elm-lang.org.
Each package now has an "About" page that includes the install command for last elm version.
from package.elm-lang.org.
Thank you to @rlefevre for thinking of having an About
page to show this information in a nice way!
from package.elm-lang.org.
Related Issues (20)
- Switch to self-hosting fonts HOT 1
- The website doesn't explain how to import a package HOT 3
- Site does not show contents on Firefox HOT 2
- Cannot publish a 0.18 package HOT 3
- Can't link to top of module documentation page HOT 1
- Unpublish special-elektronik/elm-autocomplete due to organisation name change HOT 2
- Code highlighting broken when starting with module
- add dark mode HOT 3
- Can't build the backend server with Cabal
- Add documentation on how to build the backend server
- Add a page that lists packages published by a single author HOT 1
- Namespace organization
- Add a maintainer page, listing all packages maintained/owned by someone HOT 2
- package.elm-lang.org uses expired DST Root X3 certificate HOT 5
- Deleted Package HAN-ASD-DT/priority-queue
- Promote jfmengels/elm-review in package search results for "elm-review"
- Request to support query parameter for search query
- how to build?
- Limit for docs.json too low HOT 1
- READMEs only supported as Markdown
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 package.elm-lang.org.