Coder Social home page Coder Social logo

log's Introduction

#log

A Public Log File

##Getting Started

Before you do anything in the repo:

  • you will need to install Node.js and the Node Package Manager.

    Sometimes NPM doesn't install alongside Node, sometimes it does. Your mileage may vary (typically depending on the mechanism by which you get Node).

    If you use *nix, node is not the correct package in your distribution's repositories; you need to install nodejs.

    Sometimes the node command is not registered properly. This usually depends on the mechanism by which you installed Node. If node -v just isn't a command on your system, you can try this. In most cases, all you need to do is sudo ln -s /usr/bin/nodejs /usr/bin/node. For Windows users, make sure the install directory for node is in your system %PATH%.

  • you will need to install Grunt globally

    Run this command in your terminal:
    sudo npm install -g grunt-cli

  • you will need to install the application dependencies and manipulate them as needed

    Run this command in your terminal:
    grunt setup

Building the log

The following steps are necessary to compile the application:
grunt parsePosts

Writing content

Writing a new post requires three easy steps:

  1. Write the content
  • Posts are stored in src/content/posts
  • Posts are written in HTML
  1. Update the index
  • The application needs index information for each post
  • The index is located at src/content/data/index.json
  • The fields required are title, safeTitle, published, author, and link
    • safeTitle should match the filename of the HTML post and be URL friendly.
    • published can be in the future and the post will not appear in the application until the designated time.
    • link is a link relating to the author. Clicking on the author will take a user to the link.
  1. Rebuild the application with the new content
  • re-run the parse command: grunt parsePosts

Generally, the Grunt task to build the post content and compile the application will halt the build if a major error is detected with content or the index. Harmless mismatches will be reported without causing failure, and breaking issues will cause the task to fail.

log's People

Contributors

rockerest avatar

Watchers

 avatar James Cloos avatar

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.