program-in-chinese / overview

中文编程的历史、现状和展望。issue 中进行相关问题的讨论.
https://zhuanlan.zhihu.com/codeInChinese
GNU General Public License v3.0
383 stars 34 forks source link

中文API文档浏览器 #165

Open nobodxbodon opened 5 years ago

nobodxbodon commented 5 years ago

源自这里。现有类似项目devdocs,但作者对多语言支持暂无意向, 但乐于外链fork项目。 先尝试fork后,添加一些中文API文档。

nobodxbodon commented 5 years ago

尝试本地搭建环境,但不幸在bundle install这步报错止步:

config.status: error: could not create libxml2.spec
...
An error occurred while installing nokogiri (1.10.1), and Bundler cannot continue.

于是仅粗略看了代码。此目录下有大多数在线文档的路径等详细信息,可以利用。比如Python的:

self.base_url = 'https://docs.python.org/3.7/'

考虑使用类似miniblink的浏览器控件,以避免对网页浏览器的依赖(目标是桌面软件而非网站)。

nobodxbodon commented 5 years ago

初步查看miniblink与其他方式集成浏览器(如java-cef)。 为节省工作量,第一步不作任何集成,提取API链接后,建立索引,添加中文词典,提供中文关键字搜索功能,点击链接后在外部浏览器中打开网页。

nobodxbodon commented 4 years ago

一些原型进展,8 月初后暂时搁置(记不清何故): 用JS Search实现客户端JSON内容索引和搜索 API 中文搜索+例程 初步演示原型 0805