Giter Club home page Giter Club logo

docs's Introduction

Lit Protocol Developer Docs ๐Ÿ“š

This website is built using Docusaurus 2, a modern static website generator.

๐Ÿ’ป Setup

Installation

$ yarn

Local Development

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.


โœจ Workflow

When adding new content or re-organizing existing content, please be sure to update the following:

  1. Sidebar file - sidebars.js
  2. Redirects file - netlify.toml

Updating the sidebar

To create a top-level, noncollapsible category like Getting Started, add the following to the docs array:

docs: [
  // ...
  {
    type: 'category',
    label: 'Tea Drinks',
    collapsible: false,
    className: 'category-not-collapsible',
    items: [
      // Add the IDs of your new category's pages here
      'tea-drinks/intro',
    ],
  }
]

To add a subcategory, add the category object to the items array:

docs: [
  // ...
  {
    type: 'category',
    label: 'Tea Drinks',
    collapsible: false,
    className: 'category-not-collapsible',
    items: [
      'tea-drinks/intro',
      // Add your new subcategory here
      {
        type: 'category',
        label: 'Hot Drinks',
        collapsed: true,
        items: [
          // Add the IDs of your new subcategory's pages here
          'tea-drinks/hot-drinks/intro',
        ],
      },
    ],
  }
]

To create a top-level, collapsible category like Access Control, add the following to the docs array:

docs: [
  // ...
  {
    type: 'category',
    label: 'Coffee Drinks',
    collapsed: true,
    items: [
      // Add the IDs of your new category's pages here
      'coffee-drinks/intro',
    ],
  }
]

Setting redirects

If you are changing the path of a page, you will need to add a redirect to the netlify.toml file. For example, if you are changing the path of docs/tea-drinks/intro.md to docs/tea-drinks/tea-drinks-intro.md, you will need to add the following to the netlify.toml file:

[[redirects]]
  from = "/docs/tea-drinks/intro"
  to = "/docs/tea-drinks/tea-drinks-intro"
  status = 301
  force = false

Running Scripts

Before running any yarn scripts, be sure to do the following:

  • cp .env.example .env and fill in the secrets.

docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docs's Issues

Create private voting example for the Lit developer docs

Using the Lit-Privacy-SDK and associated blog post as a starting point, create an example for the Lit developer docs that demonstrates how you can use PKPs and Lit Actions to enable privacy-preserving interactions on-chain, such as to enable privacy-preserving voting for on-chain governance. You should be using the Lit SDK V3 for this project.

Please submit a PR to add this work to the 'Integrations' section of the docs by creating a new category for governance: https://developer.litprotocol.com/v3/integrations/

Please keep in mind that the Lit network is still in testnet and storing assets with real world value IS NOT RECOMMENDED at this time.

Broken Links in 'Litactions-introduction/feature' Section

In the 'Litactions-introduction/feature' section, I've identified that the hyperlinks associated with 'Blockchain Agnostic' and 'off-chain sources' are not functioning correctly. Clicking on them leads to a 'Page Not Found' error, which could disrupt users' exploration and understanding of these features. I've attached an image below for reference.
LitAction-Agnostics

"Start with encryption" -> Page not found

Hey there! (sorry if I'm reporting this "problem" in a wrong repo)

I was reading your website and documentation to learn more about the project when I clicked on:
Screenshot 2022-12-28 at 7 58 17 PM

and retrieve the following result:
Screenshot 2022-12-28 at 7 59 09 PM

Hope that helps.
Cheers.

Add bridging example to the Lit developer docs

Using the Yacht-Lit-SDK as a starting point, add an example to the Lit developer docs that demonstrates how PKPs and Lit Actions can be used to bridge assets across-chain. You should be using the Lit SDK V3 for this project.

Please submit a PR to add this work to the 'Integrations' section of the docs by creating a new category for bridging: https://developer.litprotocol.com/v3/integrations/

Please keep in mind that the Lit network is still in testnet and storing assets with real world value IS NOT RECOMMENDED at this time.

Create an example project that demonstrates the functionality of Mint / Grant / Burn

The Mint / Grant / Burn function allows you to mint a PKP and atomically assign it to a set of Lit Actions. When you use M/G/B, a signature will only be returned when the logic you've declared in your Lit Action returns 'true'.

Suppose you have a Lit Action that will check if a number is prime, and if it is, sign that number. If it is not prime, the Lit Action will abort. If you were able to mint a PKP, assign it to that Lit Action, and then burn the PKP in a single atomic transaction, then it would be provable that the PKP was not used to sign anything before it was approved to use the Lit Action. In this case, you could trust that any numbers signed with that PKP are indeed prime, without needing to check them yourself. This creates a powerful way to prove the output of any JS code by checking that 1) the signature is valid, 2) the lit action code is correct, and 3) that the PKP was minted using this Mint/Grant/Burn pattern.

