Git Product home page Git Product logo

Comments (6)

rtfpessoa avatar rtfpessoa commented on May 24, 2024

The problem here is that we did not wanted to use javascript to do this, so css was used.
The main issue happens when it is done by id, if you have two diffs in the same page it will have problems since you cannot have two ids.

Maybe we should use class, still is not ideal.

from diff2html.

rtfpessoa avatar rtfpessoa commented on May 24, 2024

@sreich In #58 I added the diff2html-ui and with it the ability to set if the files are expanded or not by default when running the JS on the page. Is that a solution for your problem?

from diff2html.

sreich avatar sreich commented on May 24, 2024

hey, nice to see progress on this and the other issues i reported!

well, thing is, for it to be useful for me i'd need that to also be exposed via diff2html-cli, as that's all i (can) use. could you be a dear and add a switch for that? :-)

from diff2html.

rtfpessoa avatar rtfpessoa commented on May 24, 2024

@sreich just released a fix for the cli and also some more customization for the summary.

If you install version 1.4.4 you should have:

diff2html --su open
diff2html --su closed
diff2html --su hidden

Is it ok?

from diff2html.

rtfpessoa avatar rtfpessoa commented on May 24, 2024

I also added two hash tags to be able to override this with the url:

  • #files-summary-show
  • #files-summary-hide

this will also override any previous decision.
This is available in version 1.4.5.

@sreich can I close this or do you have any other suggestion?

from diff2html.

sreich avatar sreich commented on May 24, 2024

yes this works perfectly and you covered all bases -- nice work! 👍

from diff2html.

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.