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

add base url

parent 71eecbf8
No related branches found
No related tags found
No related merge requests found
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 ...@@ -29,5 +29,4 @@ tmp
*.log *.log
# Autogenerated docs # Autogenerated docs
docs/api/runtime*.md
docs/api/doc 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. ...@@ -23,7 +23,7 @@ Taking {{ call.weight }} % of a block.
``` ```
</details> </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 -%}
{% endfor -%} {% endfor -%}
...@@ -20,6 +20,7 @@ use core::hash::Hash; ...@@ -20,6 +20,7 @@ use core::hash::Hash;
use scale_info::form::PortableForm; use scale_info::form::PortableForm;
use serde::Serialize; use serde::Serialize;
use std::collections::HashMap; use std::collections::HashMap;
use std::env;
use std::path::Path; use std::path::Path;
use std::process::Command; use std::process::Command;
use std::{ use std::{
...@@ -542,6 +543,9 @@ fn print_runtime(pallets: RuntimePallets) -> (String, String, String) { ...@@ -542,6 +543,9 @@ fn print_runtime(pallets: RuntimePallets) -> (String, String, String) {
context.insert("disabled_calls_counter", &disabled_calls_counter); context.insert("disabled_calls_counter", &disabled_calls_counter);
context.insert("disabled_calls_pallets", &disabled_calls_pallets); 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 let call_doc = tera
.render("runtime-calls.md", &context) .render("runtime-calls.md", &context)
.expect("template error"); .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