Giter Site home page Giter Site logo

alexvotofuture / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kingzamzon/docs

0.0 0.0 0.0 18.3 MB

Developer docs for Lit Protocol. Learn about encryption, access control. and programmatic signing.

Home Page: https://developer.litprotocol.com/

Shell 0.05% JavaScript 58.54% CSS 25.53% MDX 15.88%

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

Contributors

glitch003 avatar debbly avatar a1ttech avatar aaryan-r-s avatar sarahzdev avatar spacesailor24 avatar joshlong145 avatar furkanakal avatar kingzamzon avatar dashkash54 avatar ansonhkg avatar zanedr avatar hwrdtm avatar federicoamura avatar masha256 avatar alexvotofuture avatar tesla809 avatar zach-is-my-name avatar jendler avatar bertrandbuild avatar maximushaximus avatar dmikey avatar elizabethogbee avatar fskroes avatar mzkrasner avatar secretfader avatar vor0220 avatar mendaxjr 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.