GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Redirect matplotblog to Scientific Python blog · matplotlib/matplotlib.org@2fd109d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • matplotlib.org.yml
  • templates
    • Caddyfile.j2
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎matplotlib.org.yml‎

Copy file name to clipboardExpand all lines: matplotlib.org.yml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
- devdocs
1717
- governance
1818
- ipympl
19-
- matplotblog
2019
- mpl-bench
2120
- mpl-gui
2221
- mpl-sphinx-theme
Collapse file

‎templates/Caddyfile.j2‎

Copy file name to clipboardExpand all lines: templates/Caddyfile.j2
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,31 @@ http://{{ caddy.addresses.main }}, http://{{ ansible_fqdn }} {
7474
import subproject {{ site }}
7575
{% endfor %}
7676

77+
# Moved matplotblog to Scientific Python blog.
78+
##############################################
79+
# Top-level post listings go to matplotlib tag.
80+
@matplotblog {
81+
path /matplotblog
82+
path /matplotblog/
83+
path /matplotblog/index.html
84+
path /matplotblog/posts
85+
path /matplotblog/posts/
86+
path /matplotblog/posts/index.html
87+
path /matplotblog/page
88+
path /matplotblog/page/*
89+
}
90+
redir @matplotblog https://blog.scientific-python.org/tags/matplotlib/
91+
# New blog doesn't do any post-processing of images, so go to original image.
92+
@matplotblog_processed_image {
93+
path_regexp image /matplotblog/posts/(.*)_hu[a-z0-9]+_[0-9]+_(400x300_fit|800x0_resize)_(q75_lanczos|lanczos_3).(png|jpeg|jpg)
94+
}
95+
redir @matplotblog_processed_image https://blog.scientific-python.org/posts/matplotlib/{re.image.1}.{re.image.4}
96+
# Everything else is a post or its assets, so redirect to the right post page/asset.
97+
@matplotblog_post {
98+
path_regexp post /matplotblog/posts/(.*)
99+
}
100+
redir @matplotblog_post https://blog.scientific-python.org/posts/matplotlib/{re.post.1}
101+
77102
# Hide mpl-altair until the site is fixed.
78103
redir /mpl-altair https://github.com/matplotlib/mpl-altair temporary
79104
redir /mpl-altair/* https://github.com/matplotlib/mpl-altair temporary

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.