Coder Social home page Coder Social logo

docs's Introduction

Millidocs Theme

Simple documentation theme for Jekyll featuring Milligram CSS framework, PrismJS syntax highlighter and LunrJS search.

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:

gem "millidocs"

Adapt your Jekyll site config _config.yml:

  title: My Docs Page Title
  description: MY description
  url: "https://base/url/site"
  theme: millidocs

  markdown: kramdown
  kramdown:
    syntax_highlighter_opts:
      disable : true

  exclude:
    - Gemfile
    - Gemfile.lock
    - README.md

And then execute:

$ bundle

Or install it yourself as:

$ gem install millidocs

Usage

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.

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.

docs's People

Contributors

42point avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.