Skip to content

Commit

Permalink
Update redeploy instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez committed Dec 12, 2023
1 parent 48acc73 commit e3405fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -29,4 +29,4 @@

# Ignore mdbook related files
/mdbook/code/
.procedures/mdbook-toc.js
.procedures/mdbook-toc.mjs
7 changes: 5 additions & 2 deletions .procedures/redeploy-book.sh
@@ -1,14 +1,17 @@
#!/usr/bin/env bash

# This file assumes the following things are true:
# - `./procedures/mdbook-toc.js` has been built via the `Projects/Mdbook-ToC`
# - `./procedures/mdbook-toc.mjs` has been built (see https://github.com/JordanMartinez/purescript-mdbook-generator)
# project.
# - `../purescript-jordans-reference-site` is a git repo and exists
# - `../purescript-jordans-reference-site/src` folder exists
# - `../purescript-jordans-reference-site/src/Summary-header.md` file exists
# - `mdbook` and `mdbook-mermaid` have been installed and are on your PATH:
# - https://github.com/rust-lang/mdBook/tree/master
# - https://github.com/badboy/mdbook-mermaid

# Regenerate `mdbook`'s source content
node .procedures/mdbook-toc.js -r "." -o "../purescript-jordans-reference-site/src" -s "Summary-header.md" -t ".ci,.git,.github,.procedures,.travis,output,book,mdbook,old-changelogs"
node .procedures/mdbook-toc.mjs -r "." -o "../purescript-jordans-reference-site/src" -s "Summary-header.md" -t ".ci,.git,.github,.procedures,.travis,output,book,mdbook,old-changelogs,CHANGELOG.d"

cd ../purescript-jordans-reference-site

Expand Down

0 comments on commit e3405fe

Please sign in to comment.