Skip to content

Commit

Permalink
Add mdbook githu action
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Jul 8, 2024
1 parent 816e1e3 commit 0a8769f
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: GitHub pages

on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "latest"

- name: Build book
run: cd docs && mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
7 changes: 7 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[book]
authors = ["Daniel Perez"]
language = "en"
multilingual = false
src = "src"
title = "Eclair Documentation"
description = "Eclair: a Solidity Interpreter"
10 changes: 10 additions & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Summary

[Overview](./overview.md)

# Getting Started

- [Installation](./installation.md)
- [Configuration](./configuration.md.md)

# Reference
Empty file added docs/src/configuration.md
Empty file.
1 change: 1 addition & 0 deletions docs/src/configuration.md.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Configuration
1 change: 1 addition & 0 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Installation
Empty file added docs/src/overview.md
Empty file.

0 comments on commit 0a8769f

Please sign in to comment.