1.2.1 • Published 3 years ago

@apixelvisuals/typedoc-frontend v1.2.1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Typedoc Frontend

typedoc-frontend converts Typedoc output into a React component.


Installation

yarn add @apixelvisuals/typedoc-frontend

Usage

Docs

import React from "react";
import { Docs } from "@apixelvisuals/typedoc-frontend";

const App = () => (
    <Docs
        url="https://example.com/docs.json"
        defaultPath="/classes/Document"
        colors={{
            background: "#252550",
            backgroundDark: "#171731",
            primary: "#574ae2",
            accent: "#f63e70",
            text: "#7c72eb",
            textLight: "#978fee",
            textLighter: "#ada9e4",
            codeblockBackground: "#7c72eb45"
        }}
    />
);

export default App;

Guides

import React from "react";
import { Guides } from "@apixelvisuals/typedoc-frontend";

const App = () => (
    <Guides
        icon="/assets/icon.svg"
        sections={[
            {
                name: String,
                className: String,
                guides: [
                    {
                        name: String,
                        description: String,
                        icon: "/assets/guides/icon.svg",
                        slug: String,
                        url: String,
                        className: String
                    }
                ]
            }
        ]}
        colors={{
            background: "#252550",
            backgroundDark: "#171731",
            primary: "#574ae2",
            accent: "#f63e70",
            text: "#7c72eb",
            textLight: "#978fee",
            textLighter: "#ada9e4"
        }}
    />
);

export default App;

Development

  • Clone the repo: git clone https://github.com/APixelVisuals/typedoc-frontend.git
  • Enter the directory: cd typedoc-frontend
  • Install packages: yarn install-all
  • Start the development server: yarn dev

Use testing/src/App.js to test the components

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago