Giter Club home page Giter Club logo

denote's Introduction

Denote

logo

ci/cd deno.land velociraptor LICENSE deno.land

A minimal profile page generator for Deno Deploy that denotes you

Demo

Getting started

$ # to install denote cli
$ deno install --allow-read --allow-write --allow-net --no-check --force https://deno.land/x/denote/cli/denote.ts

$ # to install example config
$ denote init ./denote.yml

$ # to see in local server
$ denote serve ./denote.yml

$ # to create or update the page
$ denote register ./denote.yml --name your-name --token your-token

$ # to remove the page
$ denote unregister --name your-name --token your-token
  • name: The name of your page (https://denote.deno.dev/[name]). This must be unique in Denote and matched with /^[a-z][a-z0-9_-]{2,64}$/.
  • token: The secret token. This is hashed and saved. This must matched with /^[!-~]{8,128}$/.

API

You can call API manually with any tools like curl. The endpoint is https://denote.deno.dev/.

Register

POST request to register your data. You can use this to create and update.

name, token and config (the config JSON object) are required.

name and token that you saved are required when you update.

Unregister

DELETE request to unregister your data. name and token that you saved are required.

Config keys

The config data has these keys.

  • name
    • The name shown on the top of the page. When this is left blank, your page path (https://denote.deno.dev/[name]) is used. This is also used in the title of html.
  • image
    • The URL of the main image of the page. This is also used in 'og:image'. When this is left blank, it is just skipped.
  • favicon
    • The URL of the favicon of the page. When this is left blank, Denote logo is used.
  • description
    • The comments shown under the page name. This is also used in 'og:description'. When this is left blank, it is just skipped.
  • twitter
    • Your twitter username. This is used in 'twitter:site'. When this is left blank, it is just skipped.
  • list required
    • The list of the group of the contents. List group that has unique ids are required.
    • The key of the group is used as the ID of html elements. This must have 'icon' and 'items'. 'icon' is the icon of this group. 'items' is the list of the contents.
    • Each item in 'items' can have 'icon', 'text', and 'link'.

See also example.yml that generated by denote init and denote.yml that running on Demo.

Visit icongram to search available icons.

Prior arts

denote's People

Contributors

kawarimidoll avatar web-flow 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.