Skip to content

Commit 02537a1

Browse files
committed
fix: Make sure <key> renders properly
1 parent 7831d18 commit 02537a1

File tree

10 files changed

+47
-47
lines changed

10 files changed

+47
-47
lines changed

generated/attributes/code.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
- [code.function.name](#codefunctionname)
88
- [code.line.number](#codelinenumber)
99
- [Deprecated Attributes](#deprecated-attributes)
10-
- [code.filepath](#code-filepath)
11-
- [code.function](#code-function)
12-
- [code.lineno](#code-lineno)
13-
- [code.namespace](#code-namespace)
10+
- [code.filepath](#codefilepath)
11+
- [code.function](#codefunction)
12+
- [code.lineno](#codelineno)
13+
- [code.namespace](#codenamespace)
1414

1515
## Stable Attributes
1616

generated/attributes/db.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
- [db.collection.name](#dbcollectionname)
77
- [db.namespace](#dbnamespace)
88
- [db.operation.name](#dboperationname)
9-
- [db.query.parameter.<key>](#dbqueryparameterkey)
9+
- [db.query.parameter.\<key\>](#dbqueryparameterkey)
1010
- [db.query.text](#dbquerytext)
1111
- [db.redis.connection](#dbredisconnection)
1212
- [db.redis.parameters](#dbredisparameters)
1313
- [db.system.name](#dbsystemname)
1414
- [db.user](#dbuser)
1515
- [Deprecated Attributes](#deprecated-attributes)
16-
- [db.name](#db-name)
17-
- [db.operation](#db-operation)
18-
- [db.sql.bindings](#db-sql-bindings)
19-
- [db.statement](#db-statement)
20-
- [db.system](#db-system)
16+
- [db.name](#dbname)
17+
- [db.operation](#dboperation)
18+
- [db.sql.bindings](#dbsqlbindings)
19+
- [db.statement](#dbstatement)
20+
- [db.system](#dbsystem)
2121

2222
## Stable Attributes
2323

generated/attributes/gen_ai.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
- [gen_ai.usage.input_tokens](#gen_aiusageinput_tokens)
99
- [gen_ai.usage.output_tokens](#gen_aiusageoutput_tokens)
1010
- [Deprecated Attributes](#deprecated-attributes)
11-
- [gen_ai.usage.completion_tokens](#gen_ai-usage-completion_tokens)
12-
- [gen_ai.usage.prompt_tokens](#gen_ai-usage-prompt_tokens)
11+
- [gen_ai.usage.completion_tokens](#gen_aiusagecompletion_tokens)
12+
- [gen_ai.usage.prompt_tokens](#gen_aiusageprompt_tokens)
1313

1414
## Stable Attributes
1515

generated/attributes/http.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- [http.request.domain_lookup_end](#httprequestdomain_lookup_end)
1212
- [http.request.domain_lookup_start](#httprequestdomain_lookup_start)
1313
- [http.request.fetch_start](#httprequestfetch_start)
14-
- [http.request.header.<key>](#httprequestheaderkey)
14+
- [http.request.header.\<key\>](#httprequestheaderkey)
1515
- [http.request.method](#httprequestmethod)
1616
- [http.request.redirect_start](#httprequestredirect_start)
1717
- [http.request.request_start](#httprequestrequest_start)
@@ -20,24 +20,24 @@
2020
- [http.request.response_start](#httprequestresponse_start)
2121
- [http.request.secure_connection_start](#httprequestsecure_connection_start)
2222
- [http.response.body.size](#httpresponsebodysize)
23-
- [http.response.header.<key>](#httpresponseheaderkey)
23+
- [http.response.header.\<key\>](#httpresponseheaderkey)
2424
- [http.response.header.content-length](#httpresponseheadercontentlength)
2525
- [http.response.size](#httpresponsesize)
2626
- [http.response.status_code](#httpresponsestatus_code)
2727
- [http.route](#httproute)
2828
- [Deprecated Attributes](#deprecated-attributes)
29-
- [http.client_ip](#http-client_ip)
30-
- [http.flavor](#http-flavor)
31-
- [http.host](#http-host)
32-
- [http.method](#http-method)
33-
- [http.response_content_length](#http-response_content_length)
34-
- [http.response_transfer_size](#http-response_transfer_size)
35-
- [http.scheme](#http-scheme)
36-
- [http.server_name](#http-server_name)
37-
- [http.status_code](#http-status_code)
38-
- [http.target](#http-target)
39-
- [http.url](#http-url)
40-
- [http.user_agent](#http-user_agent)
29+
- [http.client_ip](#httpclient_ip)
30+
- [http.flavor](#httpflavor)
31+
- [http.host](#httphost)
32+
- [http.method](#httpmethod)
33+
- [http.response_content_length](#httpresponse_content_length)
34+
- [http.response_transfer_size](#httpresponse_transfer_size)
35+
- [http.scheme](#httpscheme)
36+
- [http.server_name](#httpserver_name)
37+
- [http.status_code](#httpstatus_code)
38+
- [http.target](#httptarget)
39+
- [http.url](#httpurl)
40+
- [http.user_agent](#httpuser_agent)
4141

4242
## Stable Attributes
4343

generated/attributes/net.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
# Net Attributes
44

55
- [Deprecated Attributes](#deprecated-attributes)
6-
- [net.host.ip](#net-host-ip)
7-
- [net.host.name](#net-host-name)
8-
- [net.host.port](#net-host-port)
9-
- [net.peer.ip](#net-peer-ip)
10-
- [net.peer.name](#net-peer-name)
11-
- [net.peer.port](#net-peer-port)
12-
- [net.protocol.name](#net-protocol-name)
13-
- [net.protocol.version](#net-protocol-version)
14-
- [net.sock.family](#net-sock-family)
15-
- [net.sock.host.addr](#net-sock-host-addr)
16-
- [net.sock.host.port](#net-sock-host-port)
17-
- [net.sock.peer.addr](#net-sock-peer-addr)
18-
- [net.sock.peer.name](#net-sock-peer-name)
19-
- [net.sock.peer.port](#net-sock-peer-port)
20-
- [net.transport](#net-transport)
6+
- [net.host.ip](#nethostip)
7+
- [net.host.name](#nethostname)
8+
- [net.host.port](#nethostport)
9+
- [net.peer.ip](#netpeerip)
10+
- [net.peer.name](#netpeername)
11+
- [net.peer.port](#netpeerport)
12+
- [net.protocol.name](#netprotocolname)
13+
- [net.protocol.version](#netprotocolversion)
14+
- [net.sock.family](#netsockfamily)
15+
- [net.sock.host.addr](#netsockhostaddr)
16+
- [net.sock.host.port](#netsockhostport)
17+
- [net.sock.peer.addr](#netsockpeeraddr)
18+
- [net.sock.peer.name](#netsockpeername)
19+
- [net.sock.peer.port](#netsockpeerport)
20+
- [net.transport](#nettransport)
2121

2222
## Deprecated Attributes
2323

generated/attributes/params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Params Attributes
44

55
- [Stable Attributes](#stable-attributes)
6-
- [params.<key>](#paramskey)
6+
- [params.\<key\>](#paramskey)
77

88
## Stable Attributes
99

generated/attributes/query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Query Attributes
44

55
- [Deprecated Attributes](#deprecated-attributes)
6-
- [query.<key>](#query-key-)
6+
- [query.\<key\>](#querykey)
77

88
## Deprecated Attributes
99

generated/attributes/remix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Remix Attributes
44

55
- [Stable Attributes](#stable-attributes)
6-
- [remix.action_form_data.<key>](#remixaction_form_datakey)
6+
- [remix.action_form_data.\<key\>](#remixaction_form_datakey)
77

88
## Stable Attributes
99

generated/attributes/url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- [url.fragment](#urlfragment)
88
- [url.full](#urlfull)
99
- [url.path](#urlpath)
10-
- [url.path.params.<key>](#urlpathparamskey)
10+
- [url.path.params.\<key\>](#urlpathparamskey)
1111
- [url.port](#urlport)
1212
- [url.query](#urlquery)
1313
- [url.scheme](#urlscheme)

scripts/generate_attribute_docs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ function generateAttributeTable(attribute: AttributeJson): string {
6262

6363
table += '\n';
6464

65-
table = table.replaceAll('<key>', '\\<key\\>');
66-
6765
return table;
6866
}
6967

@@ -156,6 +154,8 @@ async function generateAttributeDocs() {
156154
}
157155
}
158156

157+
markdown = markdown.replaceAll('<key>', '\\<key\\>');
158+
159159
// Write the markdown file
160160
const outputFile = path.join(outputDir, `${category}.md`);
161161
fs.writeFileSync(outputFile, markdown);

0 commit comments

Comments
 (0)