fluid-project / infusion-docs

Documentation space for Infusion
http://docs.fluidproject.org/infusion
Creative Commons Attribution 4.0 International
8 stars 45 forks source link

Use Eleventy Syntax Highlight plugin instead of HighlightJS #195

Open greatislander opened 3 years ago

greatislander commented 3 years ago

Is your feature request related to a problem?

Currently, we use a custom integration of HighlightJS to highlight code blocks: https://github.com/fluid-project/infusion-docs/blob/main/.eleventy.js#L21-L31

Eleventy has a great syntax highlighting plugin that would make this much cleaner and is used in some other projects e.g. the ILDH site: https://github.com/fluid-project/docs-inclusive-learning/blob/main/.eleventy.js#L18

Describe the solution you'd like

Replace the custom HighlightJS integration with the Eleventy Syntax Highlighting plugin, adapt the stylesheets used for HighlightJS markup to support Prism as seen in ILDH (https://github.com/fluid-project/docs-inclusive-learning/blob/main/src/assets/styles/partials/prism.styl)

Describe alternative solutions you've considered

Not applicable.

Additional context or notes

Not applicable.

jobara commented 3 years ago

When this is updated, we should make sure that all of the syntax highlighting support the required contrast ratios.