From 65f93a4d09673f8c11358869a9a8c2759cf5cd5a Mon Sep 17 00:00:00 2001 From: Seemant Aggarwal Date: Fri, 10 Jan 2025 03:16:47 +0530 Subject: [PATCH] fixing docify imports --- .../parachain/runtime/src/genesis_config_presets.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/parachain/runtime/src/genesis_config_presets.rs b/templates/parachain/runtime/src/genesis_config_presets.rs index c3a2eb23f0cc..350300e7760e 100644 --- a/templates/parachain/runtime/src/genesis_config_presets.rs +++ b/templates/parachain/runtime/src/genesis_config_presets.rs @@ -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; @@ -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(