Skip to content

Commit

Permalink
first documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jfilhoGN committed Dec 9, 2024
1 parent 92032e5 commit 7f1f942
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Documentation

on:
push:
branches:
- main

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: '1.8'

- name: Install dependencies
run: |
julia --project=docs -e 'using Pkg; Pkg.instantiate()'
- name: Build documentation
run: |
julia --project=docs docs/make.jl
23 changes: 23 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version, and other tools you might need
build:
os: ubuntu-24.04
tools:
python: "3.13"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally, but recommended,
# declare the Python requirements required to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt

4 changes: 4 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name = "StressifyDocs"
version = "0.1.0"
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Stressify.jl

Welcome to the **Stressify.jl** documentation!

- **Guide**: Learn how to use Stressify.jl effectively.
- **API Reference**: Explore all public functions and modules.
11 changes: 11 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Documenter
using Stressify

makedocs(
sitename = "Stressify.jl",
pages = [
"Home" => "index.md",
"Guide" => "src/guide.md",
"API" => "src/api.md"
]
)
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx==4.5.0
sphinx-rtd-theme==1.0.0
Empty file added docs/src/api.md
Empty file.
Empty file added docs/src/guide.md
Empty file.

0 comments on commit 7f1f942

Please sign in to comment.