remote-jobs/test/fixtures/valid-incomplete/parsed-content/readme.html
James Nylen dac8b04fc8
Add full profile search (#763)
* Prevent duplicate company names

* Fix output indentation

* Search full profile content using lunr.js

* Remove extra stop words

This wasn't really working correctly - the stop word 'work' would leave
instances of 'working' and 'works' in the index for example.

* Change company name description from "Name" to "Company name"

* Pre-process query:

- Search for terms in AND mode, per
  https://lunrjs.com/guides/searching.html#term-presence
- Discard non-alphanumeric characters from the search
- Better handling of contractions and searching for stop words

* Display search query and results in the console

* Add special search token: _incomplete

* Add a link to search for incomplete profiles

* Revert "Add a link to search for incomplete profiles"

This reverts commit f6384c90cb.

* Add link to search documentation

* Improve search explanation appearance when it spans multiple lines

* Fix searching for contractions

Previously, searching for e.g. "don't" wasn't working correctly. After
trimming the contraction, "do" is a stop word, so it should be ignored.

* Improve "empty search" message

* Prefer matches other than "company name" in search excerpts

* Move inline scripts before external scripts

This probably doesn't matter right now due to the way the scripts are
currently structured, but it might matter one day and it's more logical
this way.

* Fix search engine index progress

* Improve script indentation

* I got 99 problems and they're all bots

* Update script exit code

When a Node.js error occurs the exit code is probably going to be 1, so
we should use a different code.

* Fix the tests

* Update documentation

This was wrong (out of date), but the correct version is obvious from
reading the code.

* Make download progress work in both Chrome and Firefox

See https://stackoverflow.com/a/32799706
2020-05-06 07:42:21 +01:00

50 lines
2.4 KiB
HTML

<h1 id="test-data">Test data</h1>
<p>This company table and its linked company profiles contain some companies that
have very little information, marked with a &#x26A0; symbol.</p>
<p>The website for AngularClass has been changed to test an edge case with company
website links.</p>
<h2 id="companies">Companies</h2>
<table id="companies-table">
<thead>
<tr>
<th>Name</th>
<th>Website</th>
<th>Region</th>
</tr>
</thead>
<tbody><tr class="company-row" id="company-row-0">
<td class="company-name"><a href="/and-yet/">&amp;yet</a></td>
<td class="company-website"><a href="https://andyet.com" target="_blank" rel="noopener noreferrer">andyet.com</a></td>
<td class="company-region">Worldwide</td>
</tr>
<tr class="company-row" id="company-row-1">
<td class="company-name"><a href="/10up/">10up</a></td>
<td class="company-website"><a href="https://10up.com/" target="_blank" rel="noopener noreferrer">10up.com</a></td>
<td class="company-region">Worldwide</td>
</tr>
<tr class="company-row" id="company-row-2">
<td class="company-name"><a href="/17hats/">17hats</a></td>
<td class="company-website"><a href="https://www.17hats.com/" target="_blank" rel="noopener noreferrer">17hats.com</a></td>
<td class="company-region">Worldwide</td>
</tr>
<tr class="company-row" id="company-row-3">
<td class="company-name"><a href="/18f/">18F</a></td>
<td class="company-website"><a href="https://18f.gsa.gov/" target="_blank" rel="noopener noreferrer">18f.gsa.gov</a></td>
<td class="company-region">USA</td>
</tr>
<tr class="company-row" id="company-row-4">
<td class="company-name"><a href="/45royale/">45royale</a> &#x26A0;</td>
<td class="company-website"><a href="http://45royale.com/" target="_blank" rel="noopener noreferrer">45royale.com</a></td>
<td class="company-region"></td>
</tr>
<tr class="company-row" id="company-row-5">
<td class="company-name"><a href="/aerolab/">Aerolab</a> &#x26A0;</td>
<td class="company-website"><a href="https://aerolab.co/" target="_blank" rel="noopener noreferrer">aerolab.co</a></td>
<td class="company-region"></td>
</tr>
<tr class="company-row" id="company-row-6">
<td class="company-name"><a href="/angularclass/">AngularClass</a> &#x26A0;</td>
<td class="company-website"><a href="http://www.wikihow.com/wikiHow:About-wikiHow" target="_blank" rel="noopener noreferrer">wikihow.com/wikiHow:About-wikiHow</a></td>
<td class="company-region">PST Timezone</td>
</tr>
</tbody></table>