Fix image links with baseUrl

Summary:
When using baseUrl in site config, it adds a prefix to all link paths.

But for assets, it doesn't work if you refer to them as `docs/assets/...`, you have to use just `assets/...`. Source: https://github.com/facebook/Docusaurus/issues/861

Reviewed By: passy

Differential Revision: D20796933

fbshipit-source-id: 2346e42b8b548f576a1e143f56ee5236eab55073
This commit is contained in:
John Knox
2020-04-02 03:12:06 -07:00
committed by Facebook GitHub Bot
parent cfb77148f7
commit 5ad8106e3f
20 changed files with 29 additions and 29 deletions

View File

@@ -99,7 +99,7 @@ If you experience errors such as `Undefined symbol: associated type descriptor f
1. Go to the tab `Build Settings`;
1. Search for `LD_RUNPATH_SEARCH_PATHS` (make sure that `All` is selected);
1. Double-click `Runpath Search Paths` and, in the dialog that opens, click on the plus button at the bottom-left corner and paste `/usr/lib/swift $(inherited)` there;
![Screenshot showing the places mentioned in the first steps](/docs/assets/troubleshooting-react-native-ios-swift.png)
![Screenshot showing the places mentioned in the first steps](assets/troubleshooting-react-native-ios-swift.png)
1. Now search for `LIBRARY_SEARCH_PATHS`;
1. Double-click `Library Search Paths` and, in the dialog that opens, add the following items:
@@ -112,6 +112,6 @@ If you experience errors such as `Undefined symbol: associated type descriptor f
_Note: all of them should be added as `non-recursive` (the default)._
In the end it should look like this:
![Screenshot showing the places mentioned in the last steps](/docs/assets/troubleshooting-react-native-ios-swift-2.png)
![Screenshot showing the places mentioned in the last steps](assets/troubleshooting-react-native-ios-swift-2.png)
1. Now you can run your build normally.