First time setup:
# Build images (takes ~12mins) docker-compose build # First-time setup docker-compose run --rm web bundle install && docker-compose run --rm web yarn install
Starting the server:
yarn dev takes care of this).
_includes/2017/critical/ with sources in
Before committing, run
yarn parcel:build first.
There are also automated tests:
yarn run test --watch
Each sheet supports these metadata:
--- title: React.js layout: 2017/sheet # 'default' | '2017/sheet' # Optional: category: React updated: 2020-06-14 ads: false # Add this to disable ads weight: -5 # lower number = higher in related posts list deprecated: true # Don't show in related posts deprecated_by: /enzyme # Point to latest version prism_languages: [vim] # Extra syntax highlighting intro: | This is some *Markdown* at the beginning of the article. tags: - WIP - Featured # Special pages: # (don't set these for cheatsheets) type: home # home | article | error og_type: website # opengraph type ---
For supported prism languages:
This example sets up a redirect from
# /es2015.md --- title: ES2015 category: Hidden redirect_to: /es6 ---
_data/content.yml for chrome strings.
So you want to fork this repo? Sure, here’s what you need to know to whitelabel this:
_data/- this holds all ‘config’ for the site: ad IDs, strings, etc.
_config.ymlas well, lots of things may not apply to you.
The site devhints.io is backed by CloudFlare. Updates will take 2 days to propagate to the website by default. To make sure recent changes will propagate, use this helper script. It will give instructions on how manual selective cache purging can be done.
There are multiple ways to set meta description.
keywords (and optionally
intro). This is the easiest and the preferred
way for now.
description (and optionally