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

revert gen-doc changes

parent c1d94fa5
No related branches found
No related tags found
1 merge request!254Refac generated documentation
Pipeline #36906 passed
......@@ -27,6 +27,3 @@ tmp
# Log files
*.log
# Autogenerated docs
docs/api/doc
......@@ -21,6 +21,9 @@
- [docs](./docs/)
- [api](./docs/api/)
- [manual](./docs/api/manual.md)
- [runtime-calls](./docs/api/runtime-calls.md) the calls you can submit through the RPC API
- [runtime-errors](./docs/api/runtime-errors.md) the errors you can get submitting a call
- [runtime-events](./docs/api/runtime-events.md) the events you can get submitting a call
- [dev](./docs/dev/)
- [beginner-walkthrough](./docs/dev/beginner-walkthrough.md)
- [git-conventions](./docs/dev/git-conventions.md)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -23,7 +23,8 @@ Taking {{ call.weight }} % of a block.
```
</details>
See [Pallet::{{ call.name }}]({{ base_url }}/doc/{{ pallet.type_name }}/pallet/struct.Pallet.html#method.{{ call.name }})
{# replace markdown sytax in documentation breaking the final result #}
{{ call.documentation | replace(from="# WARNING:", to="WARNING:") | replace(from="## Complexity", to="**Complexity**") }}
{% endfor -%}
{% endfor -%}
......@@ -20,7 +20,6 @@ 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::{
......@@ -43,9 +42,9 @@ where
// consts
const CALLS_DOC_FILEPATH: &str = "target/doc/runtime-calls.md";
const EVENTS_DOC_FILEPATH: &str = "target/doc/runtime-events.md";
const ERRORS_DOC_FILEPATH: &str = "target/doc/runtime-errors.md";
const CALLS_DOC_FILEPATH: &str = "docs/api/runtime-calls.md";
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/";
......@@ -554,9 +553,6 @@ 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