summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarsey Litzenberger <dlitz@dlitz.net>2022-01-25 00:59:58 -0800
committerDarsey Litzenberger <dlitz@dlitz.net>2022-01-25 01:00:45 -0800
commit6df9268fa059e6806fce3c9bc7f1e2933ccc890b (patch)
treefc0ef70e3cd4fd5990ee22ff19a5a7d3cb53d441
parent6af88a77e8ac9b12a8afd6a1c354b510aba9f932 (diff)
downloadpycrypto-6df9268fa059e6806fce3c9bc7f1e2933ccc890b.tar.gz
gh-pages: Lift the familiar layout from www.dlitz.net
-rw-r--r--Gemfile2
-rw-r--r--_config.yml2
-rw-r--r--_layouts/default.html45
-rw-r--r--api/index.html31
-rw-r--r--api/index.md12
-rw-r--r--css/main.css89
-rw-r--r--images/dlitz-carsstop-small.jpgbin0 -> 22581 bytes
-rw-r--r--images/dlitz-favicon.pngbin0 -> 370 bytes
-rw-r--r--images/thirdparty/fork-me-on-github.pngbin0 -> 7927 bytes
-rw-r--r--index.md9
10 files changed, 155 insertions, 35 deletions
diff --git a/Gemfile b/Gemfile
index fea1678..73473ce 100644
--- a/Gemfile
+++ b/Gemfile
@@ -13,8 +13,6 @@ source "https://rubygems.org"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
-#gem "jekyll-theme-leap-day", "~> 0.2.0"
-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", group: :jekyll_plugins
diff --git a/_config.yml b/_config.yml
index bc36741..034d993 100644
--- a/_config.yml
+++ b/_config.yml
@@ -46,7 +46,7 @@ plugins:
#- jekyll-seo-tag
#- jekyll-optional-front-matter
-theme: jekyll-theme-slate
+#theme: jekyll-theme-slate
include:
- old/api/index.html
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..f33dd65
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width,maximum-scale=2">
+ <title>{{ page.title }} | PyCrypto</title>
+ <link rel="stylesheet" type="text/css" href="{{ '/css/main.css' | relative_url }}"/>
+ <link rel="shortcut icon" type="image/png" href="{{ '/images/dlitz-favicon.png' | relative_url }}"/>
+</head>
+
+<body>
+
+<a href="#PageContent" class="skip-nav-link">skip navigation</a>
+
+<div id="PageHeader">
+ <a href="https://www.dlitz.net/"><img id="PageBanner" src="{{ '/images/dlitz-carsstop-small.jpg' | relative_url }}" alt="DLitz.net" title="Back to home page" style="border: 0" /></a>
+ <div style="border-top: 2em solid #eee; padding: 1em">
+ <div><i>PyCrypto</i></div>
+ </div>
+ <div style="padding: 1em 0 0 1em">
+ <a href="https://www.pycrypto.org/">Home</a>
+ | <a href="https://github.com/pycrypto/pycrypto">GitHub</a>
+ </div>
+
+ <hr style="clear: both" />
+</div>
+
+
+<div id="PageContent" name="PageContent">
+ {{ content }}
+</div>
+
+<div id="PageFooter">
+
+ <hr style="clear: both"/>
+
+ <pre>Published with <a href="https://pages.github.com/">GitHub Pages</a></pre>
+
+</div>
+
+</body>
+
+</html>
diff --git a/api/index.html b/api/index.html
deleted file mode 100644
index 99108cf..0000000
--- a/api/index.html
+++ /dev/null
@@ -1,31 +0,0 @@
----
-layout: default
----
-<html>
-<head>
- <title>PyCrypto API Documentation</title>
-</head>
-
-<body>
-
- <h1>PyCrypto API Documentation</h1>
-
- <p>⚠️ NOTE: PyCrypto 2.x is unmaintained. These are provided for reference only.</p>
-
- <p>Choose your version:</p>
-
- <ul>
- <li><a href="current/">current</a> -&gt; 2.6</li>
- <li><a href="2.6/">2.6</a></li>
- <li><a href="2.5/">2.5</a></li>
- <li><a href="2.4/">2.4</a></li>
- <li><a href="2.3/">2.3</a></li>
- <li><a href="2.0.1/">2.0.1</a></li>
- </ul>
-
-</body>
-
-</html>
-
-<!-- vim:set tabstop=2 softtabstop=2 shiftwidth=2 textwidth=0 expandtab: -->
-
diff --git a/api/index.md b/api/index.md
new file mode 100644
index 0000000..46ee224
--- /dev/null
+++ b/api/index.md
@@ -0,0 +1,12 @@
+# PyCrypto API Documentation
+
+⚠️ NOTE: PyCrypto 2.x is unmaintained. These are provided for reference only.
+
+Choose your version:
+
+* [current](current/) → 2.6
+* [2.6](2.6/)
+* [2.5](2.5/)
+* [2.4](2.4/)
+* [2.3](2.3/)
+* [2.0.1](2.0.1/)
diff --git a/css/main.css b/css/main.css
new file mode 100644
index 0000000..10fd0f2
--- /dev/null
+++ b/css/main.css
@@ -0,0 +1,89 @@
+html, body {
+ color: #000;
+ background: #fff;
+}
+
+h1 {
+ color: #080;
+ background: #eee;
+ font-size: 15pt;
+ text-align: center;
+}
+h2 {
+ color: #080;
+}
+h3 {
+ color: #090;
+}
+h4 {
+ color: #0a0;
+}
+
+dt {
+ margin-top: 1ex;
+}
+
+dt:first-child {
+ margin-top: 0;
+}
+
+li {
+ margin-bottom: 0.5ex;
+ padding: 0;
+}
+
+#PageHeader {
+ border: none;
+ padding: 0;
+ left: 0;
+ top: 0;
+ font-family: sans-serif;
+ font-size: larger;
+ text-align: left;
+}
+
+#PageBanner {
+ padding: 0;
+ display: block;
+ float: left;
+}
+
+#PageContent {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ clear: left;
+}
+
+/* Used for formatting math */
+table.math-table { border: 0; }
+table.math-table td { padding: 0.2em 1em 0.2em 0; border: 0 }
+dl.math-dl dt { padding-bottom: 0.2em; }
+dl.math-dl dd { padding-bottom: 0.4em; }
+
+/*
+#PageContent h1:first-child,
+#PageContent h2:first-child
+{
+ margin-top: 0;
+}
+*/
+
+.skip-nav-link {
+ color: #080;
+ background: white;
+ padding: .5rem 1.5rem;
+ border-color: #080;
+ border-radius: 0 0 .25rem .25rem;
+ position: absolute;
+ left: 0.5rem;
+ top: 0;
+ transform: translateY(-120%);
+ transition: transform 325ms ease-in;
+}
+
+.skip-nav-link:focus {
+ transform: translateY(0);
+}
+
+/* vim:set ts=4 sw=4 sts=4 expandtab: */
diff --git a/images/dlitz-carsstop-small.jpg b/images/dlitz-carsstop-small.jpg
new file mode 100644
index 0000000..0f04007
--- /dev/null
+++ b/images/dlitz-carsstop-small.jpg
Binary files differ
diff --git a/images/dlitz-favicon.png b/images/dlitz-favicon.png
new file mode 100644
index 0000000..1866eda
--- /dev/null
+++ b/images/dlitz-favicon.png
Binary files differ
diff --git a/images/thirdparty/fork-me-on-github.png b/images/thirdparty/fork-me-on-github.png
new file mode 100644
index 0000000..1e19c21
--- /dev/null
+++ b/images/thirdparty/fork-me-on-github.png
Binary files differ
diff --git a/index.md b/index.md
index 46fd4c4..05e78c8 100644
--- a/index.md
+++ b/index.md
@@ -1,4 +1,9 @@
-# This software is no longer maintained.
+---
+title: This software is no longer maintained.
+---
+# PyCrypto - The Python Cryptography Toolkit
+
+## This software is no longer maintained.
**PyCrypto 2.x is unmaintained, obsolete, and contains security vulnerabilities.**
@@ -32,3 +37,5 @@ Please choose one of the following alternatives:
* [Release tarballs](./pub/dlitz/crypto/pycrypto/) <!-- mirrored from <https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/> -->
* [Mailing list archive](https://lists.dlitz.net/pipermail/pycrypto/) ([Local snapshot](./pipermail/pycrypto/))
* [PyPI](https://pypi.org/project/pycrypto/)
+
+<a href="https://github.com/pycrypto/pycrypto"><img style="position: absolute; top: 0; right: 0; border: 0;" src="{{ '/images/thirdparty/fork-me-on-github.png' | relative_url }}" alt="[PyCrypto on GitHub]"></a>