Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/stylesheet :: A basic css stylesheet #150

Merged
merged 1 commit into from
Aug 13, 2014

Conversation

tyrauber
Copy link
Contributor

A basic css stylesheet with font and table styling, without the need for bootstrap. The stylesheet is read and embedded into the html enabling the html examples to be easily shared/viewed without requiring external resources. The stylesheet can also be overridden within an app by creating a stylesheet with similar name in the app directory: app/assets/stylesheets/rspec_api_documentation/styles.css

…ling, without the need for bootstrap.

The stylesheet resides at lib/rspec_api_documentation/assets/stylesheets/rspec_api_documentation/styles.css, but may be overridden by creating a stylesheet in the app directory, app/assets/stylesheets/rspec_api_documentation/styles.css.  This allows users to override the default styles if so desired.

The styles are read from the stylesheet and embedded in the HTML, allowing the individual example html pages to be styled without the need for an external resource.
@oestrich
Copy link
Contributor

I like this. Going to merge it in manually because I'd like to make the app/assets/stylesheets/... folder configurable. I'm trying to keep RAD as framework agnostic as possible. We can default to that folder though.

@tyrauber
Copy link
Contributor Author

Yeah, I had the same thought - At least for the ability to change the stylesheet name.

@oestrich oestrich merged commit 102f4b3 into zipmark:master Aug 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants