简体   繁体   English

我可以使用/适应Kohana用户指南模块来为我的应用程序创建帮助页面吗?

[英]Can I use/adapt the Kohana userguide module to create help pages for my application?

I'd like to create a userguide for the application I'm building using the Kohana framework, and I'm wondering if there's a way I can use the Kohana userguide module for this purpose. 我想为使用Kohana框架构建的应用程序创建用户指南,并且我想知道是否有一种方法可以为此目的使用Kohana用户指南模块。

I understand how to add userguide info for new modules that I create, and how to include my classes in the API, but I want to build a second, separate userguide for the actual application user, as opposed to the app developers. 我了解如何为创建的新模块添加用户指南信息,以及如何在API中包含我的类,但是我想为实际的应用程序用户(而不是应用程序开发人员)构建第二个单独的用户指南。

At first, I thought I'd just try adding app help pages to the main userguide at APPPATH/guide. 起初,我以为我只是尝试将应用程序帮助页面添加到APPPATH / guide的主要用户指南中。 I tried adding a "application/guide" directory, and put a file in there called menu.md, but that just ended up replacing the Kohana menu in the userguide. 我尝试添加“应用程序/指南”目录,并在其中放置一个名为menu.md的文件,但最终只是替换了用户指南中的Kohana菜单。 After renaming the file to menu.myapp.md, it doesn't show up at all. 将文件重命名为menu.myapp.md后,它根本不会显示。

So then it occurs to me that I could simple edit modules/userguide/guide/menu.md to add sections for my app, and likewise add markdown files for each app component. 因此,我想到可以简单地编辑模块/用户指南/指南/menu.md为我的应用添加部分,并为每个应用组件添加markdown文件。 But really it would be much better to have a completely separate userguide for app users since the Kohana documentation isn't relevant for them. 但实际上,为应用程序用户提供完全独立的用户指南会更好,因为Kohana文档与他们无关。

What's the best way to go about this? 最好的方法是什么? Should I create a duplicate of the entire userguide module and modify the routing, &c.? 我是否应该创建整个用户指南模块的副本并修改路由&c。 Or is there some way to set up both userguides using the one version of the module? 还是有某种方法可以使用该模块的一个版本来设置两个用户指南? Or am I barking up the wrong tree altogether? 还是我完全把错误的树种了? Is there some other module/approach that would be better for building "Help" pages for the app? 还有其他一些模块/方法会更好地为应用程序构建“帮助”页面吗?

Thanks in advance for your help! 在此先感谢您的帮助!

Yes, you can make docs for your application with the userguide. 是的,您可以使用用户指南为您的应用制作文档。 If you want examples, check out these links: 如果您需要示例,请查看以下链接:

Note that you'll still get "api docs" and everything else, unless you change the config to hide them. 请注意,除非更改配置以隐藏它们,否则您仍将获得“ api docs”及其他所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM