Skip to content

Commit ea4ad29

Browse files
authored
Merge pull request #229 from xml4r/dev
Dev
2 parents 5086cec + 02e168f commit ea4ad29

40 files changed

Lines changed: 2378 additions & 268 deletions

.github/workflows/docs.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'docs/**'
8+
- 'lib/**'
9+
- 'ext/**'
10+
- 'zensical.toml'
11+
- '.github/workflows/docs.yml'
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Set up Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.12'
33+
34+
- name: Set up Ruby
35+
uses: ruby/setup-ruby@v1
36+
with:
37+
ruby-version: '4.0'
38+
bundler-cache: false
39+
40+
- name: Install zensical
41+
run: pip install zensical
42+
43+
- name: Copy changelog to docs
44+
run: cp CHANGELOG.md docs/changelog.md
45+
46+
- name: Build guide docs
47+
run: zensical build --clean
48+
49+
- name: Build API reference
50+
run: rdoc --format aliki --output site/reference --title 'LibXML Ruby API' --line-numbers --charset=utf-8 --exclude lib/xml.rb --exclude lib/xml/libxml.rb --main README.md ext/**/libxml.c ext/**/ruby_xml.c ext/**/*.c lib/**/*.rb README.md
51+
52+
- name: Upload artifact
53+
uses: actions/upload-pages-artifact@v3
54+
with:
55+
path: site
56+
57+
deploy:
58+
needs: build
59+
runs-on: ubuntu-latest
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
steps:
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ website/_site
88
/ext/vc/libxml_ruby_19/Debug
99
/ext/vc/libxml_ruby_18/Debug
1010
/doc
11+
/site
12+
/rdoc
1113
/tmp
1214
/.idea
1315
/ext/vc/ipch

0 commit comments

Comments
 (0)