├── cypress.json ├── .gitignore ├── cypress ├── fixtures │ └── example.json ├── plugins │ └── index.js ├── support │ ├── index.js │ └── commands.js └── integration │ ├── github-link.spec.js │ └── search_spec.js ├── docs ├── test-page-02.md └── test-page-01.md ├── scripts ├── node │ ├── validateNodeVersion.js │ └── validateNPMVersion.js └── createVersionValidator.js ├── README.md ├── src ├── pages │ ├── 404.js │ └── index.js ├── components │ ├── NavigationItem.js │ ├── VerticalNavigationList.js │ └── Search.js ├── layouts │ ├── index.js │ └── index.css └── templates │ └── default.js ├── .travis.yml ├── LICENSE.md ├── gatsby-config.js ├── CONTRIBUTING.md ├── gatsby-node.js ├── package.json ├── package-scripts.js └── .gitattributes /cypress.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Project dependencies 2 | node_modules 3 | .cache/ 4 | # Build directory 5 | public/ 6 | .DS_Store 7 | cypress/screenshots 8 | -------------------------------------------------------------------------------- /cypress/fixtures/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Using fixtures to represent data", 3 | "email": "hello@cypress.io", 4 | "body": "Fixtures are a great way to mock data for responses to routes" 5 | } -------------------------------------------------------------------------------- /docs/test-page-02.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Page 2 3 | keywords: 4 | - three 5 | - two 6 | --- 7 | 8 | # Page 2 9 | 10 | Page 2 11 | 12 | # Matching Keywords 13 | 14 | * two 15 | * three 16 | -------------------------------------------------------------------------------- /docs/test-page-01.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Test Page 1 3 | keywords: 4 | - one 5 | - two 6 | --- 7 | 8 | # Page 1 9 | 10 | This is the first test page. 11 | 12 | # Matching Keywords 13 | 14 | * one 15 | * two 16 | -------------------------------------------------------------------------------- /scripts/node/validateNodeVersion.js: -------------------------------------------------------------------------------- 1 | const {engines} = require('../../package.json'); 2 | const createVersionValidator = require('../createVersionValidator'); 3 | 4 | createVersionValidator('node')(engines.node, process.version); -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Demo Site 2 | 3 | Demo site for `gatsby-plugin-elasticlunr-search` 4 | 5 | # Contributing 6 | 7 | See [`CONTRIBUTING.md`](./CONTRIBUTING.md) 8 | 9 | # Other Resources 10 | 11 | * [`LICENSE`](./LICENSE.md) 12 | -------------------------------------------------------------------------------- /src/pages/404.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const NotFoundPage = () => ( 4 |
You just hit a route that doesn't exist...the sadness.
7 |
28 |
29 | 19 | Welcome to demo site for the 20 | 21 | gatsby-plugin-elasticlunr-search plugin 22 | . 23 |
24 |25 | Test page 1 and Page 2 are indexed by title, as seen in 26 | the nav menu to the left, and by keyword. Try searching 27 | for "one", "two" or " 28 | three 29 | ". The words "one" and "two" are keywords associated with Test 30 | page 1 and "two" and "three" are associated with Page 2. 31 |
32 |Of course you can also try searching by words matching the title.
33 |