Code Monkey home page Code Monkey logo

zzhack-provider's Introduction

zzhack-provider

This repository is used to provide data to zzhack, but you don't have to care about anything, just write your thinking down, and you can see your thinking is render in zzhack perfectly 🎉

Quick start

First you should install dependencies by pipenv

pipenv install

Run the follow commands in root of the project to link the zzhack CLI to global.

pipenv run setup

Run pipenv run zzh --help for more detail:

Usage: zzhack [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  analysis  Create root metadata.json
  publish   Generate corresponding metadata.json in current path
  upload    Upload the static files to CDN

Publish posts

Run pipenv run zzhack publish to publish the post which in current path, the command will create a metadata file that describe information of the post called metadata.json.

{
    "cover": "str", "title": "str", "filename": "str", "sammary": "str"
}

The metadata.json file can help zzhack app to easies know more key information about posts.

Upload posts

When you created a PR on zzhack-provider, the GitHub Actions will help you to run pipenv run zzhack upload, the zzhack CLI will create a snapshot of current project and then upload to the CDN, the zzhack app will take these data which from the CDN as rendering resource.

So you don't have to do anything, if you wanna contribute some article to zzhack, just write down as a markdown file, and create a PR the zzhack CLI will do everything you don't care about.

Analysis

For easy zzhack app read these data for render on page, the zzhack CLI will analyze the directory structure of posts and generate a root matadata file for describe this replationship between posts.

Also you don't have to care about these things, the CLI will start analyze during the CI running, and commit the change of root meatdata automatically.

LICENSE

GPL.

zzhack-provider's People

Contributors

mistricky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

mistricky

zzhack-provider's Issues

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.