aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/common/styles/html/coqremote/header.html26
-rw-r--r--doc/plugin_tutorial/tuto1/src/simple_declare.ml9
2 files changed, 18 insertions, 17 deletions
diff --git a/doc/common/styles/html/coqremote/header.html b/doc/common/styles/html/coqremote/header.html
index c6c4509133..2f7ba14753 100644
--- a/doc/common/styles/html/coqremote/header.html
+++ b/doc/common/styles/html/coqremote/header.html
@@ -4,12 +4,12 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
-<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css" />
-<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css" />
-<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css" />
-<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css" />
-<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/coq/style.css" />
-<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/coq/coqdoc.css" />
+<link type="text/css" rel="stylesheet" media="all" href="//coq.inria.fr/modules/node/node.css" />
+<link type="text/css" rel="stylesheet" media="all" href="//coq.inria.fr/modules/system/defaults.css" />
+<link type="text/css" rel="stylesheet" media="all" href="//coq.inria.fr/modules/system/system.css" />
+<link type="text/css" rel="stylesheet" media="all" href="//coq.inria.fr/modules/user/user.css" />
+<link type="text/css" rel="stylesheet" media="all" href="//coq.inria.fr/sites/all/themes/coq/style.css" />
+<link type="text/css" rel="stylesheet" media="all" href="//coq.inria.fr/sites/all/themes/coq/coqdoc.css" />
<title>Standard Library | The Coq Proof Assistant</title>
@@ -21,20 +21,20 @@
<div id="headertop">
<div id="nav">
<ul class="links-menu">
- <li><a href="/" class="active">Home</a></li>
- <li><a href="/about-coq" title="More about coq">About Coq</a></li>
- <li><a href="/download">Get Coq</a></li>
- <li><a href="/documentation">Documentation</a></li>
- <li><a href="/community">Community</a></li>
+ <li><a href="//coq.inria.fr/" class="active">Home</a></li>
+ <li><a href="//coq.inria.fr/about-coq" title="More about coq">About Coq</a></li>
+ <li><a href="//coq.inria.fr/download">Get Coq</a></li>
+ <li><a href="//coq.inria.fr/documentation">Documentation</a></li>
+ <li><a href="//coq.inria.fr/community">Community</a></li>
</ul>
</div>
</div>
<div id="header">
<div id="logoWrapper">
- <div id="logo"><a href="/" title="Home"><img src="/files/barron_logo.png" alt="Home" /></a>
+ <div id="logo"><a href="//coq.inria.fr/" title="Home"><img src="//coq.inria.fr/files/barron_logo.png" alt="Home" /></a>
</div>
- <div id="siteName"><a href="/" title="Home">The Coq Proof Assistant</a>
+ <div id="siteName"><a href="//coq.inria.fr/" title="Home">The Coq Proof Assistant</a>
</div>
</div>
</div>
diff --git a/doc/plugin_tutorial/tuto1/src/simple_declare.ml b/doc/plugin_tutorial/tuto1/src/simple_declare.ml
index 9d10a8ba72..e370d37fc4 100644
--- a/doc/plugin_tutorial/tuto1/src/simple_declare.ml
+++ b/doc/plugin_tutorial/tuto1/src/simple_declare.ml
@@ -1,5 +1,5 @@
(* Ideally coq/coq#8811 would get merged and then this function could be much simpler. *)
-let edeclare ident (_, poly, _ as k) ~opaque sigma udecl body tyopt imps hook =
+let edeclare ?hook ident (_, poly, _ as k) ~opaque sigma udecl body tyopt imps =
let sigma = Evd.minimize_universes sigma in
let body = EConstr.to_constr sigma body in
let tyopt = Option.map (EConstr.to_constr sigma) tyopt in
@@ -9,16 +9,17 @@ let edeclare ident (_, poly, _ as k) ~opaque sigma udecl body tyopt imps hook =
(Option.List.cons tyopt [body]) in
let sigma = Evd.restrict_universe_context sigma uvars in
let univs = Evd.check_univ_decl ~poly sigma udecl in
+ let uctx = Evd.evar_universe_context sigma in
let ubinders = Evd.universe_binders sigma in
let ce = Declare.definition_entry ?types:tyopt ~univs body in
- DeclareDef.declare_definition ident k ce ubinders imps ~hook
+ let hook_data = Option.map (fun hook -> hook, uctx, []) hook in
+ DeclareDef.declare_definition ident k ce ubinders imps ?hook_data
let packed_declare_definition ~poly ident value_with_constraints =
let body, ctx = value_with_constraints in
let sigma = Evd.from_ctx ctx in
let k = (Decl_kinds.Global, poly, Decl_kinds.Definition) in
let udecl = UState.default_univ_decl in
- let nohook = Lemmas.mk_hook (fun _ x -> ()) in
- ignore (edeclare ident k ~opaque:false sigma udecl body None [] nohook)
+ ignore (edeclare ident k ~opaque:false sigma udecl body None [])
(* But this definition cannot be undone by Reset ident *)