Skip to content

Commit f3da7dd

Browse files
committed
Update documentation links to use gh-pages, and add action to publish gh-pages from Yard docs.
1 parent 9b3a5fe commit f3da7dd

5 files changed

Lines changed: 37 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
ruby:
3030
- 2.6
3131
- 2.7
32-
- 3.0
32+
- "3.0"
3333
- 3.1
3434
- ruby-head
3535
- jruby
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build & deploy documentation
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: Update gh-pages with docs
11+
steps:
12+
- name: Clone repository
13+
uses: actions/checkout@v2
14+
- name: Set up Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: "3.1"
18+
- name: Install required gem dependencies
19+
run: gem install yard --no-document
20+
- name: Build YARD Ruby Documentation
21+
run: yardoc
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./doc/yard
27+
publish_branch: gh-pages

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ task :clean do
2424
end
2525

2626
file "etc/doap.nt" do
27-
sh "rdf serialize https://ruby-rdf.github.com/rdf/etc/doap.ttl --output etc/doap.nt"
27+
sh "rdf serialize https://ruby-rdf.github.io/rdf/etc/doap.ttl --output etc/doap.nt"
2828
end
2929

3030
FOAF_SUBJECTS = {

lib/rdf/spec/http_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
before(:each) {WebMock.disable_net_connect!}
1313
after(:each) {WebMock.allow_net_connect!}
1414

15-
let(:uri) {"http://ruby-rdf.github.com/rdf/etc/doap.nt"}
15+
let(:uri) {"https://ruby-rdf.github.io/rdf/etc/doap.nt"}
1616

1717
let(:opened) {double("opened")}
1818
before(:each) do

rdf-spec.gemspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ Gem::Specification.new do |gem|
1010
gem.license = 'Unlicense'
1111
gem.summary = 'RSpec extensions for RDF.rb.'
1212
gem.description = 'RDF.rb extension that provides RSpec matchers and shared examples for RDF objects.'
13+
gem.metadata = {
14+
"documentation_uri" => "https://ruby-rdf.github.io/rdf-spec",
15+
"bug_tracker_uri" => "https://github.com/ruby-rdf/rdf-spec/issues",
16+
"homepage_uri" => "https://github.com/ruby-rdf/rdf-spec",
17+
"mailing_list_uri" => "https://lists.w3.org/Archives/Public/public-rdf-ruby/",
18+
"source_code_uri" => "https://github.com/ruby-rdf/rdf-spec",
19+
}
1320

1421
gem.authors = ['Arto Bendiken', 'Ben Lavender', 'Gregg Kellogg']
1522
gem.email = 'public-rdf-ruby@w3.org'

0 commit comments

Comments
 (0)