Skip to content
New issue

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

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

Already on GitHub? # to your account

Subdirectory to point to a branch #153

Closed
Ehesp opened this issue Apr 27, 2017 · 2 comments
Closed

Subdirectory to point to a branch #153

Ehesp opened this issue Apr 27, 2017 · 2 comments

Comments

@Ehesp
Copy link

Ehesp commented Apr 27, 2017

Hey!

I'm working on a repo, and there's currently a v2 branch which where we'd like to have separate docs to master. Locally I can get this working, but when pushing it to the repo it doesn't work.

  1. First I made a v2 directory in master, with an index.html, where I point the bathPath to the branch (here):
basePath: 'https://raw.githubusercontent.com/wix/react-native-navigation/v2/docs/',
  1. I make some files (no index.html) in the v2 branch (here).

  2. Booting this locally I can now switch between the master docs (http://localhost:3000/#/) and the v2 docs (http://localhost:3000/v2/#/) fine.

  3. Pushing this to the server, I get null content (https://wix.github.io/react-native-navigation/v2/#/). When I look at the network requests, it's trying to load the raw github content from:
    https://wix.github.io/raw.githubusercontent.com/wix/react-native-navigation/v2/docs/README.md

For some reason the wix.github.io is prepended to the URL, causing a 404.

Is this expected, or do I need to do something else? Cheers!

@QingWei-Li
Copy link
Member

Fixed in 3.6.4

@Ehesp
Copy link
Author

Ehesp commented Apr 28, 2017

Awesome cheers :D

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants