Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec: Shwap #3205

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/github_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,27 @@ jobs:
with:
mdbook-version: "latest"

- name: Install mdbook-webinclude preprocessor
uses: actions-rs/[email protected]
with:
crate: mdbook-webinclude
version: latest
use-tool-cache: true

- name: Install mdbook-yml-header preprocessor
uses: actions-rs/[email protected]
with:
crate: mdbook-yml-header
version: latest
use-tool-cache: true

- name: Install mdbook-pagetoc preprocessor
uses: actions-rs/[email protected]
with:
crate: mdbook-pagetoc
version: latest
use-tool-cache: true

- name: Build book
run: mdbook build specs

Expand Down
1 change: 1 addition & 0 deletions specs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
book
theme
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rootulp, the theme dir can be similarly .gitignored in the app's repo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 changes: 7 additions & 3 deletions specs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ multilingual = false
src = "src"
title = "Celestia Node Specification"

[preprocessor.webinclude] # Necessary to retrieve and render external documents like CIPs
[preprocessor.yml-header] # Necessary to remove front-matter headers that mdbook cannot render
[preprocessor.pagetoc] # Generates nice and handy toc on the left side of a page

[output.html]
git-repository-url = "https://github.com/celestiaorg/celestia-node"

[preprocessor.toc]
command = "mdbook-toc"
renderer = ["html"]
# Necessary for pagetoc to work
additional-css = ["theme/pagetoc.css"]
additional-js = ["theme/pagetoc.js"]
2 changes: 1 addition & 1 deletion specs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Summary

- [WIP](./WIP.md)
- [Shwap](./shwap/spec.md)
1 change: 0 additions & 1 deletion specs/src/WIP.md

This file was deleted.

1 change: 1 addition & 0 deletions specs/src/shwap/spec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{#webinclude https://raw.githubusercontent.com/Wondertan/CIPs/cip-shwap_protocol/cips/cip-shwap_protocol.md}} <!-- markdownlint-disable -->
Loading