Skip to content

Make the codeblocks work for the website redesign #877

Open
@mansona

Description

@mansona

Example page where it's not working: https://ember-api-do-website-re-9n6ekm.herokuapp.com/ember/release/classes/Application

Notes on the current implementation

  • The codeblocks come to us as HTML from the bucket
  • The ember-jsonapi-docs repo (the thing that converts the yuidoc to jsonapi) has a function in lib/markup.js that finds codeblocks and manually makes them like this.

Todo

  • get a sample of the input format that is passed to the lib/markup.js function to see what format it is
  • figure out if there is a possibility to consider the description key on the json-api response as markdown and use ember-showdown-prism to do the highlighting work

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions