Giter VIP home page Giter VIP logo

roam-depot's Introduction

Community Extension

Full Documentation

To submit an extension, you need to create a Github repo for it and make a PR to this repo.

In your own extension repo

E.g. https://github.com/tonsky/roam-calculator:

  1. Provide README.md (required)
  2. Provide extension.js (required)
  3. Provide extension.css (optional)
  4. Provide CHANGELOG.md (optional)

extension.js

Your extension should export as default a map with onload and onunload functions.

All state setup in onload should be removed in onunload.

export default {
  onload: () => {},
  onunload: () => {}
};

build.sh

If build.sh exists in the root of your repo, it will be invoked before looking for extension.js/extension.css files.

The environment it’ll be invoked in is ubuntu-20.04 from Github Actions. Consult this to see what is available.

If your build script requires anything extra (e.g. libraries from NPM), it should download them as a part of build.sh execution.

In this repo

  1. Fork this repo
  2. Create metadata file in extensions/<your username>/<your repo>.json

In a case of calculator, you would create

extensions/tonsky/roam-calculator.json

with the following content:

{
  "name": "Test Extension 1",
  "short_description": "Prints 'Test message 1'",
  "author": "Nikita Prokopov",
  "tags": ["print", "test"], //optional
  "source_url": "https://github.com/tonsky/roam-calculator",
  "source_repo": "https://github.com/tonsky/roam-calculator.git",
  "source_commit": "d5ecd16363975b2e7a097d46e5f411c95e16682d",
  "stripe_account": "acct_1LGASrQVCl6NYjck" // optional
}

Then make a Pull Request with this change. After it’s merged, your extension will be published in the Roam Marketplace.

Examples

Community Theme

We do not support themes yet, we hope to add them soon. Please do not submit a theme as an extension.

roam-depot's People

Contributors

mlava avatar panterarocks49 avatar dvargas92495 avatar tonsky avatar c3founder avatar 8bitgentleman avatar fbgallet avatar hunterclarke avatar paulovieira avatar baibhavbista avatar digitalmaster avatar scottrblock avatar kdnk avatar rcvd avatar abhayprasanna avatar oschmid avatar dive2pro avatar laybacc avatar alixlahuec avatar camflint avatar chronologos avatar ryanguill avatar tedisagolli avatar stvad 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.