Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
shlu committed Jan 8, 2025
1 parent 9305f76 commit e2c10db
Show file tree
Hide file tree
Showing 7 changed files with 344 additions and 338 deletions.
2 changes: 1 addition & 1 deletion IDA/ida9.0/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ win/linux安装包与RC1一样
## 参考

- https://bbs.kanxue.com/thread-283917.htm
-
- https://auth.lol/ 原始大佬
660 changes: 331 additions & 329 deletions README.md

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>

{{ content }}

<blockquote>
<p>声明:转载请注明出处,原文地址:<a href="{{ site.url }}{{ page.url }}">{{ site.title }}</a></p>
</blockquote>

<!-- comments config BEGIN -->

<!-- src="https://giscus.app/client.js" 自定义client.js-->
Expand Down Expand Up @@ -68,11 +72,9 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>

<!-- comments config END -->

{% if site.github.private != true and site.github.license %}
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
This site is open source. {% github_edit_link "Improve this page" %}.
©2025 {{ site.title }}
</div>
{% endif %}
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
<script>anchors.add();</script>
Expand Down
1 change: 1 addition & 0 deletions assets/icon-directory.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icon-file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions generate_directory_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def generate_markdown_index(
indent = ' ' * level
# 确保目录路径以 '/' 结尾,并进行 URL 编码
dir_link = urllib.parse.quote(relative_path.rstrip('/') + '/')
markdown += f"{indent}- 📁 [{item}/]({dir_link})\n"
markdown += f"{indent}- ![dir](./assets/icon-directory.svg) [{item}/]({dir_link})\n"
# 递归查找子目录
markdown += generate_markdown_index(
base_path,
Expand All @@ -109,7 +109,7 @@ def generate_markdown_index(
exclude_files=combined_exclude_files
)
if sub.strip():
markdown += f"{indent}- 📁 {item}/\n"
markdown += f"{indent}- ![dir](./assets/icon-directory.svg) {item}/\n"
markdown += sub

# 如果是文件,并且是 Markdown 文件,且未被排除
Expand All @@ -122,15 +122,15 @@ def generate_markdown_index(
indent = ' ' * level
file_name = os.path.splitext(item)[0]
file_link = urllib.parse.quote(relative_path)
markdown += f"{indent}- 📄 [{file_name}]({file_link})\n"
markdown += f"{indent}- ![dir](./assets/icon-file.svg) [{file_name}]({file_link})\n"

return markdown

def main():
base_path = '.' # 仓库根目录

# 全局排除的目录和文件(可自行按需设置)
exclude_dirs = ['.git', '.github', 'node_modules', '__pycache__']
exclude_dirs = ['.git', '.github', 'node_modules', '__pycache__', '_site','_layouts','_plugins', '.jekyll-cache', '.idea']
exclude_files = [] # 如需全局排除特定文件,可在此添加

start_marker = '<!-- DIRECTORY INDEX START -->'
Expand Down
2 changes: 1 addition & 1 deletion git/git提交规范.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1. 提交信息格式
## 1. 提交信息格式

Git 提交信息通常包含三部分:
- **类型(type)**:表示本次提交的类别,例如:`feat`(新特性)、`fix`(修复 bug)等。
Expand Down

0 comments on commit e2c10db

Please sign in to comment.