This is a Snakemake jekyll template intended for plugin authors to easily deploy documentation alongside their repositories. Snakemake currently supports the following plugin types:
Using the theme is easy -
just add it as a remote_theme
to your config yaml.
We will be providing an example site (to use as a template) soon!
# Theme for docs
plugins:
- jekyll-remote-theme
remote_theme: snakemake/snakemake-plugin-docs-jekyll
And add
gem "jekyll-remote-theme"
to your Gemfile.
And then you can add any pages with the following front end matter (header) to use the documentation template.
---
title: plugin
layout: docs
permalink: /cmake/
---
To add a sidebar to your pages, create a file under _data/menus/
that is named
according to your sidebar, e.g., _data/menus/mysidebar.yaml
for a sidebar named mysidebar
.
The file should be a flat list of names and urls:
- title: My Page
url: "mypage"
- title: Root of Site
url: ""
And then you can add this to the front end matter of pages where you want it to appear:
---
title: plugin
layout: docs
sidebar: mysidebar
permalink: /pagename/
---
If you want to use the gem, it is built during CI, and release is currently done from the command line:
$ /bin/bash script/release.sh
But this isn't required since we can use jekyll-remote-theme
and use it directly from GitHub.
If you do release, you should bump the version in snakemake-plugin-docs-jekyll.gemspec
and be on the main branch.
HPCIC DevTools is distributed under the terms of the MIT license. All new contributions must be made under this license.
See LICENSE, COPYRIGHT, and NOTICE for details.
SPDX-License-Identifier: (MIT)
LLNL-CODE- 842614