diff options
author | Colin Watson <cjwatson@debian.org> | 2022-11-14 17:01:55 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-11-14 17:01:55 +0000 |
commit | fc00314c8d951c1078b5296217e0121fd74cd864 (patch) | |
tree | 9631abb37b789bd43b89cccd7470678cbf773c8b | |
parent | 37c182d4036e41b4064d63a44c522de2c0fe985f (diff) |
Add GitLab Pages site
* .gitlab-ci.yml (stages): Add deploy.
(pages): New job.
* web/development.html, web/index.html, web/man.png, web/standard.css,
web/white.css: New files.
-rw-r--r-- | .gitlab-ci.yml | 14 | ||||
-rw-r--r-- | web/development.html | 50 | ||||
-rw-r--r-- | web/index.html | 58 | ||||
-rw-r--r-- | web/man.png | bin | 0 -> 122722 bytes | |||
-rw-r--r-- | web/standard.css | 133 | ||||
-rw-r--r-- | web/white.css | 2 |
6 files changed, 257 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d764111b..440312cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ variables: GIT_DEPTH: 0 stages: + - deploy - bootstrap - build - upload @@ -24,6 +25,19 @@ pre-commit: paths: - .cache/pre-commit +pages: + stage: deploy + script: + - rm -rf public + - cp -a web public + - sed -i "s/@DATE@/$(date -I)/" public/*.html + artifacts: + paths: + - public + expire_in: 30 days + rules: + - if: $CI_COMMIT_BRANCH == "main" + bootstrap: stage: bootstrap before_script: diff --git a/web/development.html b/web/development.html new file mode 100644 index 00000000..dc859214 --- /dev/null +++ b/web/development.html @@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + +<head> +<title>man-db development</title> +<link rel="stylesheet" href="standard.css" type="text/css" /> +<link rel="stylesheet" href="white.css" type="text/css" /> +</head> + +<body> + +<h1>man-db development</h1> + +<p>To help with man-db development, you'll probably want to start by +checking out the latest code from revision control:</p> + +<pre> +git clone <a rel="vcs-git" href="https://gitlab.com/man-db/man-db" title="man-db git repository">https://gitlab.com/man-db/man-db</a> +</pre> + +<p>Then run <code>./autogen.sh</code> before starting. You'll need +<a href="https://www.gnu.org/software/autoconf/">Autoconf</a>, +<a href="https://www.gnu.org/software/automake/">Automake</a>, and +<a href="https://www.gnu.org/software/gettext/">Gettext</a>; it is usually +best to install your distribution's packages of these if available. You +may also want to have a copy of +<a href="https://www.gnu.org/software/gnulib/">Gnulib</a> handy.</p> + +<p>You should read the +<a href="https://gitlab.com/man-db/man-db/-/blob/main/docs/HACKING.md">docs/HACKING.md</a> +file.</p> + +<p>You can also just <a href="https://gitlab.com/man-db/man-db">browse the source code</a> using a web browser.</p> + +<p>There is a +<a href="https://lists.nongnu.org/mailman/listinfo/man-db-devel">mailing +list</a> for developers, although it is as yet rather quiet.</p> + +<hr /> + +<address> +This Web page is created and maintained by +<a href="mailto:cjwatson@debian.org">Colin Watson</a>. +<br /> +Last modified: @DATE@ +</address> + +</body> +</html> diff --git a/web/index.html b/web/index.html new file mode 100644 index 00000000..c738cd05 --- /dev/null +++ b/web/index.html @@ -0,0 +1,58 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + +<head> +<title>man-db, the on-line manual database</title> +<link rel="stylesheet" href="standard.css" type="text/css" /> +<link rel="stylesheet" href="white.css" type="text/css" /> +<link rel="vcs-git" href="https://gitlab.com/man-db/man-db" title="man-db git repository" /> +</head> + +<body> + +<h1>man-db, the on-line manual database</h1> + +<p><em>man-db</em> is an implementation of the standard Unix documentation +system accessed using the <code>man</code> command. It uses a Berkeley DB +database in place of the traditional flat-text whatis databases. +<em>man-db</em> is used by several popular GNU/Linux distributions, +including:</p> + +<ul> + <li><a href="https://www.archlinux.org/">Arch Linux</a></li> + <li><a href="https://www.debian.org/">Debian</a></li> + <li><a href="https://www.dragora.org/">Dragora GNU/Linux</a></li> + <li><a href="https://getfedora.org/">Fedora</a> (as of 14)</li> + <li><a href="https://www.gentoo.org/">Gentoo</a></li> + <li><a href="https://www.opensuse.org/">openSUSE</a></li> + <li><a href="https://www.ubuntu.com/">Ubuntu</a></li> +</ul> + +<p>It also compiles and runs on a number of proprietary Unix systems.</p> + +<p>For macOS, you can install <em>man-db</em> using +<a href="https://brew.sh/">Homebrew</a> with +<a href="https://github.com/Alhadis/homebrew-troff">this "tap"</a>, or +using <a href="https://www.macports.org/">MacPorts</a> with +<code>sudo port install man-db</code>.</p> + +<p>The <a href="https://gitlab.com/man-db/man-db">GitLab repository</a> +for <em>man-db</em> is updated with new releases reasonably frequently.</p> + +<p>See the <a href="development.html">development page</a> for advice on how +to get involved with development.</p> + +<p class="center"><img src="man.png" width="674" height="899" alt="man(1)" /></p> + +<hr /> + +<address> +This Web page is created and maintained by +<a href="mailto:cjwatson@debian.org">Colin Watson</a>. +<br /> +Last modified: @DATE@ +</address> + +</body> +</html> diff --git a/web/man.png b/web/man.png Binary files differnew file mode 100644 index 00000000..a38ad2d9 --- /dev/null +++ b/web/man.png diff --git a/web/standard.css b/web/standard.css new file mode 100644 index 00000000..49f99d41 --- /dev/null +++ b/web/standard.css @@ -0,0 +1,133 @@ +body { background-color: #FFFFB0; color: #000000 } +a { border: 0; } +a:link { color: #0000FF; } +a:visited { color: #800080; } +img { border: 0; } +h1 { font-family: sans-serif; + font-size: 24pt; + color: #000080; } +h1 a { color: #0000FF; } +h2 { font-family: sans-serif; + font-size: 20pt; + color: #000080; } +h2 a { color: #0000FF; } +h3 { font-family: sans-serif; + font-size: 16pt; + color: #000080; } +h3 a { color: #0000FF; } +address { font-family: sans-serif; + font-size: 10pt; } +.center { text-align: center; } +.clearright { clear: right; } +.logo { float: right; + margin-left: 5px; } +.pre { white-space: pre; } +.urgent { color: #FF0000; + font-style: italic; } +table { border-width: 0; } +table.tdtop td { + vertical-align: top; +} + +/* drop caps */ + +p.illuminated:first-letter { + font-size: 300%; + font-weight: bold; +} + +/* frame implementation */ + +#main { + position: absolute; + width: auto; + height: auto; + top: 0; + bottom: auto; + left: 160px; + right: 0; +} +#menubar { + position: fixed; + width: 150px; + height: auto; + top: 10px; + bottom: auto; + left: 10px; + right: auto; +} +#submain { + position: absolute; + width: auto; + height: auto; + top: 0; + bottom: 40px; + left: 160px; + right: 0; + overflow: scroll; +} +#submenubar { + position: fixed; + width: auto; + height: 30px; + top: auto; + bottom: 0; + left: 160px; + right: 0; + text-align: center; +} + +.navigation { + font: bold 100% Arial, Helvetica, sans-serif; +} + +.navigation { + text-align: center; +} + +.navigation a { + text-decoration: none; +} + +.navigation a:link { + color: blue; +} + +.navigation a:visited { + color: purple; +} + +.navigation a:hover { + background-color: #D0D090; +} + +.navigation a:hover:link { + color: #000088; +} + +.navigation a:hover:visited { + color: #660066; +} + +#menubar.navigation { + text-align: left; +} + +#menubar.navigation p { + margin: 8px 4px 8px 2px; +} + +#menubar.navigation a { + display: block; +} + +#menubar.navigation .subnav { + margin: 2px 2px 12px 12px; + font-size: 75%; +} + +#menubar.navigation .subnav a { + display: inline; +} + +/* vim: set sts=2 sw=2: */ diff --git a/web/white.css b/web/white.css new file mode 100644 index 00000000..cc76b040 --- /dev/null +++ b/web/white.css @@ -0,0 +1,2 @@ +body { background-color: #FFFFFF; } +a.navimage { color: #FFFFFF; border: 0; } |