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

[#397] Kickstart colors for Smartdocs #399

Merged
merged 9 commits into from
Jul 31, 2020

Conversation

zakiya
Copy link
Contributor

@zakiya zakiya commented Jul 30, 2020

  • Creates apigee_kickstart/smartdocs library attached to field_apidoc_spec.
  • apigee_kickstart/smartdocs contains a CC file that uses ak- variables to override colors.

@zakiya zakiya requested a review from arlina-espinoza July 30, 2020 19:44
@googlebot googlebot added the cla: yes Indicates CLA has been signed label Jul 30, 2020
Copy link
Contributor

@arlina-espinoza arlina-espinoza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @zakiya

@arlina-espinoza arlina-espinoza linked an issue Jul 31, 2020 that may be closed by this pull request
@arlina-espinoza arlina-espinoza merged commit 33fb00f into apigee:8.x-1.x Jul 31, 2020
@arlina-espinoza
Copy link
Contributor

@zakiya Does this seem accurate to add to the docs?

OpenAPI specs are rendered by default using Apigee's SmartDocs custom field formatter. It is possible to override the styles to match your custom theme by doing the following steps:

  1. In your theme's directory, create a CSS stylesheet that replaces the SmartDocs theming. You can use Apigee Kickstart's styles as a guide. Let's assume the new file is: css/my-smartdocs-styles.css
  2. In your theme's info file, overwrite the stylesheet for the SmartDocs widget with your own styles. Example themename.info.yml:
libraries-override:
  apigee_kickstart/smartdocs:
    css:
      theme:
        assets/css/apigee-kickstart.smartdocs.css: css/my-smartdocs-styles.css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates CLA has been signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

css does not respect Apigee Kickstart color scheming
3 participants