Zine port - #9
Draft
eamonburns wants to merge 11 commits into
Draft
Conversation
All the files removed were generated by `zine init`
- Fixed hardcoded version number - Better rendering of alternate version page link (unreleased/released link)
Link to `$site.page`s instead of using string concatenation.
- Color strings - Make keywords higher priority than variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8
The biggest issue currently is that Zine does not have a way to provide custom Tree-Sitter grammars, so I'm using Kotlin (simply because it uses the
funkeyword for functions).There is also a bit of a "hack" (
assets/code-blocks.js) to set thedata-extattribute and thelanguage-*class on thepreelement for code blocks.Files changed:
{0.5.0,main}/*->content/{0.5.0,main}/*content/0.5.0/docs/is unchanged (except for some formatting to the generated HTML so that I could figure out what the structure was)assets/code-blocks.js: A script to injectdata-ext="{lang}"andclass="language-{lang}"attributes into code blocksassets/external-link-icon.svg: External link icon, extracted from the HTMLassets/highlight.css: CSS for syntax highlighting. Instead of mapping.classs directly to--color-var, I opted to do.class(undercode.kotlin) to--semantic-var(under "Token colors") to--color-var(under "Colorscheme colors"). Also, both version0.5.0andmainuse the new colorscheme.assets/render-mathtex.js: Generated by Zine.assets/style.css: Main stylesheet. Mostly copied from content/main/docs/.vuepress/dist/assets/style-5aa52750.css, but the part commented-out at the bottom is generated by Zine.assets/Temml-Local.css: Generated by Zine.assets/temml.min.js: Generated by Zine.assets/Temml.woff2: Generated by Zine.content/0.5.0/index.smd: Home page ported to SuperMDcontent/.smd.ziggy-schema: Generated by Zine.content/index.smd: Root page. Redirects to the main home page.layouts/templates/base.shtml: Base template. This is where the navbar and footer are. Also where the default JS and CSS links are.layouts/home.shtml: Home page. Where "actions" and "features" are templated.layouts/index.shtml: Generated by Zine. Default, very simple layout.layouts/page.shtml: Generated by Zine. Default, very simple layout.layouts/post.shtml: Generated by Zine. Possibly unnecessary, but might want to use it if there was ever a blog.layouts/redirect.shtml: Layout that redirects to a specified page (seecontent/index.smd).zine.ziggy-schema: Generated by Zine. Schema for Zine configuration (zine.ziggy)zine.ziggy: Generated by Zine, modified withbuzz-lang.devconfiguration values.TODO: