Skip to content

Commit

Permalink
place carbon ads in docs (#3296)
Browse files Browse the repository at this point in the history
* place carbon ads in docs

* fix lint

* keep 4 space tabs
  • Loading branch information
benphelps committed Apr 15, 2024
1 parent bfd3920 commit 2c68f1e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends "base.html" %}

{% block content %}
{% include "partials/content.html" %}
<hr/>
<div style="margin: 0 auto; max-width: 400px; margin-top: 40px;">
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CWYIL2JU&placement=gethomepagedev&format=cover" id="_carbonads_js"></script>
</div>
{% endblock %}
8 changes: 8 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@
#glimeRoot * {
font-family: var(--md-text-font) !important;
}

#carbon-responsive {
--carbon-padding: 1em;
--carbon-max-char: 20ch;
--carbon-bg-primary: var(--md-default-bg-color) !important;
--carbon-bg-secondary: var(--md-default-fg-color--lightest) !important;
--carbon-text-color: var(--md-typeset-color) !important;
}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ nav:

theme:
name: material
custom_dir: docs/overrides
language: en
palette:
- media: "(prefers-color-scheme)"
Expand Down

0 comments on commit 2c68f1e

Please sign in to comment.