Skip to content

Commit

Permalink
init mdbook
Browse files Browse the repository at this point in the history
Signed-off-by: xermicus <[email protected]>
  • Loading branch information
xermicus committed Jun 8, 2024
1 parent 10c7045 commit 0d39b28
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
node_modules
artifacts
tmp
package-lock.json
package-lock.json
/*.html
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install format test test-solidity test-cli test-integration test-workspace clean
.PHONY: install format test test-solidity test-cli test-integration test-workspace clean docs docs-build

install: install-bin install-npm

Expand Down Expand Up @@ -48,6 +48,12 @@ bench: install-bin
clippy:
cargo clippy --all-features --workspace --tests --benches

docs: docs-build
mdbook serve --open docs/

docs-build:
mdbook test docs/ && mdbook build docs/

clean:
cargo clean ; \
rm -rf node_modules ; \
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
6 changes: 6 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[book]
authors = ["Cyrill Leutwiler <[email protected]>"]
language = "en"
multilingual = false
src = "src"
title = "revive documentation"
3 changes: 3 additions & 0 deletions docs/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# revive documentation

Welcome to the revive Solidty compiler documentation!
13 changes: 13 additions & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Summary

[Introduction](README.md)

- [User guide](./user-guide.md)
- [Installation](./installation.md)
- [CLI guide](./cli.md)
- [Hardhat integration](./hardhat.md)
- [Architecture](./architecture.md)
- [Overview](./overview.md)
- [Runtime](./runtime.md)
- [Differences from EVM](./differences-evm.md)
- [Development](./development.md)
1 change: 1 addition & 0 deletions docs/src/architecture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Architecture
1 change: 1 addition & 0 deletions docs/src/cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# CLI guide
1 change: 1 addition & 0 deletions docs/src/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Development
1 change: 1 addition & 0 deletions docs/src/difference-evm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Differences from EVM
1 change: 1 addition & 0 deletions docs/src/differences-evm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Differences from EVM
1 change: 1 addition & 0 deletions docs/src/hardhat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Hardhat integration
1 change: 1 addition & 0 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Installation
1 change: 1 addition & 0 deletions docs/src/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Overview
3 changes: 3 additions & 0 deletions docs/src/runtime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Runtime

revive compiled contract target the new contracts pallet runtime environment API.
1 change: 1 addition & 0 deletions docs/src/user-guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# User guide

0 comments on commit 0d39b28

Please sign in to comment.