<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">The HTML backend also creates (HTML) identifiers based on the names of<br>
(Agda) identifiers:<br>
<br>
<a href="https://github.com/agda/agda/blob/6385f850a185523bb5241a71f5a7614a148f6b53/doc/release-notes/2.5.4.md#html-backend">
https://github.com/agda/agda/blob/6385f850a185523bb5241a71f5a7614a148f6b53/doc/release-notes/2.5.4.md#html-backend</a><br>
<br>
<br>
</p>
<p class="MsoNormal">That’s what I remembered in older versions. Is it still the case in 2.6+?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:nad@cse.gu.se">Nils Anders Danielsson</a><br>
<b>Sent: </b>Wednesday, June 8, 2022 8:09 AM<br>
<b>To: </b><a href="mailto:fdhzs2010@hotmail.com">Jason Hu</a>; <a href="mailto:agda@lists.chalmers.se">
agda</a><br>
<b>Subject: </b>Re: [Agda] id number in html?</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On 2022-06-07 21:28, Jason Hu wrote:<br>
> When generating html files, Agda assigns an id to each definitions.<br>
> Now when we need to refer to that id from elsewhere, e.g. another<br>
> website, how stable can I assume this id to be?<br>
<br>
The identifiers correspond to file positions.<br>
<br>
> Is there a more recommended way to create links to an Agda html file?<br>
<br>
The HTML backend also creates (HTML) identifiers based on the names of<br>
(Agda) identifiers:<br>
<br>
<a href="https://github.com/agda/agda/blob/6385f850a185523bb5241a71f5a7614a148f6b53/doc/release-notes/2.5.4.md#html-backend">
https://github.com/agda/agda/blob/6385f850a185523bb5241a71f5a7614a148f6b53/doc/release-notes/2.5.4.md#html-backend</a><br>
<br>
The current naming scheme is a little buggy<br>
(<a href="https://github.com/agda/agda/issues/4653">https://github.com/agda/agda/issues/4653</a>) and might change in the<br>
future. If you use this kind of link, then I suggest that you test that<br>
it points to the right thing.<br>
<br>
-- <br>
/NAD<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>