remote-jobs/site
Ramaiah Kethana a3612b2a5e
Feature/added target blank external icon for links (#999)
* added external link image and also added to build script

* added target blank and external link icons in company page

* added external link icon and update indentation

* fixed children nodes have a element issue

* updated validation html with new external url's

* added internal and external url checking

* updated test files with email _blank condtion excluded

* 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

* Update scopic-software.md (#992)

Added Office locations to scopic-software.md

* Updated details for CoreOS (#1010)

* Update README.md with coreos

* Update coreos.md

* Add Thorn (#1015)

* Add Thorn to README

* Add thorn.md company profile

* Add Thorn remote status detail

* Adding designcode  (#994)

* Update README.md

* Create designcode.md

* Update designcode.md

* Update designcode.md

* Update designcode.md

* Update README.md

* Update designcode.md

* Update README.md

* Update README.md

* Update designcode.md

* feature: add MongoDB company profile (#1003)

* Adding company profile for Scandit (#1005)

* Added profile for Scandit

* Added link to the company profile for Scandit

* Details company profile Sutherland (#1006)

* Add more infos sutherland

* Add profile infos for Sutherland

* Added Interpersonal Frequency company info (#1013)

* Added Interpersonal Frequency company info

* Added region for Interpersonal Frequency in README.md

* added mozzila (#1014)

Co-authored-by: Marija <simicmariya@gmail.com>

* Adding Hopper to list (#990)

* adding Hopper to readme

* adding hopper

* fixing line break

* fixing line issue in remote status

* fixes

* removing mozzila

* Detail suse profile (#1007)

* Update suse.md

* Update README.md

* Updated reg ex to accept urls without http or https

Co-authored-by: Aiden Threadgoode <64971702+a-thread@users.noreply.github.com>
Co-authored-by: danishirfannn <73023221+danishirfannn@users.noreply.github.com>
Co-authored-by: Aadarsh Baid <baidaadarsh@gmail.com>
Co-authored-by: amplifi <amplifi@users.noreply.github.com>
Co-authored-by: snehaj27 <69983797+snehaj27@users.noreply.github.com>
Co-authored-by: Adrienne Tacke <adriennetacke@users.noreply.github.com>
Co-authored-by: Nitin Gupta <gniting@users.noreply.github.com>
Co-authored-by: Simon Sassi <dualprodu@gmail.com>
Co-authored-by: Oscar Montes <oscmcojc1@live.com.mx>
Co-authored-by: mariyasimic <70208378+mariyasimic@users.noreply.github.com>
Co-authored-by: Marija <simicmariya@gmail.com>
Co-authored-by: ngutierrez31 <ngutierrez131@gmail.com>
2020-10-29 22:45:48 +00:00
..
assets Feature/added target blank external icon for links (#999) 2020-10-29 22:45:48 +00:00
templates Feature/added target blank external icon for links (#999) 2020-10-29 22:45:48 +00:00
README.md Static site improvements (#467) 2018-08-12 23:12:18 -05:00

Static site generator

Overview

This folder contains the template files needed to generate the static site for this repo ( https://remoteintech.company/ ).

The code that parses the site's data from the Markdown files in this repository is located in bin/build-site.js and lib/index.js.

On each new change to master or to a GitHub pull request, if there are no data validation errors, the site is built and deployed to Netlify (the domain mentioned above for the master branch, or a temporary subdomain for pull requests).

The static site uses a layout and CSS copied from https://blog.remoteintech.company/ which is a site hosted on WordPress.com, and the site builder code uses swig as an HTML templating engine.

Development

If you submit any changes as a pull request, GitHub and Netlify will automatically validate, build, and deploy a preview of the site for you.

For longer-running or more complicated changes, though, it can be useful to run the site locally. To make this work, you should be using the version of Node.js specified in the .nvmrc file. Other versions may work but have not been tested.

Run npm install to install dependencies.

Then run npm start to build and serve the site locally.

You can also use nodemon to automatically rebuild and reload the site when you make changes:

npm install -g nodemon
nodemon bin/serve-site.js

If you just want the data structure used to build the site, you can do this:

~/code/remote-jobs $ node
> const { parseFromDirectory } = require( './lib' );
undefined
> const data = parseFromDirectory( '.' );
undefined
> Object.keys( data );
[ 'ok',
  'profileFilenames',
  'profileHeadingCounts',
  'companies',
  'readmeContent' ]
> Object.keys( data.companies[ 0 ] )
[ 'name',
  'isIncomplete',
  'websiteUrl',
  'websiteText',
  'shortRegion',
  'linkedFilename',
  'profileContent' ]
...