Giter Club home page Giter Club logo

product-help's Introduction

Initial Setup

The below is based on the instructions outlined here https://docusaurus.io/docs/installation which outlines how to install Docusaurus.

  1. Make sure you install Node.js version >= 14 prior to installing Docusaurus.
  2. Open a command window and run npx create-docusaurus@latest default-site classic which will scaffold a skeleton Docusaurus website. This command also creates a sub-folder called default-site in whatever directory you run the npx command in.
  3. Change directories into the default-site folder (example: cd default-site) and run npm start to test whether the scaffold Docusaurus development server runs locally without issues.
  4. Clone this repo (https://github.com/cado-security/product-help) into your local source folder (wherever you'll be maintaining the product-help code).
  5. Copy the following folders from the Docusaurus "default-site" folder, created during step #2, to your local source "product-help" folder:
    • .docusaurus
    • node_modules
  6. Update \src\pages\index.js to have the following content:
import React from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl';
import  { Redirect } from 'react-router-dom';

export default function Home() {
  return <Redirect to={useBaseUrl('cado-response/intro')} />;
}
  1. Change directories into your "product-help" source folder and run npm start. This should now open the Cado product-help site locally.

Build

npm build

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

Deployment to Github Pages

cmd /C "set "GIT_USER=<GITHUB_USERNAME>" && yarn deploy"

Folder Structure

General guidance on how the Cado Documentation should be organized:

/docs 
-- /cado-response
-- -- intro
-- -- /getting-started
-- -- -- key-concepts
-- -- -- deploy
-- -- /project-and-user-management
-- -- -- projects
-- -- -- user
-- -- /importing-data
-- -- -- import
-- -- -- file-types
-- -- -- memory
-- -- /investigating
-- -- -- investigate
-- -- /settings
-- -- -- general-settings
-- -- /guides 
-- -- -- cross-account-access
-- -- -- updating
-- -- -- licensing
-- -- /integrations
-- -- /faq
-- -- -- frequently-asked-questions
-- -- /api
-- -- /release-notes
-- /cado-host
-- -- intro
-- -- run
-- -- aws-credentials
-- -- azure-credentials
-- -- google-credentials

Generating PDF

After the build and deploy process, you can run the following command to generate a PDF copy of the site. Note that the site needs to be live to acquire and save the site as a PDF. The PDF will be stored in the /build/ folder as guide.pdf Also ensure you update URL in the command below.

npx mr-pdf --initialDocURLs="http://**baseurl**/docs/intro" --contentSelector="article" --paginationSelector=".pagination-nav__item--next > a" --excludeSelectors=".margin-vert--xl a" --coverTitle="Cado Response User Guide" --outputPDFFilename="build/guide.pdf"

product-help's People

Contributors

mdiminico avatar katerinatiddy avatar joshuathompsonlindley avatar cadosecurity avatar iwehba avatar callumroberts avatar dhunt-cado avatar chrisdoman avatar jordan-cado avatar pstampcado 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.