Giter Site home page Giter Site logo

Add "Edit Online" button about scribble HOT 11 OPEN

racket avatar racket commented on June 15, 2024 2
Add "Edit Online" button

from scribble.

Comments (11)

leafac avatar leafac commented on June 15, 2024 3

The motivation is to increase the number of passing-by contributions—or, at least, make them easier. This started as a conversation on Slack with David Storrs, Ben Greenman, Sam Tobin-Hochstadt and myself.


I want to vouch for Idea 3. But, as someone that doesn’t host their Racket packages on GitHub—I use my own Git server—I’d say we add @edit-link instead of @github-link. No reason to tie the feature to GitHub, I believe. Also, I think it’s more principled. It is always correct and doesn’t rely on magic. At the cost of adding a burden to documentation authors, it’s true.

from scribble.

leafac avatar leafac commented on June 15, 2024 2

Alternatively, another idea that Sam Tobin-Hochstadt gave: have a form like the one in http://beautifulracket.com/explainer/lang-line.html. What it would do is up to debate. Send emails to the mailing list, maybe? The content/noise ratio could be a problem.

from scribble.

jackfirth avatar jackfirth commented on June 15, 2024

Idea 1 (the dream) change Scribble to automatically add "edit on github" links to the drop-down that appears when you click headings (just below "link to this section"). Guess this would only work for cloned packages.

Could you clarify why this only works for cloned packages? I'm not understanding that point. Can't this be inferred from the package name-to-source-URL mapping? Or is that not available during document rendering?

I would prefer option 1 or 2 with option 3 as an override, in the event of a section that presents some strange corner case.

from scribble.

bennn avatar bennn commented on June 15, 2024

Could you clarify why this only works for cloned packages? I'm not understanding that point. Can't this be inferred from the package name-to-source-URL mapping? Or is that not available during document rendering?

Oops, I didn't realize there was a package-name-to-source-URL mapping. (I see pkg-catalog-show can get the github url for packages like htdp, and (find-user-pkgs-dir) returns a directory with URLs for user packages.) Seems like the URL should be available when building Scribble documents in raco setup.

from scribble.

gregid avatar gregid commented on June 15, 2024

Some time ago on Racket Users I suggested a simple solution (last message in the thread):
Correcting documentation à la Beautiful Racket

The idea is to simply use a hyperlink that will prepopulate the new github issue form with a title, possibly a location of the text to correct, etc. It could be done similar to the current Beautiful Racket implementation - but by clicking flag icon on the margin of the text it will lead the user to the github prepopulated form, eg:
https://github.com/mbutterick/pollen/issues/new?title=foo&body=bar

from scribble.

bennn avatar bennn commented on June 15, 2024

Related: racket/racket#874

from scribble.

soegaard avatar soegaard commented on June 15, 2024

from scribble.

bennn avatar bennn commented on June 15, 2024

yes, I think that's a must for whatever we end up merging

EDIT: sam is right, I was thinking about source links (not editing) when I wrote this comment

from scribble.

samth avatar samth commented on June 15, 2024

I think enabling non-github editing in the browser would be a lot of extra work, and we should aim for that only after we have a solution that first just links to the source code.

from scribble.

gregid avatar gregid commented on June 15, 2024

I have started a proposal that is related to the discussion: #228

@soegaard: as to the github link - this would only work for registered github users.

from scribble.

spdegabrielle avatar spdegabrielle commented on June 15, 2024

is this still an issue? Please consider adding the label good first issue so it is findable:

Issues labeled good first issue in in Racket GitHub repositories

from scribble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.