Skip to content
Snippets Groups Projects
Unverified Commit 9bb5ad17 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 #36419 failed
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 -%}
......@@ -47,6 +47,7 @@ const EVENTS_DOC_FILEPATH: &str = "docs/api/runtime-events.md";
const ERRORS_DOC_FILEPATH: &str = "docs/api/runtime-errors.md";
const TEMPLATES_GLOB: &str = "xtask/res/templates/*.md";
const WEIGHT_FILEPATH: &str = "runtime/common/src/weights/";
const BASE_URL: &str = ".";
// define structs and implementations
......@@ -541,6 +542,7 @@ fn print_runtime(pallets: RuntimePallets) -> (String, String, String) {
context.insert("root_calls_pallets", &root_calls_pallets);
context.insert("disabled_calls_counter", &disabled_calls_counter);
context.insert("disabled_calls_pallets", &disabled_calls_pallets);
context.insert("base_url", &BASE_URL);
let call_doc = tera
.render("runtime-calls.md", &context)
......
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