This XSL style sheet is adapted from the default HTML style sheet that ships with MATLAB. It strips away all of the CSS information and the top-level document markup normally included in published HTML documents, and adds a YAML header so that the file will be recognized and processed by Jekyll.
Jekyll is a simple, blog aware, static site generator written in Ruby. It takes a template directory (representing the raw form of a website), runs it through Textile or Markdown and Liquid converters, and spits out a complete, static website suitable for serving with Apache or your favorite web server. It is free, open-source software available from GitHub.
Octopress builds on Jekyll to simplify and streamline the process of publishing a blog. It's tagline styles the project as "A blogging framework for hackers." It has many convenient facilities for presenting syntax-highlighted code, social sharing, etc.
To use this template, simply set it as the XSL style sheet to be used when publishing your document to HTML. Note, however, that the resulting document will then *require* post-processing by Jekyll before it's valid HTML; therefore the automatic preview opened by MATLAB will not look very pretty.
I adapted this XSL style sheet for my own blog, and am sharing it in the hope that others might find it useful.
Kaelin Colclasure (2021). Octopress / Jekyll Style Sheet for Publish Command (https://www.mathworks.com/matlabcentral/fileexchange/41547-octopress-jekyll-style-sheet-for-publish-command), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!