npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ghpages-convert

v0.1.9

Published

A command line tool to convert github page templates to blogs

Downloads

28

Readme

ghpages-convert

A command line tool to convert github page templates to blogs

Build Status

Installation

Install globally so that the executible is available on the command line

npm install ghpages-convert -g

Convert

$: cd ~/myGithubPage
$: ghpages-convert
//-> your github page template will now be converted to a bloggable format for jekyll

Before and After Examples

  • Before a github pages project is converted using ghpages-convert
  • After a github pages project is converted using ghpages-convert

Motivation

Github provides nice templates to use for your applications and projects. The templates don't utilize some of the full features of Jekyll, the engine Github uses to generate and serve pages. To make the conversion of template pages to a blog type format can be time consuming and difficult.

This project takes github page templates and converts them to a bloggable jekyll format. This includes the creation of the following directories:

  • _layouts - page/post layouts
  • _includes - page/post includes such as header/footer etc
  • _posts - individual post directory
  • _assets - images and such that can be linked

ghpages-convert parses the html in the index.html file generated through github's automatic page generator and breaks up the html into the respective folders.

Steps by Step

You should follow Github instructions for how to use the Automatic Page Generator.

Once you have created your page you can skip to step 4

I have also provided a brief summary of all the instructions:

  1. In a repository, select Settings --> Automatic Page Generator
  2. Follow the instructions and pick a template that best fits
  3. Once the Automatic Page Generator is complete, your page will be available
  4. clone your repository to your machine
git clone <your repository
  1. Switch your branch to the gh-pages branch
git checkout gh-pages
  1. run ghpages-convert to convert your page
$: cd ~/myGithubPage
$: ghpages-convert
//-> your github page template will now be converted to a bloggable format for jekyll
  1. Add the added files to your git repository
$: git add _layouts/*
$: git add _posts/*
$: git add _includes/*
$: git add _assets/*
  1. Commit your changes
$: git commit -a
  1. Push changes to github
$: git push
  1. View your page using its url and start adding files to the posts directory.