-
-
Notifications
You must be signed in to change notification settings - Fork 210
🐛 fix img path #521
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
🐛 fix img path #521
Conversation
|
@lukechi1219 Seems like the gif on the installation docs page is working as expected. |
|
@lukechi1219 I think I had a cached version of the docs. Thanks. |
|
@lukechi1219 Can you please also fix the gif path of the |
hi, sorry for bothering you with such a small issue... btw I think it's not about cache. It seems related to react handle base URL of the installation.gif image. when I first go to URL https://ngneat.github.io/transloco/docs/config-options , then click "Getting Started > Installation" the image show normally but if I refresh the page at https://ngneat.github.io/transloco/docs/installation the image is broken. when I open this pull request , I didn't notice it's related to refresh page, just thought maybe the relative path is wrong. |
|
@lukechi1219 That's why I saw it working for the first time, nice catch. |
|
@shaharkazaz Well, I'm not familiar with docusaurus, but I can look into it in my free time. import useBaseUrl from '@docusaurus/useBaseUrl'; <img src={useBaseUrl('/img/docusaurus.png')} /> TODO: run build and check at my local machine |
|
@shaharkazaz I've fixed the image path with @docusaurus/useBaseUrl . I run and check at my local machine and it looks good. The image will still show after I refresh the page. |
|
@lukechi1219 Nice work! Would you please commit your changes using the |
Hi @shaharkazaz , sorry I'm not sure what you mean... it's the first time in my life issue a pull request... |
|
@lukechi1219 no worries, I'll explain. Here are the steps you need:
The commit command will prompt a series of questions (you should choose 'docs' for type) that will build the formatted commit message for you, and once done, it will commit the changes. Because you already have a remote branch with commits, you will need to force push your fresh commit to make it the new HEAD. Alternatively, since these are minor changes, you can create a new branch, redo the changes, commit them via the command and open a new PR. Hope this helps. |
|
@shaharkazaz Thanks! Now I know "commit command" refers to "npm run commit". I will try it later tonight. |
@shaharkazaz , I suggest adding this step "npm run commit" in CONTRIBUTING.md , but my English is not very fluent... so just leave it to you. lol |
|
@lukechi1219 I'll need you to re-commit and skip the braking change question (just press Enter) since giving it a value is considered that this commit has a breaking change 🙂 |
image path should be handled by useBaseUrl()
|
New commit force pushed, please kindly review. |
fix ../../img/installation.gif
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information