GithubHelp home page GithubHelp logo

patarapolw / git-publisher Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.38 MB

Similar to browsing in GitHub, but support custom markdown, YAML front matter, Pug and commenting

License: MIT License

JavaScript 53.89% TypeScript 46.11%
pug hyperpug showdownjs utterances

git-publisher's Introduction

git-publisher

Similar to browsing on GitHub website, but these are supported.

  • YAML front matter stripping
  • Custom markdown, via Showdown.js extension
  • Pug, with custom filters
  • Custom page type, e.g., Reveal-md, with type: reveal in YAML front matter

Installation

Simply clone the repo, and create .env with

ROOT=<PATH_TO_FOLDER_CONTAINING_DATA_FOLDER>

For example, you might add the repo as a submodule or repo in repo, for easy navigation.

Running and building

Navigate to the repo, and run yarn serve or yarn build

To publish to GitHub, you might be interested in gh-pages

  • It is as simple as gh-pages -d dist

Editing the config

You can edit the config in git-publisher.(json|js|yaml), or "gitPublisher" field in package.json.

The defaults can be viewed at /default-config.js.

Commenting

Commenting system is based on https://utteranc.es/. To enable it, you will have to

  • Make sure the repo is public, otherwise your readers will not be able to view the issues/comments.
  • Make sure the utterances app is installed on the repo, otherwise users will not be able to post comments.

You can also use disqus, by providing "disqus" field in git-publisher.(json|js|yaml).

Real result

Plans

  • YAML front matter usage, e.g. to search in a search box

git-publisher's People

Contributors

patarapolw avatar

Stargazers

 avatar

Watchers

 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.