Skip to content

Commit

Permalink
Add rocq doc subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Dec 9, 2024
1 parent ade7dd6 commit 5320ec9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/coqdoc/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(executable
(name coqdoc)
(public_name coqdoc)
(package rocq-runtime)
(package coq-core)
(modules coqdoc)
(libraries coqdoclib))

Expand Down
2 changes: 1 addition & 1 deletion topbin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
(modules rocq)
(modes exe byte)
; we statically link the "small" subcommands instead of having separate binaries
(libraries rocqshim coqdeplib coqpp))
(libraries rocqshim coqdeplib coqpp coqdoclib))

(install
(section bin)
Expand Down
1 change: 1 addition & 0 deletions topbin/rocq.ml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ let () =
| ("top"|"repl") :: args -> with_worker opts "repl" args
| ("preprocess-mlg"|"pp-mlg") :: args -> Coqpp_main.main args
| "dep" :: args -> Coqdeplib.Rocqdep_main.main args
| "doc" :: args -> Coqdoclib.Rocqdoc_main.main ~prog:(Sys.argv.(0) ^ " doc") args

| prog :: _ ->
fatal_error "Unknown argument %s" prog
Expand Down

0 comments on commit 5320ec9

Please sign in to comment.