-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: intial implementation based on rustdoc and mermaid (#966)
Co-authored-by: TaniaSaleem <[email protected]> Co-authored-by: Metadata Update Bot <[email protected]> Co-authored-by: penumbra23 <[email protected]>
- Loading branch information
1 parent
5790ba1
commit 7f035fc
Showing
31 changed files
with
1,306 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: "Init Rust" | ||
description: "Install Rust version with Timechain dependencies" | ||
|
||
inputs: {} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install dependencies | ||
shell: bash | ||
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | ||
- name: Install rust toolchain | ||
shell: bash | ||
run : rustup show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Generate docs | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docker/**' | ||
- 'infra/**' | ||
- 'js/**' | ||
- 'scripts/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Initialize Rust | ||
uses: ./.github/actions/rust-init | ||
- name: Build docs | ||
run: cargo doc --no-deps --document-private-items --workspace | ||
- name: Upload docs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: docs | ||
if-no-files-found: error | ||
path: target/doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Generate docs | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'docker/**' | ||
- 'infra/**' | ||
- 'js/**' | ||
- 'scripts/**' | ||
branches: | ||
- 'development' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
deploy-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Initialize Rust | ||
uses: ./.github/actions/rust-init | ||
- name: Build docs | ||
run: cargo doc --no-deps --document-private-items --workspace | ||
- name: Assemble structure | ||
env: | ||
DOCS_HIDEOUT: an8ohgahmoot6ro8ieReib9micau0Oow | ||
run: | | ||
cp -r target/doc target/docs/$DOCS_HIDEOUT | ||
cp docs/robots.txt target/docs/$DOCS_HIDEOUT | ||
- name: Deploy docs | ||
uses: actions/upload-pages-artifact@v4 | ||
with: | ||
path: target/docs |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule analog-gmp
updated
5 files
+1 −1 | foundry.toml | |
+43 −37 | src/Gateway.sol | |
+1 −0 | src/utils/ERC1967.sol | |
+3 −3 | src/utils/GasUtils.sol | |
+2 −2 | test/Gateway.t.sol |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[package] | ||
name = "analog-docs" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
timechain-node = { path = "../node" } | ||
|
||
timechain-runtime = { path = "../runtime" } | ||
|
||
pallet-elections = { path = "../pallets/elections" } | ||
pallet-members = { path = "../pallets/members" } | ||
pallet-networks = { path = "../pallets/networks" } | ||
pallet-shards = { path = "../pallets/shards" } | ||
pallet-tasks = { path = "../pallets/tasks" } | ||
pallet-timegraph = { path = "../pallets/timegraph" } | ||
|
||
chronicle = { path = "../chronicle" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Disallow: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//! # Analog Timechain Documentation | ||
//! | ||
//! This crate is a *minimal* but *always-accurate* documentation | ||
//! of the Timechain protocol. | ||
//! | ||
//! ## The Timechain Protocol | ||
//! | ||
//! The Analog Timechain is a substrate based solochain. It utilizes | ||
//! Babe and Grandpa to power its [`timechain_node`] and [`timechain_runtime`]. | ||
//! | ||
//! On top of that it runs the Timechain protocol to attest and relay data | ||
//! between various chains. This protocol is executed by shards of [`chronicle`] nodes. | ||
//! | ||
//! ## Custom pallets | ||
//! | ||
//! - [`pallet_elections`] | ||
//! - [`pallet_members`] | ||
//! - [`pallet_networks`] | ||
//! - [`pallet_shards`] | ||
//! - [`pallet_tasks`] | ||
//! - [`pallet_timegraph`] | ||
//! | ||
#![warn(rustdoc::broken_intra_doc_links)] | ||
#![warn(rustdoc::private_intra_doc_links)] | ||
#![doc(html_favicon_url = "https://www.analog.one/images/favicon.ico")] | ||
#![doc(html_logo_url = "https://www.analog.one/images/logo.svg")] | ||
#![doc(issue_tracker_base_url = "https://github.com/Analog-Labs/timechain/issues")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.