Skip to content

Commit 2eb6fa5

Browse files
committed
Update
1 parent 3bcdcc5 commit 2eb6fa5

File tree

2 files changed

+71
-72
lines changed

2 files changed

+71
-72
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,19 @@ jobs:
3939

4040
- name: Test
4141
run: |
42-
sudo apt-get install scdoc mandoc man2html
43-
mkdir mandoc man2html mandoc-css scd2html
44-
45-
scdoc < docs/man/rpmkeys.8.scd | mandoc -Thtml > mandoc/rpmkeys.8.html
46-
scdoc < docs/man/rpmkeys.8.scd | man2html -r - > man2html/rpmkeys.8.html
42+
mkdir blah
4743
podman run -v $PWD:/srv:z --workdir /srv -it --rm fedora \
48-
sh -c "dnf install -y scd2html; scd2html < docs/man/rpmkeys.8.scd > scd2html/rpmkeys.8.html"
44+
sh -c 'dnf install -y scd2html; \
45+
pre="---\nlayout: default\ntitle: Hello\n---\n"; \
46+
for file in docs/man/*.scd; do \
47+
out=$(basename $file | sed "s/scd$/html/"); \
48+
echo "$pre" > blah/$out; \
49+
scd2html < $file >> blah/$out; \
50+
done'
4951
50-
sed -i 's|<b>\(rpm[^<]*\)</b>(\(.\))|<a href="\1.\2.html">\1(\2)</a>|g' scd2html/rpmkeys.8.html
52+
sed -i 's|<b>\(rpm[^<]*\)</b>(\(.\))|<a href="\1.\2.html">\1(\2)</a>|g' blah/rpm*.html
5153
52-
sudo mkdir _site/man/{mandoc,man2html,scd2html}
53-
sudo mv mandoc/rpmkeys.8.html _site/man/mandoc/
54-
sudo mv man2html/rpmkeys.8.html _site/man/man2html/
55-
sudo mv scd2html/rpmkeys.8.html _site/man/scd2html/
54+
sudo mv blah/rpm*.html _site/man/
5655
5756
- name: Upload artifact
5857
uses: actions/upload-pages-artifact@v3

docs/_layouts/default.html

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2-
<!--
3-
Design by Free CSS Templates
4-
http://www.freecsstemplates.org
5-
Released for free under a Creative Commons Attribution 2.5 License
6-
7-
Name : Vertebrata
8-
Description: A two-column, fixed-width design with dark color scheme.
9-
Version : 1.0
10-
Released : 20100423
11-
12-
-->
13-
<html xmlns="http://www.w3.org/1999/xhtml">
14-
<head>
15-
<meta name="keywords" content="" />
16-
<meta name="description" content="" />
17-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
18-
<title>{{ page.title }}</title>
19-
<link href="https://rpm.org/stylesheets/style.css" rel="stylesheet" type="text/css" media="screen" />
20-
<link rel="shortcut icon" type="image/x-icon" href="{{ site.baseurl }}/_layouts/favicon.ico">
21-
</head>
22-
<body>
23-
<div id="wrapper">
24-
<div id="header">
25-
<a href="https://rpm.org/index.html">
26-
<div id="logo">
27-
</div>
28-
</a>
29-
</div>
30-
<!-- end #header -->
31-
<div id="menu">
32-
<ul>
33-
<li><a href="https://rpm.org/index.html">Home</a></li>
34-
<li><a href="https://rpm.org/documentation.html">Documentation</a></li>
35-
<li><a href="https://rpm.org/download.html">Download</a></li>
36-
<li><a href="https://rpm.org/community.html">Community</a></li>
37-
<li><a href="https://rpm.org/contribute.html">Contribute</a></li>
38-
<li><a href="https://rpm.org/roadmap.html">Roadmap</a></li>
39-
<li><a href="https://rpm.org/about.html">About</a></li>
40-
</ul>
41-
</div>
42-
<!-- end #menu -->
43-
<div id="page">
44-
<div id="page-bgtop">
45-
<div id="page-bgbtm">
46-
<div id="content">
47-
{{ content }}
48-
<div style="clear: both;">&nbsp;</div>
49-
</div>
50-
<div style="clear: both;">&nbsp;</div>
51-
</div>
52-
</div>
53-
</div>
54-
<!-- end #page -->
55-
</div>
56-
<div id="footer">
57-
<p>rpm.org</p>
58-
</div>
59-
<!-- end #footer -->
60-
</body>
61-
</html>
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<!--
3+
Design by Free CSS Templates
4+
http://www.freecsstemplates.org
5+
Released for free under a Creative Commons Attribution 2.5 License
6+
7+
Name : Vertebrata
8+
Description: A two-column, fixed-width design with dark color scheme.
9+
Version : 1.0
10+
Released : 20100423
11+
12+
-->
13+
<html xmlns="http://www.w3.org/1999/xhtml">
14+
<head>
15+
<meta name="keywords" content="" />
16+
<meta name="description" content="" />
17+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
18+
<title>{{ page.title }}</title>
19+
<link href="https://rpm.org/stylesheets/style.css" rel="stylesheet" type="text/css" media="screen" />
20+
<link rel="shortcut icon" type="image/x-icon" href="{{ site.baseurl }}/_layouts/favicon.ico">
21+
</head>
22+
<body>
23+
<div id="wrapper">
24+
<div id="header">
25+
<a href="https://rpm.org/index.html">
26+
<div id="logo">
27+
</div>
28+
</a>
29+
</div>
30+
<!-- end #header -->
31+
<div id="menu">
32+
<ul>
33+
<li><a href="https://rpm.org/index.html">Home</a></li>
34+
<li><a href="https://rpm.org/documentation.html">Documentation</a></li>
35+
<li><a href="https://rpm.org/download.html">Download</a></li>
36+
<li><a href="https://rpm.org/community.html">Community</a></li>
37+
<li><a href="https://rpm.org/contribute.html">Contribute</a></li>
38+
<li><a href="https://rpm.org/roadmap.html">Roadmap</a></li>
39+
<li><a href="https://rpm.org/about.html">About</a></li>
40+
</ul>
41+
</div>
42+
<!-- end #menu -->
43+
<div id="page">
44+
<div id="page-bgtop">
45+
<div id="page-bgbtm">
46+
<div id="content">
47+
{{ content }}
48+
<div style="clear: both;">&nbsp;</div>
49+
</div>
50+
<div style="clear: both;">&nbsp;</div>
51+
</div>
52+
</div>
53+
</div>
54+
<!-- end #page -->
55+
</div>
56+
<div id="footer">
57+
<p>rpm.org</p>
58+
</div>
59+
<!-- end #footer -->
60+
</body>
61+
</html>

0 commit comments

Comments
 (0)