jekyll-theme-adobe-hyde

This is a Jekyll theme for use with the Hyde C++ documentation tool. The theme works directly with GitHub Pages.

This theme is based on the slate theme and incorporates a number of templates we've developed for various Hyde based sites.

The inspiration for the layout comes from cppreference. Please help us improve the templates by contributing!

Installation

Add this line to your Jekyll site's Gemfile:

gem "jekyll-theme-adobe-hyde"

And add this line to your Jekyll site's _config.yml:

theme: jekyll-theme-adobe-hyde

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-theme-adobe-hyde

Usage

To add a header image in the _config.yml add

adobe_hyde:
    header_image: <relative url of image>

Customizing The Theme

The theme includes variable overrides that won't overwrite theme files. This lets you customize some of the layout and coloring parameters of the theme, and still keep up with the latest theme changes easily. To start, copy these three files from the theme to the same location in your local Jekyll site:

  • _sass/_overrides.scss
  • _sass/_overrides-light.scss
  • _sass/_overrides-dark.scss

You can customize theme variables within these files. See an example of this in the stlab.cc repository.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/adobe/hyde-theme. This project is intended to be a safe, welcoming space for collaboration. Please see the code of conduct and contributing documents.

Development

These instructions need to be updated. We don't currently have test content in the repo.

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, _sass and assets tracked with Git will be bundled. To add a custom directory to your theme-gem, please edit the regexp in jekyll-theme-adobe-hyde.gemspec accordingly.

License

The theme is available as open source under the terms of the Apache License 2.0.