File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Documentation
2+
3+ on :
4+ push :
5+ branches :
6+ - release
7+ - next
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ deploy-documentation :
14+ name : Generate and Publish RDoc
15+ runs-on : ubuntu-latest
16+ concurrency :
17+ group : deploy-documentation-${{ github.ref_name }}
18+ cancel-in-progress : true
19+
20+ steps :
21+ - uses : actions/checkout@v6
22+ - uses : ruby/setup-ruby@v1
23+
24+ - name : Generate Documentation
25+ run : bundle exec rake rdocs:generate
26+
27+ - name : Deploy to GitHub Pages
28+ uses : JamesIves/github-pages-deploy-action@v4
29+ with :
30+ branch : gh-pages
31+ folder : docs/rdoc
32+ target-folder : docs/rdoc/${{ github.ref_name }}
33+ clean : false
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require "rdoc/task"
4+
5+ namespace :rdoc do
6+ RDoc ::Task . new ( :generate ) do |rdoc |
7+ rdoc . title = "Mavis Documentation"
8+ rdoc . main = "README.md"
9+ rdoc . rdoc_dir = "docs/rdoc"
10+ rdoc . rdoc_files . include (
11+ "README.md" ,
12+ "docs/*.md" ,
13+ "lib/**/*.rb" ,
14+ "app/**/*.rb"
15+ )
16+ end
17+ end
You can’t perform that action at this time.
0 commit comments