This repository was archived by the owner on Aug 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
99 lines (92 loc) · 2.87 KB
/
Copy pathindex.html
File metadata and controls
99 lines (92 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PAPI Chain Docs</title>
<meta name="description" content="Documentation for PAPI Chain Docs">
<style>
body {
background: #f2f4f8;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
font-size: 16px;
}
.container-main {
display: grid;
grid-template-columns: minmax(0, 300px) minmax(0, auto);
grid-template-areas: "sidebar content";
margin: 2rem auto;
}
.container-sidebar {
grid-area: sidebar;
max-height: calc(100vh - 2rem - 42px);
overflow: auto;
position: sticky;
padding: 1rem;
}
a {
color: #1f70c2;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
li {
list-style-type: "🌐";
padding: 5px 2px;
}
.code-snippet-inline {
background: #ffffff;
border-radius: 0.8em;
padding: 0.2em;
}
.code-snippet-big {
background: #ffffff;
border: 1px solid #c5c7c9;
border-radius: 0.8em;
padding-left: 1.3em;
padding-right: 1.3em;
width: max-content;
}
</style>
</head>
<body>
<div class="container-main">
<div class="container-sidebar">
<h3>Networks:</h3>
<ul>
<li><a href="./invarch"><span>invarch</span></a></li>
<li><a href="./polkadot_people"><span>polkadot_people</span></a></li>
<li><a href="./polkadot_asset_hub"><span>polkadot_asset_hub</span></a></li>
<li><a href="./polkadot"><span>polkadot</span></a></li>
</ul>
</div>
<div class="container-content">
<h1>PAPI Chain Docs</h1>
<p>This is generated documentation for some well-known chains. It's based on chain metadata, and unique to specific chain. </p>
<p>We aim to support all relay chains and their system chains. </p>
<p>With these docs, you can search for apis like
<code class="code-snippet-inline">limited_teleport_assets</code>,
their type parameters, and the docs that metadata provide for them.
</p>
<p>You can also generate such documentation for any chain,
using <code class="code-snippet-inline">papi-generate-docs</code> binary,
provided by <code class="code-snippet-inline">@polkadot-api/docgen</code>
package:</p>
<p>
<pre class="code-snippet-big">
<code>
npm install polkadot-api @polkadot-api/docgen
papi add <...>
papi-generate-docs --config <path-to-papi-config> --output <docs_directory></code>
</pre>
</p>
<p>Note that this information might update a bit late after a runtime upgrade, since the docs are staticly generated once a day.</p>
<p>See <a href="https://papi.how" target="_blank" class="external">papi.how</a> for general Polkadot-API documentation.</p>
<p>Happy hacking!</p>
</div>
</div>
</div>
</body>
</html>