Skip to content

Commit

Permalink
fixing docify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
seemantaggarwal committed Jan 9, 2025
1 parent 45bce73 commit 65f93a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/parachain/runtime/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ use polkadot_sdk::{staging_xcm as xcm, *};
#[doc::include_str!("../../README.md")]
#[cfg(feature = "generate-readme")]

docify::compile_markdown!("README.docify.md","README.md");
docify::compile_markdown!("../..","../..");

use docify::export;
use docify::{export, export_content};

use cumulus_primitives_core::ParaId;
use frame_support::build_struct_json_patch;
Expand All @@ -33,9 +33,9 @@ pub const PARACHAIN_ID: u32 = 2000;
pub fn template_session_keys(keys: AuraId) -> SessionKeys {
SessionKeys { aura: keys }
}
#[docify::export_content]
fn get_parachain_id(){
PARACHAIN_ID.to_string();
#[docify::export(name = "get_parachain_id")]
pub fn get_parachain_id() -> u32 {
PARACHAIN_ID
}

fn testnet_genesis(
Expand Down

0 comments on commit 65f93a4

Please sign in to comment.