Skip to content

Commit

Permalink
feat(prismjs) Adds Installation Instructions for Prismjs
Browse files Browse the repository at this point in the history
Included installation instructions for prismjs and themes in code
section.

[Finishes #98749458]
  • Loading branch information
Kenny Wang and Tyler Phelan committed Jul 11, 2015
1 parent ca2c665 commit bca61c3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pivotal-ui/components/code/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ There are several languages already available (and others available from the [Pr
* Ruby
* Go
For Pivotal UI style code highlighting:
<code class="pam">
<i class="fa fa-download" alt="Install Prismjs">
npm install pui-prism --save
</i>
</code>
For a theme of your choice:
<code class="pam">
<i class="fa fa-download" alt="Install Prismjs">
npm install prismjs-\<theme\>-theme --save
</i>
</code>
```html_example
<pre><code class="language-ruby">class Foo
def bar
Expand Down

2 comments on commit bca61c3

@stubbornella
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gpleiss - can you look at this? Is this what you were hoping for?

@gpleiss
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite. Just installing pui-prism won't work - it needs to be included in the project. In the project's main javascript file: require('pui-prism').

For install instruction stories like this we should verify our setup instructions in a dummy app or something...

Please sign in to comment.