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
...@@ -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 -%}
...@@ -47,6 +47,7 @@ const EVENTS_DOC_FILEPATH: &str = "docs/api/runtime-events.md"; ...@@ -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 ERRORS_DOC_FILEPATH: &str = "docs/api/runtime-errors.md";
const TEMPLATES_GLOB: &str = "xtask/res/templates/*.md"; const TEMPLATES_GLOB: &str = "xtask/res/templates/*.md";
const WEIGHT_FILEPATH: &str = "runtime/common/src/weights/"; const WEIGHT_FILEPATH: &str = "runtime/common/src/weights/";
const BASE_URL: &str = ".";
// define structs and implementations // define structs and implementations
...@@ -541,6 +542,7 @@ fn print_runtime(pallets: RuntimePallets) -> (String, String, String) { ...@@ -541,6 +542,7 @@ fn print_runtime(pallets: RuntimePallets) -> (String, String, String) {
context.insert("root_calls_pallets", &root_calls_pallets); context.insert("root_calls_pallets", &root_calls_pallets);
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);
context.insert("base_url", &BASE_URL);
let call_doc = tera let call_doc = tera
.render("runtime-calls.md", &context) .render("runtime-calls.md", &context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment