Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix development mode and add terraform support #1

Merged
merged 1 commit into from
Apr 22, 2021
Merged

fix development mode and add terraform support #1

merged 1 commit into from
Apr 22, 2021

Conversation

johnnyreilly
Copy link
Contributor

@johnnyreilly johnnyreilly commented Apr 22, 2021

This PR does three things: fixes development mode and adds language support for Terraform (two parts to this).

Development mode

Running locally without postsPerPage being specified in your config you get a blank screen when you go to http://localhost:3000

This specifies that config (and a couple of other properties) which resolves the blank screen issue.

Language support

You need to specify the languages that you're using if they're outside the list of commonly used languages: https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js

This PR adds support for CSharp, PowerShell (which you're not using yet but it seems plausible) and Terraform (which you are)

terraform -> hcl

Confusingly, Terraform is coded as hcl. This PR migrates to use that code.

PrismJS/prism#1252
PrismJS/prism#1594

@jamiemccrindle jamiemccrindle merged commit 16b1066 into jamiemccrindle:main Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants