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 syntax highlighting for juvix code blocks in docs #1971

Merged
merged 7 commits into from
Apr 5, 2023
Merged

Add syntax highlighting for juvix code blocks in docs #1971

merged 7 commits into from
Apr 5, 2023

Conversation

jonaprieto
Copy link
Collaborator

@jonaprieto jonaprieto commented Apr 4, 2023

This PR adds initial syntax highlighting for juvix code blocks and REPL sessions in Markdown files rendered by mdbook. After this PR, only two themes would be supported to ease maintenance: Light and Dark (Ayu).

The implementation is a specifically tailored version of

to be compatible with the infamous HighlightJS 10.1.1, to be used just for MdBook.

The output can be seen here (make sure the CI finished to check the last version, otherwise run the website locally):

@jonaprieto jonaprieto added the enhancement New feature or request label Apr 4, 2023
@jonaprieto jonaprieto added this to the 0.3.2 milestone Apr 4, 2023
@jonaprieto jonaprieto temporarily deployed to github-pages April 4, 2023 08:18 — with GitHub Actions Inactive
@jonaprieto jonaprieto marked this pull request as ready for review April 4, 2023 14:10
@jonaprieto jonaprieto temporarily deployed to github-pages April 4, 2023 14:24 — with GitHub Actions Inactive
docs/tutorials/learn.md Outdated Show resolved Hide resolved
docs/tutorials/learn.md Outdated Show resolved Hide resolved
docs/tutorials/learn.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@lukaszcz lukaszcz left a comment

Choose a reason for hiding this comment

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

Address the comments.

@jonaprieto jonaprieto temporarily deployed to github-pages April 4, 2023 15:30 — with GitHub Actions Inactive
lukaszcz added 2 commits April 4, 2023 18:58
* Closes #1972 
* Introduces lookup functions for the InfoTable to avoid using HashMap
explicitly and reduce code duplication
Add test numbers in the test names for Core, Asm and Runtime. This makes
it easier to see which test failed.
@jonaprieto jonaprieto temporarily deployed to github-pages April 4, 2023 21:51 — with GitHub Actions Inactive
lukaszcz and others added 5 commits April 5, 2023 10:16
#1956)

* Adds tests for recursive lets
* Adds more tests for pattern matching
* Adds the `FoldTypeSynonyms` transformation to the Geb pipeline, which
fixes a bug with type synonyms in Core-to-Geb
@jonaprieto jonaprieto temporarily deployed to github-pages April 5, 2023 08:34 — with GitHub Actions Inactive
@lukaszcz lukaszcz merged commit 4539965 into anoma:main Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants