https://github.com/amireh/yard-api-slatelike
A template plugin for YARD-API for better output style.
https://github.com/amireh/yard-api-slatelike
Last synced: 3 months ago
JSON representation
A template plugin for YARD-API for better output style.
- Host: GitHub
- URL: https://github.com/amireh/yard-api-slatelike
- Owner: amireh
- License: gpl-3.0
- Created: 2014-09-14T11:37:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T16:52:59.000Z (over 1 year ago)
- Last Synced: 2025-01-29T20:41:20.099Z (4 months ago)
- Language: CSS
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yard-api-slatelike
## What is?
A plugin that overrides the templates provided by [yard-api](https://github.com/amireh/yard-api) to make it look more like [slate](https://github.com/tripit/slate).
## Usage
Nothing special except that you have to include the gem in your Gemfile (if using bundler) *after* `yard-api`. E.g:
```ruby
# Gemfilegroup :doc do
gem 'yard-api'
gem 'yard-api-slatelike'
end
```Here's a sample Rake task `doc:generate` that invokes yard-api's rake task:
```ruby
namespace :doc do
desc 'generate docs using yard-api'
task :generate => :environment do
require 'yard-api'
require 'yard-api/yardoc_task'
require 'yard-api-slatelike'YARD::APIPlugin::YardocTask.new(:my_app_docs)
Rake::Task['my_app_docs'].invoke
end
end
```## Configuration
The plugin comes with two themes out of the box, one that is a mimic of Slate's, and another which follows the same layout but with different colors and a few readability (opinionated) enhancements.
1. `slate` (default)
2. `vroom` (recommended)You can specify the theme in your `yard_api.yml` file under the `theme` parameter.
## License
Released under the [AGPLv3](http://www.gnu.org/licenses/agpl-3.0.html) license.