Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
betogrun committed Nov 15, 2024
1 parent e943cd9 commit 38613bb
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 5 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Documentation

on:
push:
branches:
- main

jobs:
documentation:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.5'
bundler-cache: true

- name: Install Dependencies
run: |
gem install yard
gem install redcarpet
- name: Generate Documentation
run: yard doc

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc
enable_jekyll: false
allow_empty_commit: true
force_orphan: true
commit_message: "Docs: Update documentation"
10 changes: 10 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--markup markdown
--markup-provider redcarpet
--readme README.md
--title 'ElectionBuddy Ruby'
--protected
--private
lib/**/*.rb
-
LICENSE.txt
CHANGELOG.md
12 changes: 7 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ source "https://rubygems.org"
# Specify your gem's dependencies in electionbuddy-ruby.gemspec
gemspec

gem "rake", "~> 13.0"

gem "debug", "~> 1.9", ">= 1.9.2"
gem "minitest", "~> 5.16"

gem "rack", "~> 3.1", ">= 3.1.8"
gem "rackup", "~> 2.2", ">= 2.2.1"
gem "rake", "~> 13.0"
gem "redcarpet", "~> 3.6"
gem "rubocop", "~> 1.21"

gem "debug", "~> 1.9", ">= 1.9.2"
gem "webrick", "~> 1.9"
gem "yard", "~> 0.9.37"
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ GEM
psych (5.1.2)
stringio
racc (1.8.1)
rack (3.1.8)
rackup (2.2.1)
rack (>= 3)
rainbow (3.1.1)
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
redcarpet (3.6.0)
regexp_parser (2.9.2)
reline (0.5.10)
io-console (~> 0.5)
Expand All @@ -57,6 +61,8 @@ GEM
stringio (3.1.1)
unicode-display_width (2.6.0)
uri (0.13.1)
webrick (1.9.0)
yard (0.9.37)

PLATFORMS
ruby
Expand All @@ -66,8 +72,13 @@ DEPENDENCIES
debug (~> 1.9, >= 1.9.2)
electionbuddy-ruby!
minitest (~> 5.16)
rack (~> 3.1, >= 3.1.8)
rackup (~> 2.2, >= 2.2.1)
rake (~> 13.0)
redcarpet (~> 3.6)
rubocop (~> 1.21)
webrick (~> 1.9)
yard (~> 0.9.37)

BUNDLED WITH
2.5.16

0 comments on commit 38613bb

Please sign in to comment.