From 9651af9f2b969468fa390a50b6f57644f259e935 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sun, 29 May 2022 18:05:30 +0900 Subject: [PATCH 1/6] =?UTF-8?q?USE=5FRELATIVE=5FLINK=20=E3=81=AB=E5=AF=BE?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ boostjp/templates/base.html | 8 ++++---- boostjp/templates/content.html | 6 +++--- cpprefjp/templates/base.html | 28 ++++++++++++++-------------- cpprefjp/templates/content.html | 6 +++--- markdown_to_html | 2 +- run.py | 16 +++++++++++++--- settings/boostjp.py | 1 + settings/boostjp_relative.py | 13 +++++++++++++ settings/cpprefjp.py | 2 ++ settings/cpprefjp_relative.py | 11 +++++++++++ 11 files changed, 67 insertions(+), 28 deletions(-) create mode 100644 settings/boostjp_relative.py create mode 100644 settings/cpprefjp_relative.py diff --git a/.gitignore b/.gitignore index f241645..ae630f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ *.pyc cpprefjp/site/ cpprefjp/cpprefjp.github.io/ +cpprefjp/cpprefjp.relative/ boostjp/site/ boostjp/boostjp.github.io/ +boostjp/boostjp.relative/ settings.*.cache /crsearch.json/crsearch.json diff --git a/boostjp/templates/base.html b/boostjp/templates/base.html index 94310e2..221fcb1 100644 --- a/boostjp/templates/base.html +++ b/boostjp/templates/base.html @@ -26,14 +26,14 @@ {% block rss %}{% endblock %} - - + + - + {% block mathjax %}{% endblock %} @@ -254,7 +254,7 @@ - +
{% block brand %}{% endblock %}
diff --git a/boostjp/templates/content.html b/boostjp/templates/content.html index 3482129..50e9fac 100644 --- a/boostjp/templates/content.html +++ b/boostjp/templates/content.html @@ -15,7 +15,7 @@
  • {% if child.href %} - {{ child.title|e }}{{ child.encoded_cpp_meta }} + {{ child.title|e }}{{ child.encoded_cpp_meta }} {% else %} {{ child.title|e }}{{ child.encoded_cpp_meta }} {% endif %} @@ -26,7 +26,7 @@ {% else %}
  • {% if child.href %} - {{ child.title|e }}{{ child.encoded_cpp_meta }} + {{ child.title|e }}{{ child.encoded_cpp_meta }} {% else %} {{ child.title|e }}{{ child.encoded_cpp_meta }} {% endif %} @@ -49,7 +49,7 @@
  • {% if not header.is_active and header.href %} -