Replies: 1 comment 1 reply
-
In HTML files, the / symbol represents the "root directory". In docsify, see #1891. I chose to use the cdn address directly in the quote. https://github.com/lufei/notes/blob/master/docs/images/hyperf/hyperf-1.png
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
I want to use a specific GitHub Repository to deploy a static webpage (as I've already used xxx.github.io). I use docsify to deploy it. This is my related repo(https://github.com/djl777/note), and this is my website(https://djl777.github.io/note/#/) generated.
When I upload my folder, I find some trouble: my avg and font are not changed, the relative code is in https://github.com/djl777/note/blob/master/index.html:
So I change them to:
and it does works, but does not work in my local port becauses of the ‘note’, so this is not a good idea.
I want to know why the root directory is xxx.github.io instead of xxx.github.io/note, and how to change it.
supplement(another problem)
Today I find another problem in https://github.com/djl777/note/blob/master/README.md.
You could see my homepage that the test1(/static/image/avator.jpg) is ok but not test2(/note/static/image/avator.jpg), this disproves my previous conjecture about absolute paths, and I'm very confused as to why
index.html
behaves differently thanREADME.md
. Is this not a github page issue but something to do with docify?Besides, my setting is:
![image](https://private-user-images.githubusercontent.com/73270782/275688800-be4cfd40-4171-4628-80d4-025ed85dcee6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NjI2OTMsIm5iZiI6MTcxOTc2MjM5MywicGF0aCI6Ii83MzI3MDc4Mi8yNzU2ODg4MDAtYmU0Y2ZkNDAtNDE3MS00NjI4LTgwZDQtMDI1ZWQ4NWRjZWU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE1NDYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyZTgyMWQ4M2I3ODZjOTFmN2MyZWY2ODgyYjZmMDA5OGJlYzY4YTEzNzg2ZDdlNzI0ZDk5ZWE3MDQ2NWIwNzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3ZYBLU2t7akao8faX7U8sugFSy0QA0GU5kTy005-8nU)
Beta Was this translation helpful? Give feedback.
All reactions