Skip to content

Commit 9149c20

Browse files
committed
[#17]:svarga:docs, integrate documenter.jl with github pages
1 parent c03d20c commit 9149c20

4 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or "master" if that’s your default
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Julia
16+
uses: julia-actions/setup-julia@v1
17+
with:
18+
version: '1.11'
19+
20+
- name: Install dependencies
21+
run: julia --project=docs -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
22+
23+
- name: Build and deploy docs
24+
run: julia --project=docs docs/make.jl
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[![CI](https://github.com/vargaconsulting/tiny-crypto/actions/workflows/ci.yml/badge.svg)](https://github.com/vargaconsulting/tiny-crypto/actions/workflows/ci.yml)
22
[![codecov](https://codecov.io/gh/vargaconsulting/tiny-crypto/branch/main/graph/badge.svg)](https://codecov.io/gh/vargaconsulting/tiny-crypto)
33
[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
4+
[![DOI](https://zenodo.org/badge/950847209.svg)](https://doi.org/10.5281/zenodo.15492419)
5+
[![GitHub release](https://img.shields.io/github/v/release/vargaconsulting/tiny-crypto.svg)](https://github.com/vargaconsulting/tiny-crypto/releases)
6+
[![Documentation](https://img.shields.io/badge/docs-stable-blue)](https://vargaconsulting.github.io/tiny-crypto)
47

58
# Tiny Crypto – Exploring Cryptography with Small Prime Fields
69

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/make.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Documenter, TinyCrypto
2+
push!(LOAD_PATH,"../src/")
3+
4+
makedocs(
5+
sitename = "TinyCrypto.jl",
6+
modules = [TinyCrypto],
7+
pages = [
8+
"Home" => "index.md",
9+
"Utility Functions" => "utils.md",
10+
],
11+
)
12+
13+
deploydocs(
14+
repo = "github.com/vargaconsulting/tiny-crypto.git",
15+
devbranch = "main",
16+
)

0 commit comments

Comments
 (0)