Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thanhtunguet/jekyll-rtd-theme


https://github.com/thanhtunguet/jekyll-rtd-theme

Last synced: 23 days ago
JSON representation

Awesome Lists containing this project

README

        

# jekyll-rtd-theme

![CI](https://github.com/rundocs/jekyll-rtd-theme/workflows/CI/badge.svg?branch=develop)
![jsDelivr](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)

Just another documentation theme compatible with GitHub Pages

## What it does?

This theme is inspired by [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) and refactored with:

- [@primer/css](https://github.com/primer/css)
- [github-pages](https://github.com/github/pages-gem) ([dependency versions](https://pages.github.com/versions/))

## Quick start

```yml
remote_theme: rundocs/jekyll-rtd-theme
```

You can [generate](https://github.com/rundocs/starter-slim/generate) with the same files and folders from [rundocs/starter-slim](https://github.com/rundocs/starter-slim/)

## Usage

Documentation that can guide how to create with Github pages, please refer to [rundocs.io](https://rundocs.io) for details

## Features

- Shortcodes (Toasts card, mermaid)
- Pages Plugins (emoji, gist, avatar, mentions)
- Auto generate sidebar
- [Attribute List Definitions](https://kramdown.gettalong.org/syntax.html#attribute-list-definitions) (Primer/css utilities, Font Awesome 4)
- Service worker (caches)
- SEO (404, robots.txt, sitemap.xml)
- Canonical Link (Open Graph, Twitter Card, Schema data)

## Options

| name | default value | description |
| ------------- | -------------------- | ----------------- |
| `title` | repo name | |
| `description` | repo description | |
| `url` | user domain or cname | |
| `baseurl` | repo name | |
| `lang` | `en` | |
| `direction` | `auto` | `ltr` or `rtl` |
| `highlighter` | `rouge` | Cannot be changed |

```yml
# folders sort
readme_index:
with_frontmatter: true

meta:
key1: value1
key2: value2
.
.
.

google:
gtag:
adsense:

mathjax: # this will prased to json, default: {}

mermaid:
custom: # mermaid link
initialize: # this will prased to json, default: {}

scss: # also _includes/extra/styles.scss
script: # also _includes/extra/script.js

translate:
# shortcodes
danger:
note:
tip:
warning:
# 404
not_found:
# copyright
revision:
# search
searching:
search:
search_docs:
search_results:
search_results_found: # the "#" in this translate will replaced with results size!
search_results_not_found:

plugins:
- jemoji
- jekyll-avatar
- jekyll-mentions
```

## The license

The theme is available as open source under the terms of the MIT License