Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexander-heimbuch/millidocs
A simple documentation theme for Jekyll.
https://github.com/alexander-heimbuch/millidocs
documentation jekyll jekyll-theme
Last synced: 2 months ago
JSON representation
A simple documentation theme for Jekyll.
- Host: GitHub
- URL: https://github.com/alexander-heimbuch/millidocs
- Owner: alexander-heimbuch
- License: mit
- Created: 2017-06-08T14:52:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T06:06:03.000Z (over 2 years ago)
- Last Synced: 2024-09-28T18:09:14.611Z (3 months ago)
- Topics: documentation, jekyll, jekyll-theme
- Language: SCSS
- Homepage: http://alexander.heimbu.ch/millidocs/
- Size: 44.9 KB
- Stars: 44
- Watchers: 2
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Millidocs Theme
Simple documentation theme for Jekyll featuring [Milligram CSS framework](http://milligram.io/), [PrismJS syntax highlighter](http://prismjs.com/) and [LunrJS search](https://lunrjs.com/).
One of the core features is a full text client side search and full responsiveness. It has zero dependencies with other gems and should be easily build with Github.
## Installation
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "millidocs"
```Adapt your Jekyll site config `_config.yml`:
```yaml
title: My Docs Page Title
description: MY description
url: "https://base/url/site"
theme: millidocsmarkdown: kramdown
kramdown:
syntax_highlighter_opts:
disable : trueexclude:
- Gemfile
- Gemfile.lock
- README.md
```And then execute:
$ bundle
Or install it yourself as:
$ gem install millidocs
## Usage
### Github Pages
You can use this theme by simply adding `remote_theme: alexander-heimbuch/millidocs` to your `_config.yml` (Thanks to @kogli for the hint).
### Available Themes
This theme is made for _pages_ only and doesn't support _posts_ by default. So the only available layouts are `default` and `page`.
### Navigation
The navigation supports especially only one level. If you need deep nested structures you propably should use a larger documentation system like [GitBook](https://www.gitbook.com/).
Not every page by default is part of the navigation. If you want to add a page to the navigation you have to add the `navigation` attribute with a desired `index`:
```
---
layout: page
title: Navigation
navigation: 2
---
```The navigation `index` is starting with 1 representing the first item.
## Development
To set up your environment to develop this theme, run `bundle install`.
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
## License
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).