Coder Social home page Coder Social logo

docs's Introduction

Lido Docs

Lido documentation is built using Docusaurus 2. The resulting version of documentation hosted via Github Pages from branch gh-pages of this repository.

Installation

yarn install

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.

Documentation Pages

Documentation pages stored in /docs folder. By default files with .md and .mdx extensions are treated as documentation pages. Every document has a unique id. By default, a document id is the name of the document (without the extension) relative to the root docs directory.

For example, greeting.md id is greeting and guide/hello.md id is guide/hello.

website # Root directory of your site
└── docs
   ├── greeting.md
   └── guide
      └── hello.md

However, the last part of the id can be defined by user in the front matter. For example, if guide/hello.md's content is defined as below, its final id is guide/part1.

---
id: part1
---
Lorem ipsum

If you want more control over the last part of the document URL, it is possible to add a slug (defaults to the id).

---
id: part1
slug: part1.html
---
Lorem ipsum

More information about document metadata fields available there

Documentation Sidebar

The appereance of sidebar controlled manually via sidebars.js file. This file is used to:

  • Group multiple related documents
  • Display a sidebar on each of those documents
  • Provide a paginated navigation, with next/previous button

By default new added pages don't added to sidebar automatically. For example to add new page faq.md as the last item of sidebar we need modify sidebar.js next way:

module.exports = {
  docs: [
    // Above sections
    // ...
    'faq',
  ],
}

Additional information about sidebar and ways to modify it can be found here

Build

yarn build

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

Deployment

Build and deploy happens automatically when pull request is merged to main branch or someone pushes to main branch directly.

To build documentation locally and push builded version to the gh-pages branch use next command:

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

docs's People

Contributors

arwer13 avatar avsetsin avatar bgodlin avatar bulbozaur avatar dechjo avatar dmitiv avatar flanagansteve avatar folkyatina avatar grstepanov avatar hexnickk4997 avatar infloop avatar isidorosp avatar kadmil avatar karinamaulitova avatar kolyasapphire avatar kozlovzxc avatar loga4 avatar matilote avatar mymphe avatar nnnnicholas avatar paulieb14 avatar psirex avatar rkolpakov avatar roundelephant avatar skhomuti avatar skozin avatar sotnikov-s avatar thedzhon avatar ujenjt avatar vshvsh 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.