Create an example for the developer docs that demonstrates how this functionality can be used.

Add Bitcoin example to the Lit developer docs

Using the Yacht-Lit-SDK and related Bitcoin tooling, add an example to the Lit developer docs that demonstrates how you can use PKPs to send and receive Bitcoin. You should be using the Lit SDK V3 for this project.

Please submit a PR to add this work to the 'Integrations' section of the docs by creating a new category for Bitcoin: https://developer.litprotocol.com/v3/integrations/

Please keep in mind that the Lit network is still in testnet and storing assets with real world value IS NOT RECOMMENDED at this time.

Incorrect 'Ecosystem RFPs' Hyperlink Redirects to Archived Page

In the section mentioning 'Take a look at our Ecosystem RFPs,' the 'Ecosystem RFPs' hyperlink is currently redirecting users to an 'ARCHIVED AND IS NO LONGER BEING MAINTAINED' page. This could be misleading and prevent developers from accessing the latest ideas and feature requests. The correct link should point to https://github.com/orgs/LIT-Protocol/projects/2/views/1. I've attached an image below for reference.

I'm eager to assist in rectifying this issue to ensure developers are directed to the appropriate resources. With the right guidance, I'm confident we can quickly address this and enhance the user experience.
RFPs

"Broken 'HTML NFT's' Hyperlink in 'Unlockable NFTs' Section"

In the 'Unlockable NFTs' section, I noticed that the 'HTML NFT's' hyperlink is malfunctioning. Upon clicking, it redirects users to a 'Page Not Found' error, potentially hindering their exploration of the topic. I've attached an image below for clarity.

I'm genuinely interested in addressing this issue promptly. If provided with the necessary guidance or resources, I'm ready to contribute and ensure that users can seamlessly access all relevant information about Unlockable NFTs.
HTML_NFTs

Broken hyperlink associated with the word "intro" in the Lit Documentation

While going through the documentation, I noticed that the hyperlink associated with the word "intro" in the sentence "To start building on Lit, check out the Lit SDK intro" is not working. I believe that link should point to the blue mark in the image which I have attached. If that is the case or if there is some other link. Can you please let me know so that I can fix this ASAP, this could be a potential hindrance for new developers trying to get started with the SDK. I've attached an image below for reference.

intro button

"Broken 'Use Cases' Hyperlink in 'Explore More' Section"

In the section titled 'Explore more use cases and projects building with Lit,' I observed that the 'use cases' hyperlink is malfunctioning. Instead of leading to the intended content, it redirects to a 'Page Not Found' error. This could prevent users from exploring potential use cases of Lit, which is crucial for understanding its applications. I've attached an image below for clarity.

I'm genuinely interested in rectifying this issue promptly. If provided with the necessary guidance or resources, I'm ready to contribute and ensure that users have a seamless experience when exploring Lit's capabilities.
use_cases

Adding additional integrations examples to the Lit developer docs

There are a few examples in the Lit developer docs that demonstrate how to use Lit with different web3 projects and for potential use cases. Currently these examples encompass using Lit with smart contract accounts and storage providers.

If you have an idea for an integration or use case that isn't currently listed in the docs, please submit a PR that covers it under the relevant category (either adding an example to one of the existing categories or creating a new one). You should be using the Lit SDK V3 for this project.

Please keep in mind that the Lit network is still in testnet and storing assets with real world value IS NOT RECOMMENDED at this time.

API TOKEN

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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.