Giter Club home page Giter Club logo

andromedocs's People

Contributors

jguilhermecoelho avatar jrobsonjr avatar leandraos avatar thayannevls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

andromedocs's Issues

Add a footer to the theme

Is your feature request related to a problem? Please describe.
There needs to be a footer on the documentation theme

Describe the solution you'd like
Add a footer to the theme and show it on the pages created with MDX
Something like this

Add a Sidebar to the theme

Is your feature request related to a problem? Please describe.
It's necessary to have a Sidebar to be able to navigate in the documentation of the ttheme

Describe the solution you'd like
Add a Sidebar to browse the pages created in mdx

Use the andromedocs-theme

Is your feature request related to a problem? Please describe.
With the Gatsby theme created, I want to use it

Describe the solution you'd like
add andromedocs-theme as a plugin in /Docs and be able to render the mdx files created there

Guidelines

Guidelines

Description

The Guidelines component describes how a component is expected to be used (Dos) or not (Don'ts).

Usage

Basic Example

import { Guidelines } from '@vtex/andromedocs'

const BasicExample = () => (
  <Guidelines>
    <Guidelines.Dos icon={<IconDo />} title="Dos">
      <li>Do this!</li>
      <li>Do that!</li>
    </Guidelines.Dos>
    <Guidelines.Donts icon={<IconDont />} title="Dont's">
      <li>NEVER do this!</li>
      <li>NEVER do that!</li>
    </Guidelines.Donts>
  </Guidelines>
)

Props

Guidelines.Dos

Name Description Type Default value Required?
title title of the section String 'Dos' NO
icon icon of the section ReactNode ✔️ NO

Guidelines.Donts

Name Description Type Default value Required?
title title of the section String 'Don'ts' NO
icon icon of the section ReactNode NO

CodeBlock

CodeBlock

Description

Illustrate how a component can be used.

Usage

Display ways the component should be used in a code context when it's implemented.

Props

Provide a table describing the props supported by the component.
If the component has composites, you should document the props for each one of them.

Example:

Name Description Type Default value Required?
title title of the component String - YES
... ... ... ... ...

Config Components packages

Is your feature request related to a problem? Please describe.
The andromedocs will have some components to help document their design systems. So we need a package that contains these components.

Describe the solution you'd like
...

Describe alternatives you've considered

Setup release config

Describe the solution you'd like
Setup configuration to release app to npm and update changelog.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Add a header and a logo to the theme

Is your feature request related to a problem? Please describe.
There needs to be a header on the documentation theme

Describe the solution you'd like
Add the header to the theme and show it on the pages created with MDX
Something like this

Also include:

  • Theme UI plugin

Status Tag

Status Tag

Description

A badge that displays the current status of the component. We can use Theme UI's Badge as the base for this component! Figma
image

Usage

<StatusTag variant="stable">Stable</StatusTag>

Props

Name Description Type Default value Required?
children content of the component String - YES
variant variant of the component StatusTagVariant - YES

StatusTagVariant = 'stable' | 'experimental' | 'deprecated'

Config gatsby theme

Is your feature request related to a problem? Please describe.
The andromedocs will be a gatsby theme that the user can install and use.

Describe the solution you'd like
Something like this

Also include:

  • MDX plugin
  • Route/path fronttmatter attribute

LiveCode

LiveCode

Description

Allow editing with changes in real-time.

Usage

import StatusTag from '...';

const Example = () => (
  <LiveCode scope={{ StatusTag }} code={`<StatusTag variant="stable" />`} />
);

Implementation

We can use react-live to create this component 🥺

Props

Example:

Name Description Type Default value Required?
scope Custom globals that the code can use object {} NO
code Initial code to be rendered string - YES

Check the react-live docs for more details!

Configure lint-staged and husky for components

Is your feature request related to a problem? Please describe.
Our code style quality isn't being ensured when sending commits.

Describe the solution you'd like
We can add a configuration of lint-staged + husky to create Git to help enforce the code style.

Describe alternatives you've considered

  1. Add lint-staged and husky as dev dependencies (yarn add -D husky lint-staged);
  2. Add a format script to package.json to run prettier: ("format": "prettier --write \"**/*.{ts,js,json,tsx}\"");
  3. Add husky and lint-staged configs to package.json:
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{ts,js,tsx,jsx}": [
      "eslint --fix",
      "prettier --write"
    ],
    "*.json": [
      "prettier --write"
    ]
  }

PropsTable

PropsTable

Description

A table with descriptions of each prop accepted by a component.

Usage

Display ways the component should be used in a code context when it's implemented.

Props

Provide a table describing the props supported by the component.
If the component has composites, you should document the props for each one of them.

Example:

Name Description Type Default value Required?
title title of the component String - YES
... ... ... ... ...

Initial configuration of /docs to use the Gatsby theme

Is your feature request related to a problem? Please describe.
The /docs directory is an example of a site that uses our Gatsby theme locally

Describe the solution you'd like
Setup a folder with the Gatsby dependencies and the theme created in #6
Something like this

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.