From 8be915e8bf0a0c7a017d5270d9c316e904970031 Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Sat, 6 Nov 2021 01:00:35 +0300 Subject: Create script to generate asciidoc.org redirects (#217) --- CHANGELOG.html | 1 + INSTALL.html | 1 + a2x.1.html | 1 + article-standalone.html | 6 ++++++ asciidoc-graphviz-sample.html | 6 ++++++ asciidocapi.html | 1 + faq.html | 1 + index.html | 7 ++++--- latex-filter.html | 6 ++++++ make-redirects.py | 31 +++++++++++++++++++++++++++++++ manpage.html | 1 + music-filter.html | 6 ++++++ plugins.html | 1 + slidy.html | 1 + source-highlight-filter.html | 1 + support.html | 1 + testasciidoc.html | 1 + userguide.html | 1 + 18 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 article-standalone.html create mode 100644 asciidoc-graphviz-sample.html create mode 100644 latex-filter.html create mode 100644 make-redirects.py create mode 100644 music-filter.html diff --git a/CHANGELOG.html b/CHANGELOG.html index 281bcd8..6fa7ea3 100644 --- a/CHANGELOG.html +++ b/CHANGELOG.html @@ -1,5 +1,6 @@ + Redirecting to 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 @@ + Redirecting to 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 @@ + Redirecting to 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 @@ + + + +Redirecting to 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 @@ + + + +Redirecting to 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 @@ + Redirecting to 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 @@ + Redirecting to 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 @@ -Redirecting to https://asciidoc-py.github.io - - + +Redirecting to 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 @@ + + + +Redirecting to 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(''' + + +Redirecting to 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 @@ + Redirecting to 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 @@ + + + +Redirecting to 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 @@ + Redirecting to 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 @@ + Redirecting to 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 @@ + Redirecting to 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 @@ + Redirecting to 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 @@ + Redirecting to 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 @@ + Redirecting to https://asciidoc-py.github.io/userguide.html -- cgit v1.2.1