GithubHelp home page GithubHelp logo

kushaldas / khata Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 3.0 304 KB

Look at https://kushaldas.in for the result

License: GNU General Public License v3.0

Rust 25.38% HTML 5.47% CSS 46.14% JavaScript 23.00%

khata's Introduction

Khata: The writing pad

This is the Rust implementation of Shonku project.

This is kind of stable, I am using it for long enough now for my blog.

Need nightly rust

rustup default nightly

To build from the source for normal systems

cargo build --features shadow --release

The shadow feature will enable -e/--exe to get details about the executable. But, in case you want to run it under WASI, then build it using the following command.

cargo build --target wasm32-wasi --release

How to use?

You will the following directory structure.

|-> templates
|-> pages
|-> posts
|-> output
    |
    |-> posts
    |-> pages
    |-> categories
    |-> assets

You can make them all as

mkdir -p pages posts output/{posts,pages,categories}
cp -r assets output/

To use WASI

cp ./target/wasm32-wasi/release/khata.wasm ./
wasmtime --dir=. khata.wasm -- -h

Create a new blog post

./khata --new
wasmtime --dir=. khata.wasm -- --new

Build the posts after any change

./khata
wasmtime --dir=. khata.wasm

To build the updated/new posts.

To rebuild the whole site

./khata --rebuild
wasmtime --dir=. khata.wasm -- --rebuild

To rebuild the whole site.

To view the help

./khata -h
wasmtime --dir=. khata.wasm -- -h

To view all the help options.

We have default templates and assets in the git repo.

To view which binary you are using (when you enable shadow feature)

./khata -e

khata's People

Contributors

kushaldas avatar saptaks avatar girish946 avatar

Stargazers

Santhosh Veer avatar Thibaud Colas avatar FURY 999 avatar Mohit Bansal (Philomath) avatar Tejas Sanap avatar Shrimadhav U K avatar Jarosław avatar Devdutt Shenoi avatar Mike Sampson avatar

Watchers

 avatar James Cloos avatar Mario Jason Braganza avatar  avatar  avatar

khata's Issues

[Fix] Overflow Issue

  • I just tried fixing the overflow issue in your website

  • adding overflow-wrap: anywhere; to .vertical class is fixing it

  • looks like your github repo does not reflect the latest blog changes. I
    tried looking for the sceen.css file, in which this class is present, Ot
    herwise i could have sent a PR

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.