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

add base url

parent 4d6d5145
No related branches found
No related tags found
1 merge request!254Refac generated documentation
......@@ -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