GithubHelp home page GithubHelp logo

Comments (4)

anishkny avatar anishkny commented on August 16, 2024 3

Hopefully #32 which adds row numbers should help ease the pain a little bit:

<table>
  <tr>            <!-- Row 1 -->
    <td>1
    <td>&nbsp;
    <td>&nbsp;
    ...

from commit-sudoku.

xiegeo avatar xiegeo commented on August 16, 2024

Thank you for your suggestions. What does your ideal format for editing the table look like?

I don't know how to make a script automatic. Right now, all you have to do to change numbers is edit a text file, so the whole workflow can be done within GitHub. A script will require contributors to download it locally and have the scripting environment setup. The biggest downside is including generated image in source can cause merge conflicts. Unless you mean calling a server to generate an image such as what http://gravizo.com/#samples does.

Making the html table in readme look better might be possible (if anyone can, please try it), but the sanitization done by GitHub is quite aggressive. An alternative is to use GitHub pages, that's probably the best way going forward if the UI is to grow.

from commit-sudoku.

ThisIsJeron avatar ThisIsJeron commented on August 16, 2024

instead of having to read the markdown, perhaps a table drawn in ascii would be easier to use

perhaps when someone edits the "sudoku file" and commits, after accepting pull request there would be an automated "compilation" commit that generates the new readme file. Totally just spitballing here, I've never done anything like this but it would be cool

GitHub Pages would be a good alternative, if you set one up I'd definitely try to contribute

from commit-sudoku.

xiegeo avatar xiegeo commented on August 16, 2024

I see want you mean. I choose the current format because git merge and git blame are line based.

Markdown tables is an option I considered, but it can cause merge conflicts when two person edit the same row.

Having some work done after every commit is doable, but having that commit back to master is too messy. Usually, such programs save their output to a separate place, which we can link to. Sometimes generated code and resources are checked into source control, but they usually don't change day to day.

GitHub Pages (or another host) can work in addition to the current format without replacing it. JavaScript could be used to retrieve the table date from the readme and display it. The concept of where the data lives and how it is displayed become separated, which is a desirable property (so working on this does not exclude changing the source of truth in the future) . This also opens up many opportunities, such as showing who added each number.

I tends to over-design things so I am unlikely to work on this unless I found lots of time. If you want to contribute now, you can start by writing the basic layout of the page and saving it in an index.html file.

from commit-sudoku.

Related Issues (8)

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.