-
Notifications
You must be signed in to change notification settings - Fork 3
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
When build in local mode, links in sidebar will be absolute so it doesn't work on a different machine #9
Comments
@nantas how about integrating a tiny server with the generated files? Actually I created a file server https://github.com/yorkie/serve which is only 140KB and most importantly, it doesn't require any runtime. So that we can remove the local mode, and use HTTP anywhere, the file protocol really sucks on us, isn't it :-) |
it would be great if we can get around http server so that we can create api docs that are portable and can be opened anywhere. Just need to figure out how to get each page's path when rendering template. |
It works great for viewing pages locally, but I found a glitch when access generated website. To reproduce:
So what happened when user jump from index page to a module page? Why the link is not updated? |
Another issue, But it doesn't work for properties and methods link (sidebar-members): In one of those sidebar-member template, I can get one level of parent correctly So I cannot get |
try this one |
nah, in sidebar-member template it can only go up one level, |
ok, a tad more research shows me the discussion on handlebars issues: handlebars-lang/handlebars.js#182 This problem has been confirmed long ago and the solution is to use http://handlebarsjs.com/reference.html I've updated the #10 to fix sidebar member links. |
sidebar link updating issue is located, see discussion in #10 (comment) |
If use relative path in sidebar links, open a file in a sub folder will cause relative path to be invalid:
href='./modules/my_page.html'
works forindex.html
, but inmodules/my_page.html
, the link will bemodules/modules/my_page.html
The text was updated successfully, but these errors were encountered: