文件名称:jekyll-search-server:Jekyll 站点的独立搜索爬虫和 API
文件大小:36KB
文件格式:ZIP
更新时间:2024-06-29 01:52:34
Ruby
jekyll 搜索服务器 Jekyll 站点的独立搜索爬虫和 API。 先决条件 Jekyll 站点(在本地、远程或两者同时运行) Jekyll 站点使用插件。 一个正在运行的 Elasticsearch 实例() 用法 克隆 repo, cd到其中并安装依赖项: git clone git@github.com/18f/jekyll-search-server cd jekyll-search-server bundle install 通过环境变量为您的 Jekyll 站点添加 URL: JEKYLL_SEARCH_DEV_URL (默认为http://localhost:4000 ) JEKYLL_SEARCH_PROD_URL (没有默认值,如果需要可以设置) 使用单个rake任务抓取和索引: bundle exec rake pages:crawl 运行服务器并
【文件预览】:
jekyll-search-server-master
----log()
--------.keep(0B)
----bin()
--------rake(164B)
--------spring(461B)
--------rails(220B)
--------bundle(129B)
----vendor()
--------assets()
----config()
--------locales()
--------initializers()
--------application.rb(1KB)
--------routes.rb(72B)
--------boot.rb(170B)
--------secrets.yml(964B)
--------environment.rb(150B)
--------environments()
----Rakefile(249B)
----test()
--------models()
--------test_helper.rb(312B)
--------controllers()
--------mailers()
--------integration()
--------fixtures()
--------helpers()
----app()
--------models()
--------assets()
--------controllers()
--------views()
--------mailers()
--------helpers()
----CONTRIBUTING.md(1KB)
----Gemfile(1KB)
----Gemfile.lock(4KB)
----LICENSE.md(1KB)
----.gitignore(466B)
----lib()
--------tasks()
--------assets()
----public()
--------404.html(2KB)
--------robots.txt(202B)
--------500.html(1KB)
--------422.html(2KB)
--------favicon.ico(0B)
----README.md(4KB)
----config.ru(154B)