mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 07:27:55 +00:00
Fix call enum's metadata regression (#3513)
This fixes an issue introduced in https://github.com/paritytech/substrate/pull/14101, in which I removed the `Call` enum's documentation and replaced it with a link to the `Pallet` struct, but this also removed any docs related to call from the metadata. I tried to add a regression test for this, but it seems to me that this is not possible, given that using `type-info` we only assert in type-ids for `Call`, `Event` and `Error`. I removed some doc comments from a test setup in `frame-support-test` to demonstrate the issue there. @jsdw do you have any comments on this? I also fixed a small issue in the custom html/css of `polkadot-sdk-doc` crate, making sure it does not affect the rust-doc page of all other crates. - [x] Investigate a regression test - [x] prdoc
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
sidebarElems.style.display = 'none';
|
||||
|
||||
// Add click event listener to the button
|
||||
expandButton.addEventListener('click', function() {
|
||||
expandButton.addEventListener('click', function () {
|
||||
// Toggle the display of the '.sidebar-elems'
|
||||
if (sidebarElems.style.display === 'none') {
|
||||
sidebarElems.style.display = 'block';
|
||||
@@ -72,6 +72,9 @@
|
||||
if (!crate_name.textContent.startsWith("polkadot_sdk_docs")) {
|
||||
console.log("skipping -- not `polkadot_sdk_docs`");
|
||||
return;
|
||||
} else {
|
||||
// insert class 'sdk-docs' to the body, so it enables the custom css rules.
|
||||
document.body.classList.add("sdk-docs");
|
||||
}
|
||||
|
||||
createToC();
|
||||
@@ -82,58 +85,60 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body.sdk-docs {
|
||||
nav.side-bar {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
nav.side-bar {
|
||||
width: 300px;
|
||||
}
|
||||
.sidebar-table-of-contents {
|
||||
margin-bottom: 1em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.sidebar-table-of-contents {
|
||||
margin-bottom: 1em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.sidebar-table-of-contents a {
|
||||
display: block;
|
||||
margin: 0.2em 0;
|
||||
}
|
||||
|
||||
.sidebar-table-of-contents a {
|
||||
display: block;
|
||||
margin: 0.2em 0;
|
||||
}
|
||||
.sidebar-table-of-contents .h2 {
|
||||
font-weight: bold;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.sidebar-table-of-contents .h2 {
|
||||
font-weight: bold;
|
||||
margin-left: 0;
|
||||
}
|
||||
.sidebar-table-of-contents .h3 {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.sidebar-table-of-contents .h3 {
|
||||
margin-left: 1em;
|
||||
}
|
||||
.sidebar-table-of-contents .h4 {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
.sidebar-table-of-contents .h4 {
|
||||
margin-left: 2em;
|
||||
}
|
||||
.sidebar h2.location {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar h2.location {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-elems {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Center the 'Expand for More' button */
|
||||
.expand-button {
|
||||
display: inline-block; /* Use inline-block for sizing */
|
||||
margin: 10px auto; /* Auto margins for horizontal centering */
|
||||
padding: 5px 10px;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
width: auto;
|
||||
/* Centering the button within its parent container */
|
||||
position: relative;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
.sidebar-elems {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Center the 'Expand for More' button */
|
||||
.expand-button {
|
||||
display: inline-block;
|
||||
/* Use inline-block for sizing */
|
||||
margin: 10px auto;
|
||||
/* Auto margins for horizontal centering */
|
||||
padding: 5px 10px;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
width: auto;
|
||||
/* Centering the button within its parent container */
|
||||
position: relative;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
+13
-12
@@ -1,16 +1,17 @@
|
||||
:root {
|
||||
--polkadot-pink: #E6007A ;
|
||||
--polkadot-green: #56F39A ;
|
||||
--polkadot-lime: #D3FF33 ;
|
||||
--polkadot-cyan: #00B2FF ;
|
||||
--polkadot-purple: #552BBF ;
|
||||
}
|
||||
|
||||
body > nav.sidebar > div.sidebar-crate > a > img {
|
||||
/* logo width, given that the sidebar width is 200px; */
|
||||
width: 190px;
|
||||
--polkadot-pink: #E6007A;
|
||||
--polkadot-green: #56F39A;
|
||||
--polkadot-lime: #D3FF33;
|
||||
--polkadot-cyan: #00B2FF;
|
||||
--polkadot-purple: #552BBF;
|
||||
}
|
||||
|
||||
body nav.sidebar {
|
||||
flex: 0 0 250px;
|
||||
body.sdk-docs {
|
||||
nav.sidebar>div.sidebar-crate>a>img {
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
nav.sidebar {
|
||||
flex: 0 0 250px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user