Coder Social home page Coder Social logo

trinityprivacy / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sentinel-official/docs

0.0 0.0 0.0 19.06 MB

The official Sentinel documentation built by Trinity Validator

Home Page: https://docs.sentinel.co

License: Apache License 2.0

Shell 0.03% JavaScript 95.88% CSS 4.10%

docs's Introduction

Logo

Sentinel Docs

Sentinel documentation portal, built with Docusaurus.
Explore the docs »

Report Bug · Request Feature

Table of Contents

About The Project

Docusaurus is a static site generator that helps you ship beautiful, accessible docs. For building our documentation portal, we have made certain modifications over the template generated by Docusaurus.

Built With

Getting Started

This section describes how you can get our documentation portal up and running on your machine.

Prerequisites

Installation

  1. Clone the repo
git clone https://github.com/sentinel-official/docs
  1. Install NPM packages
npm install
  1. Run the app
npm start

Add new sections

Navigate into your progect folder

cd docs

Create a folder named section-name

mkdir section-name

Editdocusaurus.config.js

Create a new section in by adding a new section to SECTIONS[] array with the defineSection() utility easily.

const SECTIONS = [
  defineSection('section-name'),
];

Create the navbar item section-name

 themeConfig:
    ({
      ...
      docs: {
      ...
      },
      navbar: {
      ...
        },
        items: [
          {
            label: 'Section Name',
            to: 'section-name',
            position: 'left',
          },
        ],
      },
      ...
    }),

Add the section to the Context Switcher

To add a newly created section to the Sections Menu, edit /src/sections.js

The section acan be added to the multisection menu

{
  name: 'Section Name',
  section: 'the section id',
  description: 'Section description',
},

or the subsection menu

{
  name: 'Section name',
  id: 'section-name',
  icon: SentinelCore,
  section: 'section id',
},

Edit docusearch.config.json

Add the following block to ensure that the content in the new section is properly indexed by the Algolia plugin

"section-name": {
  "lvl0": {
    "selector": "",
    "global": true,
    "default_value": "section-name"
  },
  "lvl1": "article h1",
  "lvl2": "article h2",
  "lvl3": "article h3",
  "lvl4": "article h4",
  "lvl5": "article h5, article td:first-child",
  "lvl6": "article h6",
  "text": "article p, article li, article td:last-child"
  },

Now, run npm run start and you can access your 'new-section' at http://localhost:3000/new-section

That is it!

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. Sincere thanks to all our contributors. Thank you, contributors!

Support

Contributions, issues, and feature requests are welcome! If you find this project valuable, please consider giving it a ⭐️!

License

Distributed under the Apache License, Version 2.0. See LICENSE for more information.

docs's People

Contributors

trinitystake avatar communitystaking avatar bsrinivas8687 avatar ironman0x7b2 avatar dimiandre avatar creamers158 avatar bladeruner avatar 0xbas3d avatar dragonstake 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.