Skip to content

整合资产路径 #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sghng opened this issue Mar 27, 2025 · 7 comments · Fixed by #210
Closed

整合资产路径 #197

sghng opened this issue Mar 27, 2025 · 7 comments · Fixed by #210

Comments

@sghng
Copy link
Member

sghng commented Mar 27, 2025

现在资产(图片等)路径散乱不统一,要在 #160 之前先把这个整理好

没有资产的,按 title.md 即可,有资产的,要统一改成 title/index.md,然后把资产挪进这个目录。

@LIUBINfighter
Copy link
Contributor

目前我的解决办法是:对有资产的文件创建文件夹,移动 .md和 图片 在同一个./title/ 文件夹下,然后修改内部的相对链接,内部就不分 /images 了。大约周末完成。

LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 27, 2025
LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 27, 2025
LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 27, 2025
@LIUBINfighter
Copy link
Contributor

Image

针对这种大跨越文件夹的资源索引行为以后尽量在sop中明确规定避免此类情况()

@sghng
Copy link
Member Author

sghng commented Mar 27, 2025

@LIUBINfighter 我马上会 push 一个文档更新,详细说明怎么样存放资产

@sghng
Copy link
Member Author

sghng commented Mar 27, 2025

@sghng sghng moved this to In progress in 飞跃手册路线图 Mar 27, 2025
@sghng
Copy link
Member Author

sghng commented Mar 27, 2025

@LIUBINfighter 建议你从你的 fork 里的 master checkout 一个分支,然后先发起一个 PR,这样我好随时 review

@sghng
Copy link
Member Author

sghng commented Mar 27, 2025

目前我的解决办法是:对有资产的文件创建文件夹,移动 .md和 图片 在同一个./title/ 文件夹下,然后修改内部的相对链接,内部就不分 /images 了。大约周末完成。

移动 .md 文件到文件夹下面的时候,要改名为 index.md,也就是 /title/index.md

LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 27, 2025
LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 27, 2025
LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 27, 2025
LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 27, 2025
@LIUBINfighter
Copy link
Contributor

自查以及互查手册:
1.搜索字段确认index.md重命名:
jpg
jpeg
png
除了少量自建在线图床之外,所有的文件名都应该是index.md

2.确认index.md内部链接更新:

搜索字段:
/image/
/images/
/img/

正则表达式(切换png|jpg|jpeg)

(?<=\./)[^/]+\.png

假如后面有人遇到相同问题可以sop

@sghng sghng linked a pull request Mar 27, 2025 that will close this issue
LIUBINfighter added a commit to LIUBINfighter/SUSTechapplication that referenced this issue Mar 28, 2025
@sghng sghng linked a pull request Mar 28, 2025 that will close this issue
sghng added a commit that referenced this issue Mar 29, 2025
* chore:  #197 assets regroup biomedical-engineering

* chore: assets regroup 2 chemistry-math (#197)

* chore: assets regroup mechanical to sdim (#197)

* chore: assets regroup|rename index.md  ([#197]

* chore: remove all ./images/ str (#197)

* chore: check index.md & url (#197)

* chore: a special case (#197)

* chore: assets regroup self-check-final (#197)

* chore: change index.md>index (#197)

* fix guanchao links

* move global assets to public

* remove redundant /index

* fix: imgs url

* updated bracket route fix script

* fix broken lins for Zeng Xian Qing

* fix broken links for Lin Yu Hang

* update bracket route script

* fix duplicate title infrontmatter

* fix image paths

* fix image paths
    modified:   docs/grad-application/finance/financial-engineering/[SG]-16-liyilin-1/index.md

* fix sustech.png path

* chore: turn off check deadlinks(  ignoreDeadLinks: true,) (#210)

* ignore dead links that is not an asset

* format a post

---------

Co-authored-by: Samuel Huang <[email protected]>
Co-authored-by: Samuel Huang <[email protected]>
@github-project-automation github-project-automation bot moved this from WIP to Done in 飞跃手册路线图 Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment