Giter Club home page Giter Club logo

mknote's Introduction

Marknote

Mknote is an easy-to-use blogging system with no database and no need to log in. Just specify the directory where your price reduction files are located, mknote will automatically discover them and generate pages.

Documents

Quick start

Install mknote

Go to the Publish Page to download the latest version of the package and extract it to your favorite directory.

tar -zxf mknote-<version>.tar.gz
cd mknote-<version>

Launch mknote

It is usually started using HTTPS, so you need to specify your certificate file. Once started, it will automatically reset the request for port 80 to port 443:

bin/mknote \
--tls \
--tls-cert /etc/ssl/cert.pem \
--tls-key /etc/ssl/key.pem

mknote provides many useful options, view all options with the following command:

bin/mknote --help

Writing an article

Create a new article category and write your first article.

mkdir articles/java
echo '# First article' > articles/java/first.md

Now you can access http://localhost in your browser.

File download server

If you need to reference the image in your article, just put your image in the /usr/local/mknote/f/ directory, which can be specified when starting mknote.

cp scenery.png /usr/local/mknote/f/

Then reference it in the article

![scenery](/f/scenery.png)

In fact, you can place any file in this directory, so that others can download the file anywhere. This function is very useful for many people. You can add as many directories as you like in the /usr/local/mknote/f/ directory. To distinguish your files.

Debug

Open debug feature

curl -X POST -H "<your_header_key>: <value>" https://<hostname>/v1/manage/pprof/open

Analyse your mknote using the go tool go profile

go tool pprof http://<hostname>:8000/debug/pprof/profile

Close debug feature

curl -X POST -H "<your_header_key>: <value>" https://<hostname>/v1/manage/pprof/close

mknote's People

Contributors

sycki avatar

Watchers

 avatar  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.