Move markdown book out of src/
|
@ -1,5 +1,5 @@
|
||||||
/target/
|
/target/
|
||||||
/book/
|
/book/html/
|
||||||
|
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
.cargo
|
.cargo
|
||||||
|
|
|
@ -73,19 +73,19 @@ cargo install mdbook
|
||||||
Run any Rust tests in the markdown:
|
Run any Rust tests in the markdown:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mdbook test
|
mdbook test book
|
||||||
```
|
```
|
||||||
|
|
||||||
Render markdown as HTML:
|
Render markdown as HTML:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mdbook build
|
mdbook build book
|
||||||
```
|
```
|
||||||
|
|
||||||
Render and view the book:
|
Render and view the book:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mdbook build --open
|
mdbook build --open book
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
[book]
|
||||||
|
title = "Solana: Blockchain Rebuilt for Scale"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
build-dir = "html"
|
||||||
|
create-missing = false
|
||||||
|
|
||||||
|
[output.html]
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
|
@ -22,13 +22,13 @@ maybe_install() {
|
||||||
|
|
||||||
export PATH=$CARGO_HOME/bin:$PATH
|
export PATH=$CARGO_HOME/bin:$PATH
|
||||||
maybe_install mdbook
|
maybe_install mdbook
|
||||||
_ mdbook test
|
_ mdbook test book
|
||||||
_ mdbook build
|
_ mdbook build book
|
||||||
|
|
||||||
echo --- create book repo
|
echo --- create book repo
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
cd book/
|
cd book/html/
|
||||||
git init .
|
git init .
|
||||||
git config user.email "maintainers@solana.com"
|
git config user.email "maintainers@solana.com"
|
||||||
git config user.name "$(basename "$0")"
|
git config user.name "$(basename "$0")"
|
||||||
|
@ -40,7 +40,7 @@ echo --- publish
|
||||||
if [[ $BUILDKITE_BRANCH = master ]]; then
|
if [[ $BUILDKITE_BRANCH = master ]]; then
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
cd book/
|
cd book/html/
|
||||||
git remote add origin git@github.com:solana-labs/solana.git
|
git remote add origin git@github.com:solana-labs/solana.git
|
||||||
git push -f origin HEAD:gh-pages
|
git push -f origin HEAD:gh-pages
|
||||||
)
|
)
|
||||||
|
|
|
@ -47,8 +47,8 @@ done
|
||||||
# Build the HTML
|
# Build the HTML
|
||||||
export PATH=$CARGO_HOME/bin:$PATH
|
export PATH=$CARGO_HOME/bin:$PATH
|
||||||
maybe_install mdbook
|
maybe_install mdbook
|
||||||
_ mdbook test
|
_ mdbook test book
|
||||||
_ mdbook build
|
_ mdbook build book
|
||||||
|
|
||||||
echo --- ci/localnet-sanity.sh
|
echo --- ci/localnet-sanity.sh
|
||||||
(
|
(
|
||||||
|
|