Skip to content

Commit

Permalink
chore(contented-example): update content structure (#520)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it:

Update content structure to be more "natural" in terms of how headings
should be structured so that it's easier to test how well downstream
template fit into this structure.
  • Loading branch information
fuxingloh authored Jul 19, 2023
1 parent cca4a90 commit c4d5733
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

> This is an example to create another pipeline.
# Audentes aurae pomis frangunt solitus tu rictus

## Vivere publica

Lorem **markdownum velamina** dedit levis? Humanaeve ait molli, o illo, sol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Lorem 2

# Lacrimas dextras inornatos clipeum regina

## Et inpia praeter fulva aper aras ingrato

Lorem markdownum simul puppis protinus concava defluit Achaidos superbum locum
Expand Down
8 changes: 3 additions & 5 deletions packages/contented-example/docs/03-api.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# API Reference

## Contented CLI

### contented write
## contented write

To ease the authoring process, `content write` creates a preview of your content on `localhost:3000`. The preview comes
with a basic content navigation tree (left), table of contents (right), and prose formatting (center).

This website, the current one **you're looking at right now** is the result of `contented write`.

### contented generate
## contented generate

Generates the static preview website that can be published to GitHub Pages, Netlify, or Vercel! Minimally, you need to
configure your `package.json` with these fields:
Expand Down Expand Up @@ -67,7 +65,7 @@ BUILD COMMAND = npm run generate
OUTPUT DIRECTORY = .contented/.preview/out
```

### contented build
## contented build

Generates the `./dist` output that can be published into the NPM registry for creating a derivative site. Minimally, you
need to configure your `package.json` with these fields:
Expand Down
2 changes: 1 addition & 1 deletion packages/contented-preview/src/styles/prose.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

.prose :is(h1, h2, h3, h4, h5, h6) {
@apply -ml-6 pl-6;
@apply font-bold;
@apply font-semibold;
}

.prose :is(h1, h2, h3, h4, h5, h6):hover > a:first-child {
Expand Down

0 comments on commit c4d5733

Please sign in to comment.