Commit graph

9 commits

Author SHA1 Message Date
Aiden Threadgoode
9245328bca
Updating Upworthy and Intevity (twin technologies) (#973)
* adding content for company

* removing warning emoji from upworthy

* Twin Technologies is Now Intevity

* adding location

* renaming & updating info

* reorganizing

* Removing double h

* updating dependencies
2020-10-25 13:33:42 +00:00
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
James Nylen
88d2932e18
Update npm packages (#695) 2019-10-31 23:37:35 -04:00
James Nylen
58b9cf57b0
Static site improvements (#467)
* Improve logging messages

* Make local development easier; improve docs

* Combine page-specific CSS files into one

This file is small, and later it will also contain styles that need to
apply to the whole site.

* Add "Edit this page on GitHub" links

* Remove an unneeded element

* Assign table cell classes during parsing

This way it will work with JavaScript disabled too.

* Match font weights with other styles

* Always show hovered links in gray

Before this change, already-visited links would stay red on hover.

* Minor CSS tweaks

* In main table, show company names in bold

* Add mobile styles for companies table

* Remove a couple more empty profile sections
2018-08-12 23:12:18 -05:00
James Nylen
4ee26500e3
Make the listing site work on Netlify (#460) 2018-08-11 20:41:11 -05:00
James Nylen
8942a91a85
Add automated tests for validation script (#438)
* Update node

* Add mocha and chai

* Fix npm audit issue

https://nodesecurity.io/advisories/577

* Skip some redundant errors

* Catch duplicate headings

* Update the wording of a few errors

* Detect when headings are wrapped inside another element

* Build and validate the content of each profile section

* Add tests for validation script

* Remove empty sections in existing profiles
2018-06-22 23:50:06 -05:00
James Nylen
c80a1776f5
Add a "Coming Soon" page to the Netlify site (#430) 2018-06-09 02:35:26 -05:00
James Nylen
5ba395bdc7 Upgrade marked to 0.3.12 (#387) 2018-01-11 20:53:40 +00:00
James Nylen
c7dfcb8ffd Add initial validation script (#375)
Let's do this
2017-12-17 14:31:37 +00:00