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

feat: node-based build script #131

Merged
merged 1 commit into from
Mar 6, 2024
Merged

feat: node-based build script #131

merged 1 commit into from
Mar 6, 2024

Conversation

CjS77
Copy link
Collaborator

@CjS77 CjS77 commented Mar 6, 2024

Add a node.js-based build script so that this site can run in Cloudflare pages.

The script does the following:

  1. Downloads the specified version of mdbook from the GitHub releases page
  2. Verifies its SHA256 hash
  3. Extracts it to a temporary directory
  4. Runs mdbook build against the book.toml file in the current directory
  5. Places the built book in the temporary directory

mdbook.env (which is checked in and MUST NOT hold any secrets) allows you to set the version of mdbook and its hash.

Copy link

cloudflare-pages bot commented Mar 6, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d1a7a9b
Status:🚫  Build failed.

View logs

Add a node.js-based build script so that this site can run in Cloudflare
pages.

The script does the following:
1. Downloads the specified version of mdbook from the GitHub releases page
2. Verifies its SHA256 hash
3. Extracts it to a temporary directory
4. Runs mdbook build against the book.toml file in the current directory
5. Places the built book in the temporary directory

mdbook.env (which is checked in and MUST NOT hold any secrets) allows you to
set the version of mdbook and its hash.
@CjS77
Copy link
Collaborator Author

CjS77 commented Mar 6, 2024

ACK

@CjS77 CjS77 merged commit ead2b4d into main Mar 6, 2024
3 checks passed
@CjS77 CjS77 deleted the build-script branch March 6, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants