summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2021-11-06 01:00:35 +0300
committerGitHub <noreply@github.com>2021-11-05 12:00:35 -1000
commit8be915e8bf0a0c7a017d5270d9c316e904970031 (patch)
tree571bbf7e8577b34f5bd6f1a9d5d6f2528b020709
parent4b37b7e6a262d7b488eb9812839a151f84a26722 (diff)
downloadasciidoc-py3-gh-pages.tar.gz
Create script to generate asciidoc.org redirects (#217)gh-pages
-rw-r--r--CHANGELOG.html1
-rw-r--r--INSTALL.html1
-rw-r--r--a2x.1.html1
-rw-r--r--article-standalone.html6
-rw-r--r--asciidoc-graphviz-sample.html6
-rw-r--r--asciidocapi.html1
-rw-r--r--faq.html1
-rw-r--r--index.html7
-rw-r--r--latex-filter.html6
-rw-r--r--make-redirects.py31
-rw-r--r--manpage.html1
-rw-r--r--music-filter.html6
-rw-r--r--plugins.html1
-rw-r--r--slidy.html1
-rw-r--r--source-highlight-filter.html1
-rw-r--r--support.html1
-rw-r--r--testasciidoc.html1
-rw-r--r--userguide.html1
18 files changed, 71 insertions, 3 deletions
diff --git a/CHANGELOG.html b/CHANGELOG.html
index 281bcd8..6fa7ea3 100644
--- a/CHANGELOG.html
+++ b/CHANGELOG.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/CHANGELOG.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/CHANGELOG.html">
<link rel="canonical" href="https://asciidoc-py.github.io/CHANGELOG.html">
diff --git a/INSTALL.html b/INSTALL.html
index 930bfb6..28cc393 100644
--- a/INSTALL.html
+++ b/INSTALL.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/INSTALL.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/INSTALL.html">
<link rel="canonical" href="https://asciidoc-py.github.io/INSTALL.html">
diff --git a/a2x.1.html b/a2x.1.html
index f7ff2ef..6b9d449 100644
--- a/a2x.1.html
+++ b/a2x.1.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/a2x.1.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/a2x.1.html">
<link rel="canonical" href="https://asciidoc-py.github.io/a2x.1.html">
diff --git a/article-standalone.html b/article-standalone.html
new file mode 100644
index 0000000..6670777
--- /dev/null
+++ b/article-standalone.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
+<title>Redirecting to https://asciidoc-py.github.io/article-standalone.html</title>
+<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/article-standalone.html">
+<link rel="canonical" href="https://asciidoc-py.github.io/article-standalone.html">
diff --git a/asciidoc-graphviz-sample.html b/asciidoc-graphviz-sample.html
new file mode 100644
index 0000000..25b4d96
--- /dev/null
+++ b/asciidoc-graphviz-sample.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
+<title>Redirecting to https://asciidoc-py.github.io/asciidoc-graphviz-sample.html</title>
+<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/asciidoc-graphviz-sample.html">
+<link rel="canonical" href="https://asciidoc-py.github.io/asciidoc-graphviz-sample.html">
diff --git a/asciidocapi.html b/asciidocapi.html
index f53bf4b..906d20d 100644
--- a/asciidocapi.html
+++ b/asciidocapi.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/asciidocapi.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/asciidocapi.html">
<link rel="canonical" href="https://asciidoc-py.github.io/asciidocapi.html">
diff --git a/faq.html b/faq.html
index 12c2194..3ee9c19 100644
--- a/faq.html
+++ b/faq.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/faq.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/faq.html">
<link rel="canonical" href="https://asciidoc-py.github.io/faq.html">
diff --git a/index.html b/index.html
index d92c39c..f2e4bf0 100644
--- a/index.html
+++ b/index.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
-<title>Redirecting to https://asciidoc-py.github.io</title>
-<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/">
-<link rel="canonical" href="https://asciidoc-py.github.io/">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
+<title>Redirecting to https://asciidoc-py.github.io/index.html</title>
+<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/index.html">
+<link rel="canonical" href="https://asciidoc-py.github.io/index.html">
diff --git a/latex-filter.html b/latex-filter.html
new file mode 100644
index 0000000..3cc1a07
--- /dev/null
+++ b/latex-filter.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
+<title>Redirecting to https://asciidoc-py.github.io/latex-filter.html</title>
+<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/latex-filter.html">
+<link rel="canonical" href="https://asciidoc-py.github.io/latex-filter.html">
diff --git a/make-redirects.py b/make-redirects.py
new file mode 100644
index 0000000..7686077
--- /dev/null
+++ b/make-redirects.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+
+links = [
+ 'CHANGELOG',
+ 'INSTALL',
+ 'a2x.1',
+ 'article-standalone',
+ 'asciidocapi',
+ 'asciidoc-graphviz-sample',
+ 'faq',
+ 'index',
+ 'latex-filter',
+ 'manpage',
+ 'music-filter',
+ 'plugins',
+ 'slidy',
+ 'source-highlight-filter',
+ 'support',
+ 'testasciidoc',
+ 'userguide',
+]
+
+for link in links:
+ with open('{}.html'.format(link), 'w', newline='\n') as file:
+ file.write('''<!DOCTYPE html>
+<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
+<title>Redirecting to https://asciidoc-py.github.io/{0}.html</title>
+<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/{0}.html">
+<link rel="canonical" href="https://asciidoc-py.github.io/{0}.html">
+'''.format(link))
diff --git a/manpage.html b/manpage.html
index 191bb5f..fd2d6bc 100644
--- a/manpage.html
+++ b/manpage.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/manpage.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/manpage.html">
<link rel="canonical" href="https://asciidoc-py.github.io/manpage.html">
diff --git a/music-filter.html b/music-filter.html
new file mode 100644
index 0000000..5e59f80
--- /dev/null
+++ b/music-filter.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
+<title>Redirecting to https://asciidoc-py.github.io/music-filter.html</title>
+<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/music-filter.html">
+<link rel="canonical" href="https://asciidoc-py.github.io/music-filter.html">
diff --git a/plugins.html b/plugins.html
index d2a55c0..71c23ff 100644
--- a/plugins.html
+++ b/plugins.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/plugins.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/plugins.html">
<link rel="canonical" href="https://asciidoc-py.github.io/plugins.html">
diff --git a/slidy.html b/slidy.html
index f4adee0..dd88ddf 100644
--- a/slidy.html
+++ b/slidy.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/slidy.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/slidy.html">
<link rel="canonical" href="https://asciidoc-py.github.io/slidy.html">
diff --git a/source-highlight-filter.html b/source-highlight-filter.html
index b2c99c4..8dfcde2 100644
--- a/source-highlight-filter.html
+++ b/source-highlight-filter.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/source-highlight-filter.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/source-highlight-filter.html">
<link rel="canonical" href="https://asciidoc-py.github.io/source-highlight-filter.html">
diff --git a/support.html b/support.html
index b14627c..0312de0 100644
--- a/support.html
+++ b/support.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/support.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/support.html">
<link rel="canonical" href="https://asciidoc-py.github.io/support.html">
diff --git a/testasciidoc.html b/testasciidoc.html
index c03f09d..438b746 100644
--- a/testasciidoc.html
+++ b/testasciidoc.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/testasciidoc.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/testasciidoc.html">
<link rel="canonical" href="https://asciidoc-py.github.io/testasciidoc.html">
diff --git a/userguide.html b/userguide.html
index 246d9d2..c6b1560 100644
--- a/userguide.html
+++ b/userguide.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
+<!-- This file was generated by make-redirects.py, please don't modify it manually -->
<title>Redirecting to https://asciidoc-py.github.io/userguide.html</title>
<meta http-equiv="refresh" content="0; URL=https://asciidoc-py.github.io/userguide.html">
<link rel="canonical" href="https://asciidoc-py.github.io/userguide.html">