docs: add demo usage
This commit is contained in:
Родитель
05aa5ed35d
Коммит
a74161865c
|
@ -2,9 +2,9 @@
|
|||
"name": "electron-search",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": "Algolia search index for Electron APIs, Tutorials, Packages, and Repos",
|
||||
"description": "Algolia search index data for Electron APIs, Tutorials, Packages, and Repos",
|
||||
"main": "index.json",
|
||||
"repository": "https://github.com/electron/electron-search",
|
||||
"repository": "https://github.com/electron/electron-algolia-index",
|
||||
"author": "zeke",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
@ -12,12 +12,14 @@
|
|||
"pretest": "npm run build",
|
||||
"test": "tape test.js | tap-spec && standard --fix",
|
||||
"lint": "standard --fix",
|
||||
"demo": "budo demo.js --live --no-debug --open --css demo.css",
|
||||
"prestart": "npm run build",
|
||||
"start": "budo demo.js --live --no-debug --open --css demo.css",
|
||||
"repl": "local-repl"
|
||||
},
|
||||
"devDependencies": {
|
||||
"budo": "^11.2.0",
|
||||
"cheerio": "^1.0.0-rc.2",
|
||||
"electron-apps": "^1.2899.0",
|
||||
"electron-i18n": "^1.86.0",
|
||||
"instantsearch.js": "^2.7.4",
|
||||
"is-url": "^1.2.4",
|
||||
|
|
21
readme.md
21
readme.md
|
@ -1,6 +1,6 @@
|
|||
# electron-search
|
||||
# electron-algolia-index
|
||||
|
||||
> Algolia search index for Electron APIs, Tutorials, Packages, and Repos
|
||||
> Algolia search index data for Electron APIs, Tutorials, Packages, and Repos
|
||||
|
||||
This project collects Electron-related documentation from various sources
|
||||
and assembles it into a single JSON object for consumption by the Algolia
|
||||
|
@ -13,6 +13,23 @@ Tutorials | [electron-i18n](https://github.com/electron/i18n#usage)
|
|||
Packages | [electron-npm-packages](https://ghub.io/electron-npm-packages)
|
||||
Repos | [electron/dependent-repos](https://github.com/electron/dependent-repos)
|
||||
|
||||
## Questions for Algolia Folks
|
||||
|
||||
- how do we see the context object that is passed to the hit template?
|
||||
- how can we use a different HTML template per data type?
|
||||
- refinementList in demo.js is not working
|
||||
|
||||
## Usage
|
||||
|
||||
Try out the demo search interface:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/electron/electron-algolia-index
|
||||
cd electron-algolia-index
|
||||
npm install
|
||||
npm start
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
|
Загрузка…
Ссылка в новой задаче