image thumbnail

Octopress / Jekyll Style Sheet for Publish Command

version 1.0.0.0 (4.38 KB) by Kaelin Colclasure
This XSL style sheet enables publishing MATLAB scripts to an Octopress or Jekyll blog.

776 Downloads

Updated 29 Apr 2013

View License

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.

Cite As

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
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!