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

Add prismjs additional languages #42

Merged
merged 16 commits into from
Aug 31, 2021

Conversation

fdmmarshall
Copy link
Contributor

This PR is for the configuration of additional language support for prism.js (code block language highlighting). The additional languages added were http, sparql, turtle, and clojure. These additions live in the docusaurus.config.js file. In the future we might want to add curl, but for now we are using bash as a substitute. If we do decide to use curl we will need to configure a language definition file per the directions found here, a reference to how prism.js configures their language definitions can be found here.

One important issue to note is that when adding a new language that is not prepackaged in prism-react-renderer, but supported in prism.js, you need to run cat node_modules/prismjs/components/prism-LANGUAGE_HERE.js then double check that the language does or does not extend another language, if it does then you must place both into the additionalLanguages array.

Please reference this github issue for context

@fdmmarshall fdmmarshall requested a review from Tr3yb0 August 30, 2021 19:00
@vercel
Copy link

vercel bot commented Aug 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/fluree/docs-flur-ee/BJAmhNZSJGKeXiVn83nkw4djCQQT
✅ Preview: https://docs-flur-ee-git-add-prismjs-additionallanguages-fluree.vercel.app

@Tr3yb0 Tr3yb0 merged commit da31971 into docs-overhaul Aug 31, 2021
@Tr3yb0 Tr3yb0 deleted the add-prismjs-additionalLanguages branch August 31, 2021 13:55
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