Skip to content
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

Build creates wrong links #111

Closed
ipa-swk opened this issue Nov 22, 2018 · 2 comments
Closed

Build creates wrong links #111

ipa-swk opened this issue Nov 22, 2018 · 2 comments

Comments

@ipa-swk
Copy link

ipa-swk commented Nov 22, 2018

I have a docs folder including multiple md, mdx and js files which are linked from the index.md file.
When I build the docs folder on Windows x0 build docs, it creates a dist folder including multiple folders for each file together with an index.html file. When I open index.html , I see all links but they do not work since they are pointing to wrong location. If there is an echo.md file, then the location of the link is creates as:

file:///C:/echo

@jxnblk
Copy link
Member

jxnblk commented Nov 24, 2018

You’ll need to run a local dev server to test the dist folder locally

@ipa-swk
Copy link
Author

ipa-swk commented Nov 26, 2018

Thanks for help. These steps solved my issue:

npm install -g http-server
cd \local-path-to-dist
http-server

Open your browser and go to the address http://localhost:8080

@ipa-swk ipa-swk closed this as completed Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants