I have make rdoc to generate the documentation of my project but now i would like to make them accessible from application so allowed (logged in users) can access/view them from my site.

Thanks in advance.

有帮助吗?

解决方案

Well, what type of application are you running? If it's something like MVC (or has a routing layer) you could probably specify some type of hook or serve them from a controller such that the path doc/<rdoc-files> was handled by a controller that would perform user-auth and then serve whatever static file the user is requesting.

You could also put everything into an IFrame that takes up the whole window (and really shouldn't be visible) and you could serve the IFrame server-side and include your authentication there.

There are really many ways in which you could prevent un-authorized users from accessing your documentation. It really just depends on what you are comfortable with.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top