GithubHelp home page GithubHelp logo

isabella232 / hyde-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobe/hyde-theme

0.0 0.0 0.0 75 KB

License: Apache License 2.0

Ruby 3.20% HTML 26.77% CSS 46.51% JavaScript 20.69% Dockerfile 1.98% Shell 0.85%

hyde-theme's Introduction

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!

Table Of Contents

Installation

GitHub Pages

If using GitHub Pages or the jekyll-remote-theme plugin, specify the theme as a remote theme in your _config.yml file:

remote_theme: adobe/[email protected]

It is strongly recommended that you use a version tag to avoid having an updated version of the theme break your site.

Using Ruby Gems (does not work with GitHub pages)

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

Adding a Header Image

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.

TODO: More documentation is needed for features such as {% include figure.md %}.

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

TODO: 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.

hyde-theme's People

Contributors

fosterbrereton avatar sean-parent 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.