Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript-powered per-lemma proof visibility toggling in coqdoc HTML output. #2201

Open
coqbot opened this issue Dec 5, 2009 · 8 comments
Labels
kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. part: coqdoc The coqdoc binary for building documentation. part: tools Coqdoc, coq_makefile, etc.

Comments

@coqbot
Copy link
Contributor

coqbot commented Dec 5, 2009

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#2201
From: @Eelis
Reported version: unspecified
CC: @pirbo

@coqbot
Copy link
Contributor Author

coqbot commented Dec 5, 2009

Comment author: @Eelis

Currently one can pass -g to coqdoc to hide proofs. For the HTML output, I think we can do better than this "all or nothing" approach. There, it should be possible to add a little button next to each lemma that toggles its proof's visibility (alternatively, the lemma itself could be the "button"). This should require only a modicum of Javascript. As a finishing touch, there could be "hide all" / "show all" buttons at the top of each .html.

@coqbot
Copy link
Contributor Author

coqbot commented May 3, 2011

Comment author: @pirbo

Poor Yann, he should have never say that he'll rewrite coqdoc ...
Anyway, one more wish to study !

@coqbot coqbot added the part: tools Coqdoc, coq_makefile, etc. label Oct 18, 2017
@maximedenes maximedenes added the kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. label Feb 7, 2018
@daniel-freiermuth
Copy link

Does this fulfill your expectations? https://www.ps.uni-saarland.de/~ttebbi/coqdocjs/

@Zimmi48
Copy link
Member

Zimmi48 commented Sep 27, 2018

Looks like an alternative to proviola. Anyways, I wish people would submit their patches to improve coqdoc instead of making their own extensions.

@anton-trunov
Copy link
Member

anton-trunov commented Sep 27, 2018

@Zimmi48 It would be cool if you as a Coq dev encouraged the author(s) here https://github.com/tebbi/coqdocjs/issues

@gares
Copy link
Member

gares commented Sep 27, 2018

@Hc10b why don't you create a PR with your changes? The resulting HTML is pretty nice to me! And the changes seems reasonable (a few extra files).

@Zimmi48
Copy link
Member

Zimmi48 commented Sep 28, 2018

@gares I don't think @Hc10b was claiming this work was their own. From the link that @anton-trunov gave, it looks like the author is @tebbi.

@daniel-freiermuth
Copy link

Right. I have used coqdocjs once and stumbling about this open issue, I just want to leave a hint for people looking for something similar.

@Zimmi48 Zimmi48 added the part: coqdoc The coqdoc binary for building documentation. label Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancement to an existing user-facing feature, tactic, etc. part: coqdoc The coqdoc binary for building documentation. part: tools Coqdoc, coq_makefile, etc.
Projects
None yet
Development

No branches or pull requests

7 participants