Giter Club home page Giter Club logo

Comments (10)

maxiloc avatar maxiloc commented on July 23, 2024 2

@yyx990803 The configuration of the crawler was still the old one so the v2 version tag did not exist. Just fixed it, should be good now.

from v2.cn.vuejs.org.

Jinjiang avatar Jinjiang commented on July 23, 2024

@yyx990803 求助 - -

from v2.cn.vuejs.org.

kazupon avatar kazupon commented on July 23, 2024

@Jinjiang
it might be of your help.
vuejs/v2.vuejs.org#575 (comment)

from v2.cn.vuejs.org.

Jinjiang avatar Jinjiang commented on July 23, 2024

@kazupon Thank you. I will update it soon :-)

from v2.cn.vuejs.org.

yyx990803 avatar yyx990803 commented on July 23, 2024

@maxiloc - we accidentally overwrote the cn site with the API key for the English version, but after reverting to the key for the Chinese index the queries are now always returning empty results. Any ideas?

from v2.cn.vuejs.org.

dingyiming avatar dingyiming commented on July 23, 2024

我的错,之前从 vuejs.org 获取更新到 vuefe 改中文后,没有更改中文搜索,真抱歉

from v2.cn.vuejs.org.

Jinjiang avatar Jinjiang commented on July 23, 2024

@maxiloc It works! Thank you very much :-)

from v2.cn.vuejs.org.

u3u avatar u3u commented on July 23, 2024

@Jinjiang 谢谢 现在恢复正常了 大家辛苦了!
对了 我还有一个建议哦 我发现搜索接口返回的 url 是绝对地址 我认为应该改成相对路径
这么做有几个好处 例如这次出现的搜索结果变成英文的问题 如果 url 是相对的 那至少影响不大
还是可以跳转过去查看 还有一个就是我发现 http://cn.vuejs.org 服务器是放在国外的 有时候访问慢
就拉了一下仓库在本地部署一个 gh-pages 服务 这样会很方便 访问速度也很快 即使没有网络的时候也能查看 不过因为搜索接口返回的 url 写死了域名 这样的话在本地浏览也会跳转到 http://cn.vuejs.org

{
  "hierarchy": {
    "lvl2": "全局 API", 
    "lvl3": null, 
    "lvl0": "API", 
    "lvl1": null, 
    "lvl6": null, 
    "lvl4": null, 
    "lvl5": null
  }, 
  "url": "http://cn.vuejs.org/v2/api/#全局-API", 
  "content": null, 
  "anchor": "全局-API", 
  "objectID": "914724202", 
  "_highlightResult": {
    "hierarchy": {
      "lvl2": {
        "value": "全局 <span class=\"algolia-docsearch-suggestion--highlight\">A</span>PI", 
        "matchLevel": "full", 
        "fullyHighlighted": false, 
        "matchedWords": [
          "a"
        ]
      }, 
      "lvl0": {
        "value": "<span class=\"algolia-docsearch-suggestion--highlight\">A</span>PI", 
        "matchLevel": "full", 
        "fullyHighlighted": false, 
        "matchedWords": [
          "a"
        ]
      }
    }, 
    "hierarchy_camel": {
      "lvl2": {
        "value": "全局 <span class=\"algolia-docsearch-suggestion--highlight\">A</span>PI", 
        "matchLevel": "full", 
        "fullyHighlighted": false, 
        "matchedWords": [
          "a"
        ]
      }, 
      "lvl0": {
        "value": "<span class=\"algolia-docsearch-suggestion--highlight\">A</span>PI", 
        "matchLevel": "full", 
        "fullyHighlighted": false, 
        "matchedWords": [
          "a"
        ]
      }
    }
  }
}

from v2.cn.vuejs.org.

Jinjiang avatar Jinjiang commented on July 23, 2024

这个搜索服务是第三方提供的,本身有一定的局限性,目前这样的状态我觉得是可接受的
感谢你的建议

from v2.cn.vuejs.org.

wuliupo avatar wuliupo commented on July 23, 2024

@u3u @Jinjiang
I have fixed this url issue on my localhost: replace the ajax content.
修改第三方服务返回的字符串中的url

提交代码在这里: wuliupo@b3893e6

req.responseText.replace(/cn\.vuejs\.org/g, location.hostname + ':' + location.port);

from v2.cn.vuejs.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.