GithubHelp home page GithubHelp logo

affeldt-aist / coq2html Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xavierleroy/coq2html

1.0 1.0 3.0 2.87 MB

An HTML documentation generator for Coq source files

License: GNU General Public License v2.0

JavaScript 4.50% OCaml 86.25% CSS 7.41% Makefile 1.84%

coq2html's People

Contributors

affeldt-aist avatar brnbrnrd avatar exoego avatar firobe avatar proux01 avatar skyskimmer avatar vertmo avatar xavierleroy avatar yoshihiro503 avatar

Stargazers

 avatar

coq2html's Issues

inconsistent treatment of `|2`

image

when using coq2html against contra.v I noticed the following inconsistent behavior: |2 is turned into a link only two one place but maybe it shouldn't be

compilation with OCaml 11

It looks like compilation with OCaml version 4.11.2 errors:

ocamlopt -c coq2html.ml
File "coq2html.mll", line 291, characters 5-13:
Error: Unbound value Seq.find
make: *** [Makefile:10: coq2html.cmx] Error 2

There is maybe a minimal version for OCaml to require in the README. @yoshihiro503

use (**md instead of (***md

"are th three stars before md mandatory? why not just two? (coqdoc syntax is (** IIRC so not sure a third star is needed)"

"in case we wouldn't use block comments, with stars all around, but just start (* and closing *) syntax, the less stars the better I'd say."

@proux01

Compilation warnings

I get the following warnings when compiling:

File "generate_index.ml", lines 219-231, characters 17-38:
Warning 8 [partial-match]: this pattern-matching is not exhaustive.
Here is an example of a case that is not matched:
[]::_
File "coq2html.mll", line 390, characters 39-40:
Warning 26 [unused-var]: unused variable s.
File "coq2html.mll", line 397, characters 63-64:
Warning 26 [unused-var]: unused variable s.
File "coq2html.mll", line 403, characters 64-65:
Warning 26 [unused-var]: unused variable s.
File "coq2html.mll", line 535, characters 34-35:
Warning 26 [unused-var]: unused variable s.

those probably need to be addressed.

table of contents

the table of content generated from the first title of each file, following the order of the _CoqProject
(coqdoc feature not in coq2html)
@proux01

semantics of white spaces

"This made me discover that coq2html is basically just removing the initial (* and trailing *) but keeps all the trailing whitespaces. I'm not sure we want this since two whitespaces, or more, have a specific semantics in markdown (force line break). This may lead to strange results, depending on the number of space before the final *) (which is something we don't control and which shouldn't have any meaning)." @proux01

missing purple keywords

  • minor but probably easy to fix: missing purple keywords
    • Set Implicit Arguments.
    • Unset Strict Implicit
    • Unset Printing Implicit Defensive
    • Number Notation
    • Declare Scope
    • Delimit Scope
    • Bind Scope
    • Local
      @proux01

Does not build with OCaml 5

If it's unsupported yet then it should be documented, otherwise this looks like a simple fix.

I get the following error:

ocamlopt -c generate_index.mli
(for i in header footer css js redirect; do \
         echo "let $i = {xxx|"; \
         cat coq2html.$i; \
         echo '|xxx}'; \
         done) > resources.ml
ocamlopt -c resources.ml
ocamlopt -c generate_index.ml
File "_none_", line 1:
Alert ocaml_deprecated_auto_include: 
OCaml's lib directory layout changed in 5.0. The str subdirectory has been
automatically added to the search path, but you should add -I +str to the
command-line to silence this alert (e.g. by adding str to the list of
libraries in your dune file, or adding use_str to your _tags file for
ocamlbuild, or using -package str for ocamlfind).

File "generate_index.ml", line 167, characters 19-28:
167 |   String.(compare (lowercase s1) (lowercase s2))
                         ^^^^^^^^^
Error: Unbound value lowercase
make: *** [Makefile:10: generate_index.cmx] Error 2

Notation after closing parenthesis

For example, in the following code, the second -> is not correctly linked.

Definition ty := (bool -> nat) -> unit.

This is because the location of the glob file starts two places off from the actual -> location and points to the ) -> part.

R29:33 Coq.Init.Logic <> ::type_scope:x_'->'_x not

publishing (pre-)releases

This is more like a wish, for you to publish binary releases for Linux that can be used in GitHub workflows.
Having a pre-release versions published would allow to test and produce valid workflow documentation

link from comments

  • the ability to easily link to constants in the comments (by just surrounding them with [ and ]
    (coqdoc feature not in coq2html)
    @proux01

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.