Skip to content

Commit 1f597b5

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

File tree

10 files changed

+44
-10
lines changed

10 files changed

+44
-10
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
ruby:
2323
- 2.6
2424
- 2.7
25-
- 3.0
25+
- "3.0"
2626
- 3.1
2727
- ruby-head
2828
- jruby

.github/workflows/generate-docs.yml

+27
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

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This results in the following Turtle:
9191
doap:developer <http://greggkellogg.net/foaf#me>;
9292
doap:documenter <http://greggkellogg.net/foaf#me>;
9393
doap:download-page <https://rubygems.org/gems/rdf-tabular>;
94-
doap:homepage <http://ruby-rdf.github.com/rdf-tabular>;
94+
doap:homepage <https://ruby-rdf.github.io/rdf-tabular>;
9595
doap:implements <http://www.w3.org/TR/tabular-data-model/>,
9696
<http://www.w3.org/TR/tabular-metadata/>,
9797
<http://www.w3.org/TR/csv2rdf/>,
@@ -165,7 +165,7 @@ It can also generate JSON output (not complete JSON-LD, but compatible with it),
165165
"@id": "https://rubygems.org/gems/rdf-tabular",
166166
"http://usefulinc.com/ns/doap#name": "RDF::Tabular",
167167
"@type": "http://usefulinc.com/ns/doap#Project",
168-
"http://usefulinc.com/ns/doap#homepage": "http://ruby-rdf.github.com/rdf-tabular",
168+
"http://usefulinc.com/ns/doap#homepage": "https://ruby-rdf.github.io/rdf-tabular",
169169
"http://usefulinc.com/ns/doap#license": "https://unlicense.org/1.0/",
170170
"http://usefulinc.com/ns/doap#shortdesc": "Tabular Data RDF Reader and JSON serializer.",
171171
"http://usefulinc.com/ns/doap#description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",

etc/doap.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name,type,homepage,license,shortdesc,description,created,programming_language,implements,category,download_page,mailing_list,bug_database,blog,developer,maintainer,documenter,maker,dc_title,dc_description,dc_date,dc_creator,isPartOf
2-
RDF::Tabular,http://usefulinc.com/ns/doap#Project,http://ruby-rdf.github.com/rdf-tabular,https://unlicense.org/1.0/,Tabular Data RDF Reader and JSON serializer.,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,Ruby,http://www.w3.org/TR/tabular-data-model/,http://dbpedia.org/resource/Resource_Description_Framework,https://rubygems.org/gems/rdf-tabular,http://lists.w3.org/Archives/Public/public-rdf-ruby/,https://github.com/ruby-rdf/rdf-tabular/issues,http://greggkellogg.net/,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,RDF::Tabular,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,http://greggkellogg.net/foaf#me,https://rubygems.org/gems/rdf
2+
RDF::Tabular,http://usefulinc.com/ns/doap#Project,https://ruby-rdf.github.io/rdf-tabular,https://unlicense.org/1.0/,Tabular Data RDF Reader and JSON serializer.,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,Ruby,http://www.w3.org/TR/tabular-data-model/,http://dbpedia.org/resource/Resource_Description_Framework,https://rubygems.org/gems/rdf-tabular,http://lists.w3.org/Archives/Public/public-rdf-ruby/,https://github.com/ruby-rdf/rdf-tabular/issues,http://greggkellogg.net/,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,RDF::Tabular,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,http://greggkellogg.net/foaf#me,https://rubygems.org/gems/rdf
33
,http://www.w3.org/ns/earl#TestSubject,,,,,,,http://www.w3.org/TR/tabular-metadata/,http://dbpedia.org/resource/Ruby_(programming_language),,,,,,,,,,,,,
44
,http://www.w3.org/ns/earl#Software,,,,,,,http://www.w3.org/TR/csv2rdf/,,,,,,,,,,,,,,
55
,,,,,,,,http://www.w3.org/TR/csv2json/,,,,,,,,,,,,,,

etc/doap.ttl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<> a doap:Project, earl:TestSubject, earl:Software ;
1111
doap:name "RDF::Tabular" ;
12-
doap:homepage <https://ruby-rdf.github.com/rdf-tabular> ;
12+
doap:homepage <https://ruby-rdf.github.io/rdf-tabular> ;
1313
doap:license <https://unlicense.org/1.0/> ;
1414
doap:shortdesc "Tabular Data RDF Reader and JSON serializer for RDF.rb."@en ;
1515
doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output for the RDF.rb library suite."@en ;

etc/earl.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ <h2>
100100
<dd property='doap:programming-language'>Ruby</dd>
101101
<dt>Home Page</dt>
102102
<dd property='doap:homepage'>
103-
<a href='http://ruby-rdf.github.com/rdf-tabular'>
104-
http://ruby-rdf.github.com/rdf-tabular
103+
<a href='https://ruby-rdf.github.io/rdf-tabular'>
104+
https://ruby-rdf.github.io/rdf-tabular
105105
</a>
106106
</dd>
107107
<dt>Developer</dt>

etc/earl.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
}
153153
],
154154
"doapDesc": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
155-
"homepage": "http://ruby-rdf.github.com/rdf-tabular",
155+
"homepage": "https://ruby-rdf.github.io/rdf-tabular",
156156
"language": "Ruby"
157157
}
158158
],

etc/earl.ttl

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<https://rubygems.org/gems/rdf-tabular> a doap:Project, earl:TestSubject, earl:Software ;
1010
doap:name "RDF::Tabular" ;
11-
doap:homepage <http://ruby-rdf.github.com/rdf-tabular> ;
11+
doap:homepage <https://ruby-rdf.github.io/rdf-tabular> ;
1212
doap:license <https://unlicense.org/1.0/> ;
1313
doap:shortdesc "Tabular Data RDF Reader and JSON serializer."@en ;
1414
doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en ;

lib/rdf/tabular/reader.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Reader < RDF::Reader
2222

2323
##
2424
# Writer options
25-
# @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Writer#options-class_method
25+
# @see https://ruby-rdf.github.io/rdf/RDF/Writer#options-class_method
2626
def self.options
2727
super + [
2828
RDF::CLI::Option.new(

rdf-tabular.gemspec

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ Gem::Specification.new do |gem|
1010
gem.license = 'Unlicense'
1111
gem.summary = "Tabular Data RDF Reader and JSON serializer."
1212
gem.description = "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."
13+
gem.metadata = {
14+
"documentation_uri" => "https://ruby-rdf.github.io/rdf-tabular",
15+
"bug_tracker_uri" => "https://github.com/ruby-rdf/rdf-tabular/issues",
16+
"homepage_uri" => "https://github.com/ruby-rdf/rdf-tabular",
17+
"mailing_list_uri" => "https://lists.w3.org/Archives/Public/public-rdf-ruby/",
18+
"source_code_uri" => "https://github.com/ruby-rdf/rdf-tabular",
19+
}
1320

1421
gem.authors = ['Gregg Kellogg']
1522
gem.email = 'public-rdf-ruby@w3.org'

0 commit comments

Comments
 (0)