Commit graph

8 commits

Author SHA1 Message Date
James Nylen
13ba307516
Improve error message for filename/title mismatch (#520) 2019-01-07 20:40:24 -05: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
2682009c9f
Parse profile content into a JSON+HTML data structure (#445)
* A few minor tweaks

* Add toIdentifierCase function

* Use toIdentifierCase function to make profile content more code-friendly

* Improve "incomplete profile" indicator checks

In order to properly check the "incomplete profile" indicators, the
"Company blurb" section should exist.

* Return parsed HTML content for each company

* Test parsing of invisible "variation selector" character

* Strip out invisible "variation selector" character
2018-06-25 02:16:13 -05:00
James Nylen
5cce269df4
Refactor validation logic into a short script and a larger library file (#444)
* Refactor validation logic into a short script and a larger library file

* Add unit tests for utility functions
2018-06-25 00:00:12 -05:00
James Nylen
cbd3073fd6
Validate whether profiles marked as incomplete are actually incomplete (#443) 2018-06-24 21:42:33 -05:00
James Nylen
780627bf1e
Better handling of apostrophes in company names (#441) 2018-06-23 00:20:24 -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