From 29dab1dad9a4f6dc4cc27e0fd3655691405e15ca Mon Sep 17 00:00:00 2001 From: Routhleck Date: Mon, 28 Aug 2023 06:58:01 +0000 Subject: [PATCH] deploy: 1836fd2f546bd2cc831765bfc18c3a046ad339a0 --- assets/css/main.css | 2 +- atom.xml | 2 +- image_url_process.py => markdown_process.py | 50 +++++++++++++-------- 3 files changed, 33 insertions(+), 21 deletions(-) rename image_url_process.py => markdown_process.py (57%) diff --git a/assets/css/main.css b/assets/css/main.css index 57a51e7..da65e47 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -558,7 +558,7 @@ pre .k, pre .kd, pre .kn, pre .kp, pre .kr, pre .kt, pre .javascript .function { .links-of-author { margin-top: 20px; } .links-of-author a { display: inline-block; vertical-align: middle; margin-right: 10px; margin-bottom: 10px; border-bottom-color: #555; font-size: 13px; } -.links-of-author a:before { display: inline-block; vertical-align: middle; margin-right: 3px; content: " "; width: 4px; height: 4px; border-radius: 50%; background: magenta; } +.links-of-author a:before { display: inline-block; vertical-align: middle; margin-right: 3px; content: " "; width: 4px; height: 4px; border-radius: 50%; background: #47ffff; } .links-of-blogroll { font-size: 13px; } diff --git a/atom.xml b/atom.xml index d2367d2..394877c 100644 --- a/atom.xml +++ b/atom.xml @@ -1,4 +1,4 @@ -Jekyll2023-08-28T05:19:28+00:00routhleck.github.io/BrainPy-course-notes/atom.xmlBrainPy course notesNotes from the first training course on Neural Computational ModelingSichao HeBrainPy course notes2023-08-27T00:00:00+00:002023-08-27T00:00:00+00:00routhleck.github.io/BrainPy-course-notes/2023/08/27/BrainPy-course-notes<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> +Jekyll2023-08-28T06:56:50+00:00routhleck.github.io/BrainPy-course-notes/atom.xmlBrainPy course notesNotes from the first training course on Neural Computational ModelingSichao HeBrainPy course notes2023-08-27T00:00:00+00:002023-08-27T00:00:00+00:00routhleck.github.io/BrainPy-course-notes/2023/08/27/BrainPy-course-notes<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async="" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> diff --git a/image_url_process.py b/markdown_process.py similarity index 57% rename from image_url_process.py rename to markdown_process.py index 64abae6..50b9206 100644 --- a/image_url_process.py +++ b/markdown_process.py @@ -2,11 +2,7 @@ import os -def replace_img_url_1(input_path, out_path): - # 读取文件内容 - with open(input_path, "r", encoding="utf-8") as file: - content = file.read() - +def replace_img_url_1(content): # 对于 ![image name](Notes.assets/image-000.png) 格式的替换 pattern1 = r'!\[.*?\]\((Notes\.assets/.*?\.(png|jpg|jpeg|gif|bmp))\)' replacement1 = r'!\[.*?\](/assets/images/\1)' @@ -17,16 +13,10 @@ def replace_img_url_1(input_path, out_path): replacement2 = r'