Docz: Use vanilla HTML without JS components

Created on 14 Jun 2018  路  2Comments  路  Source: doczjs/docz

Is it possible to use docz without importing JS components and instead just use basic HTML?

I currently have a hello.mdx file which looks like the following:

name: Hello World
---

import { Playground } from 'docz'

# Hello
<Playground components={{}}>
    <h1>Hello</h1>
</Playground>

I run yarn docz dev and get the following error:

ERROR  Failed to compile with 1 errors

This dependency was not found:
* srcdocuttons.mdx in ./.docz/app/imports.js
To install it, you can run: npm install --save srcdocuttons.mdx

System specs:

  • Windows 7
  • Node v8.9.3
  • Yarn v1.7.0
  • docz v0.2.4
duplicate

Most helpful comment

I want to just use basic HTML like below.

name: Hello World
---

# Hello

<h1>test here</h1>

<div>basic HTML</div>

But the full page render badly. (no error, no waring)

All 2 comments

Probably related to #12

I want to just use basic HTML like below.

name: Hello World
---

# Hello

<h1>test here</h1>

<div>basic HTML</div>

But the full page render badly. (no error, no waring)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

colshacol picture colshacol  路  23Comments

ohardy picture ohardy  路  24Comments

ronghang picture ronghang  路  33Comments

pedronauck picture pedronauck  路  68Comments

maxguzenski picture maxguzenski  路  24Comments