Skip to content

Commit

Permalink
init mdbook
Browse files Browse the repository at this point in the history
  • Loading branch information
AtHeartEngineer committed Aug 21, 2023
1 parent 5acbe75 commit 332b376
Show file tree
Hide file tree
Showing 16 changed files with 57 additions and 31 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: github pages
on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2

- name: Install cargo-sort from git
uses: baptiste0928/cargo-install@v2
with:
crate: book-summary
- run: book-summary -n ./src -s cryptkeeper guides references -y

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- run: mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
6 changes: 6 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[book]
authors = ["AtHeartEngineer", "0xIsk", "0xmad"]
language = "en"
multilingual = false
src = "src"
title = "CryptKeeper Documentation"
31 changes: 0 additions & 31 deletions guides/integrating-cryptkeeper/README.md

This file was deleted.

1 change: 1 addition & 0 deletions src/#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# References
16 changes: 16 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Summary

- [Cryptkeeper](#)
- [Features](cryptkeeper/features.md)
- [Overview](cryptkeeper/overview.md)
- [Guides](#)
- [Contributing](guides/contributing.md)
- [Integration](#)
- [Connect to Extension](guides/integration/connect-to-extension.md)
- [Create Identity](guides/integration/create-identity.md)
- [Generate Proof](guides/integration/generate-proof.md)
- [Inject Client](guides/integration/inject-client.md)
- [Zkitter Examples](guides/integration/zkitter-examples.md)
- [References](#)
- [Faq](references/faq.md)
- [Terms](references/terms.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 332b376

Please sign in to comment.