Skip to content
Snippets Groups Projects
Unverified Commit 990d275a authored by bgallois's avatar bgallois
Browse files

add base url

parent b5d1c9f5
No related branches found
No related tags found
No related merge requests found
Pipeline #36421 passed
This commit is part of merge request !254. Comments created here will be created in the context of that merge request.
......@@ -29,5 +29,4 @@ tmp
*.log
# Autogenerated docs
docs/api/runtime*.md
docs/api/doc
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -23,7 +23,7 @@ Taking {{ call.weight }} % of a block.
```
</details>
See [Pallet::{{ call.name }}](./doc/{{ pallet.type_name }}/pallet/struct.Pallet.html#method.{{ call.name }} )
See [Pallet::{{ call.name }}]({{ base_url }}/doc/{{ pallet.type_name }}/pallet/struct.Pallet.html#method.{{ call.name }})
{% endfor -%}
{% endfor -%}
......@@ -20,6 +20,7 @@ use core::hash::Hash;
use scale_info::form::PortableForm;
use serde::Serialize;
use std::collections::HashMap;
use std::env;
use std::path::Path;
use std::process::Command;
use std::{
......@@ -542,6 +543,9 @@ fn print_runtime(pallets: RuntimePallets) -> (String, String, String) {
context.insert("disabled_calls_counter", &disabled_calls_counter);
context.insert("disabled_calls_pallets", &disabled_calls_pallets);
let base_url: String = env::var("BASE_URL").unwrap_or(String::from("."));
context.insert("base_url", &base_url);
let call_doc = tera
.render("runtime-calls.md", &context)
.expect("template error");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment