Code Monkey home page Code Monkey logo

blog's Introduction

Build Status
Netlify Status

Getting started

You need:

  • node 10+
  • yarn 1.13.0

Posts are written in markdown. You can use any markdown editor you like. vscode's markdown all in one plugin is very good for rich editing markdown files.

Authoring a new post

To author a new post run yarn new:post "Your Post Name Here" a directory, and markdown file will be created for you in content/blog/Your-Post-Name-Here

Then you can author the post as normal with markdown. To run the server locally, run yarn start. Our CI system checks for spelling errors, you can run this yourself with yarn check:spell, you will be prompted to either fix your mistakes or add your mistakes to a dictionary. You can add yourself to authors/authors.json, with some basic info about yourself, and a thumbnail can be placed in content/assets/authors.

Getting your post live

To get your post live, simply make a branch, create a pull request and then get it merged. Netlify will automatically pick up on new commits into master and deploy them. Any new content must be approved by @stodesca github will enforce this automatically with its codeowner system.

Editing the code

To start the blog locally run yarn install and then run yarn start. The blog itself supports hot module reloading, so most changes you make should automatically apply in the browser.

We use less as our css processor, and css modules to import our styles into our components. Each component should have a less file with the name of component.module.less. Note the .module for gatsby to understand a less file is a css module you have to have the .module otherwise your styles won't get imported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.